mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-22 05:06: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()) {
|
for (Player p : etc.getServer().getPlayerList()) {
|
||||||
String blaa = "";
|
String blaa = "";
|
||||||
if (p != null) {
|
if (p != null) {
|
||||||
if (player.isAdmin() || player.canUseCommand("/adminchat")) {
|
if (p.isAdmin() || (p.canUseCommand("/adminchat"))) {
|
||||||
for ( int x = 1; x< message.length(); x++) {
|
for ( int x = 1; x< message.length(); x++) {
|
||||||
blaa+=message.charAt(x);
|
blaa+=message.charAt(x);
|
||||||
}
|
}
|
||||||
if (p.isAdmin() || player.canUseCommand("/adminchat")){
|
if (p.isAdmin() || (p.canUseCommand("/adminchat"))){
|
||||||
if (p != null) {
|
if (p != null) {
|
||||||
p.sendMessage(adminchat+blaa);
|
p.sendMessage(adminchat+blaa);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user