mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-01 14:38:56 +00:00
Clean Solution for sendToStaff
Added clean solution for sendToStaff sendMessage
This commit is contained in:
1 parent
773900594d
commit
07bf56cc93
1 file changed
+1
-5
@@ -303,11 +303,7 @@ public class AntiCheatReloaded extends JavaPlugin {
|
||||
}
|
||||
|
||||
public void sendToStaff(String message) {
|
||||
for (Player player : Bukkit.getOnlinePlayers()) {
|
||||
if (player.hasPermission("anticheat.system.alert")) {
|
||||
player.sendMessage(message);
|
||||
}
|
||||
}
|
||||
Bukkit.broadcast(message, "anticheat.system.alert");
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user