normally fixed command list null
This commit is contained in:
parent
ff787c9b52
commit
68f4824593
@ -62,7 +62,7 @@ public final class Listeners {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
String message = configuration.getLeaveFormat();
|
String message = configuration.getLeaveFormat();
|
||||||
if(!configuration.getLeavecmd().isEmpty())
|
if(configuration.getLeavecmd() != null&&!configuration.getLeavecmd().isEmpty())
|
||||||
for(String s : configuration.getLeavecmd()){
|
for(String s : configuration.getLeavecmd()){
|
||||||
s = s
|
s = s
|
||||||
.replace("#player#", p.getUsername())
|
.replace("#player#", p.getUsername())
|
||||||
@ -100,7 +100,7 @@ public final class Listeners {
|
|||||||
}
|
}
|
||||||
final ServerConnection actual = serverConnection.get();
|
final ServerConnection actual = serverConnection.get();
|
||||||
String message = configuration.getChangeFormat();
|
String message = configuration.getChangeFormat();
|
||||||
if(!configuration.getChangecmd().isEmpty())
|
if(configuration.getChangecmd() != null&&!configuration.getChangecmd().isEmpty())
|
||||||
for(String s : configuration.getChangecmd()){
|
for(String s : configuration.getChangecmd()){
|
||||||
s = s
|
s = s
|
||||||
.replace("#player#", p.getUsername())
|
.replace("#player#", p.getUsername())
|
||||||
@ -128,7 +128,7 @@ public final class Listeners {
|
|||||||
if (!configuration.isJoinEnabled()) {
|
if (!configuration.isJoinEnabled()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if(!configuration.getJoincmd().isEmpty())
|
if(configuration.getJoincmd() != null&&!configuration.getJoincmd().isEmpty())
|
||||||
for(String s : configuration.getJoincmd()){
|
for(String s : configuration.getJoincmd()){
|
||||||
s = s
|
s = s
|
||||||
.replace("#player#", p.getUsername())
|
.replace("#player#", p.getUsername())
|
||||||
@ -167,7 +167,7 @@ public final class Listeners {
|
|||||||
return message;
|
return message;
|
||||||
}
|
}
|
||||||
public void message(final Player p, final String m) {
|
public void message(final Player p, final String m) {
|
||||||
if(!configuration.getMessagecmd().isEmpty())
|
if(configuration.getMessagecmd() != null&&!configuration.getMessagecmd().isEmpty())
|
||||||
for(String s : configuration.getMessagecmd()){
|
for(String s : configuration.getMessagecmd()){
|
||||||
s = s
|
s = s
|
||||||
.replace("#player#", p.getUsername())
|
.replace("#player#", p.getUsername())
|
||||||
|
Loading…
Reference in New Issue
Block a user