mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-01 14:38:56 +00:00
anticheat.alert -> anticheat.system.alert
This commit is contained in:
1 parent
eb7fc195ed
commit
1b17130920
3 files changed
+7
-2
No files matched your search
@@ -19,12 +19,16 @@
|
||||
package net.h31ix.anticheat;
|
||||
|
||||
import java.io.*;
|
||||
import java.net.MalformedURLException;
|
||||
import java.net.URL;
|
||||
import java.net.URLClassLoader;
|
||||
import java.net.URLConnection;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.jar.JarEntry;
|
||||
import java.util.jar.JarInputStream;
|
||||
import java.util.logging.Level;
|
||||
import java.util.logging.Logger;
|
||||
import net.h31ix.anticheat.event.*;
|
||||
@@ -118,7 +122,7 @@ public class Anticheat extends JavaPlugin
|
||||
logger.log(Level.INFO, "Scheduled the XRay checker.");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
for (Listener listener : eventList)
|
||||
{
|
||||
getServer().getPluginManager().registerEvents(listener, this);
|
||||
|
||||
@@ -55,6 +55,7 @@ public enum Permission
|
||||
SYSTEM_HELP,
|
||||
SYSTEM_UPDATE,
|
||||
SYSTEM_REPORT,
|
||||
SYSTEM_ALERT,
|
||||
SYSTEM_RELOAD;
|
||||
|
||||
public boolean get(CommandSender cs)
|
||||
|
||||
@@ -41,7 +41,7 @@ public final class Utilities
|
||||
{
|
||||
for (Player player : Bukkit.getOnlinePlayers())
|
||||
{
|
||||
if (player.hasPermission("anticheat.alert"))
|
||||
if (Permission.SYSTEM_ALERT.get(player))
|
||||
{
|
||||
for (String msg : message)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user