mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2024-09-18 18:01:17 +02:00
Minor bug with permissions
This commit is contained in:
parent
cf6895139d
commit
abeb50c62c
@ -142,7 +142,8 @@ public class NoCheatPlugin extends JavaPlugin {
|
||||
public static void logMinor(String message) {
|
||||
if(NoCheatConfiguration.notifyLevel.intValue() <= Level.INFO.intValue()) {
|
||||
for(Player player : p.getServer().getOnlinePlayers()) {
|
||||
if(Permissions.has(player, "nocheat.notify")) {
|
||||
if((Permissions != null && Permissions.has(player, "nocheat.notify")) ||
|
||||
(Permissions == null && player.isOp())) {
|
||||
player.sendMessage("[INFO] " + message);
|
||||
}
|
||||
}
|
||||
@ -157,7 +158,8 @@ public class NoCheatPlugin extends JavaPlugin {
|
||||
public static void logNormal(String message) {
|
||||
if(NoCheatConfiguration.notifyLevel.intValue() <= Level.WARNING.intValue()) {
|
||||
for(Player player : p.getServer().getOnlinePlayers()) {
|
||||
if(Permissions.has(player, "nocheat.notify")) {
|
||||
if((Permissions != null && Permissions.has(player, "nocheat.notify")) ||
|
||||
(Permissions == null && player.isOp())) {
|
||||
player.sendMessage("[WARNING] " + message);
|
||||
}
|
||||
}
|
||||
@ -172,7 +174,8 @@ public class NoCheatPlugin extends JavaPlugin {
|
||||
public static void logHeavy(String message) {
|
||||
if(NoCheatConfiguration.notifyLevel.intValue() <= Level.SEVERE.intValue()) {
|
||||
for(Player player : p.getServer().getOnlinePlayers()) {
|
||||
if(Permissions.has(player, "nocheat.notify")) {
|
||||
if((Permissions != null && Permissions.has(player, "nocheat.notify")) ||
|
||||
(Permissions == null && player.isOp())) {
|
||||
player.sendMessage("[SEVERE] " + message);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user