mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-01 22:14:49 +00:00
Better file logging options
This commit is contained in:
1 parent
de762de1ba
commit
33dfb97a1b
10 files changed
+154
-25
No files matched your search
@@ -45,7 +45,7 @@ public final class Utilities
|
||||
{
|
||||
for(Player p : Bukkit.getServer().getOnlinePlayers())
|
||||
{
|
||||
if(p.hasPermission("anticheat.alert") || p.hasPermission("anticheat.admin") || p.isOp())
|
||||
if(p.hasPermission("anticheat.alert") || p.hasPermission("anticheat.admin") || p.hasPermission("anticheat.mod") || p.isOp())
|
||||
{
|
||||
for(String msg : message)
|
||||
{
|
||||
@@ -61,6 +61,13 @@ public final class Utilities
|
||||
logger.log(Level.INFO,ChatColor.stripColor(msg));
|
||||
}
|
||||
}
|
||||
if(Anticheat.getManager().getConfiguration().getFileLogLevel() > 0)
|
||||
{
|
||||
for(String msg : message)
|
||||
{
|
||||
Anticheat.getManager().fileLog(ChatColor.stripColor(msg));
|
||||
}
|
||||
}
|
||||
}
|
||||
public static boolean cantStandAt(Block block)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user