mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-03 06:28:52 +00:00
Fix for weird permissions broadcast issue, fixes bug #97
This commit is contained in:
1 parent
b68e25485a
commit
bf2f6af86a
1 file changed
+6
-2
@@ -39,9 +39,13 @@ public final class Utilities
|
|||||||
|
|
||||||
public static void alert(String[] message)
|
public static void alert(String[] message)
|
||||||
{
|
{
|
||||||
for (String msg : message)
|
for(Player player : Bukkit.getOnlinePlayers())
|
||||||
{
|
{
|
||||||
Bukkit.broadcast(msg, "anticheat.alert");
|
if(player.hasPermission("anticheat.alert"));
|
||||||
|
for (String msg : message)
|
||||||
|
{
|
||||||
|
player.sendMessage(msg);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (Anticheat.getManager().getConfiguration().logConsole())
|
if (Anticheat.getManager().getConfiguration().logConsole())
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in new issue
Block a user