mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-21 20:56:45 +01:00
Fixed major bug in adminchat, now it should work properly!
This commit is contained in:
parent
842001f8ac
commit
5c545f2b4f
@ -21,11 +21,11 @@ import java.util.logging.Level; //Need this to use LEVEL.INFO etc
|
||||
for (Player p : etc.getServer().getPlayerList()) {
|
||||
String blaa = "";
|
||||
if (p != null) {
|
||||
if (player.isAdmin() || player.canUseCommand("/adminchat")) {
|
||||
if (p.isAdmin() || (p.canUseCommand("/adminchat"))) {
|
||||
for ( int x = 1; x< message.length(); x++) {
|
||||
blaa+=message.charAt(x);
|
||||
}
|
||||
if (p.isAdmin() || player.canUseCommand("/adminchat")){
|
||||
if (p.isAdmin() || (p.canUseCommand("/adminchat"))){
|
||||
if (p != null) {
|
||||
p.sendMessage(adminchat+blaa);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user