mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-01 14:38:56 +00:00
Fix logic error and remove unnecessary line
This commit is contained in:
1 parent
ef5b4069ce
commit
6e2eae7d1e
2 files changed
+2
-2
No files matched your search
@@ -89,7 +89,7 @@ public class LoggingManager {
|
||||
}
|
||||
|
||||
public void logToPlayers(String message) {
|
||||
if(!config.getConfig().disableBroadcast.getValue()) return;
|
||||
if(config.getConfig().disableBroadcast.getValue()) return;
|
||||
for(Player player : Bukkit.getOnlinePlayers()) {
|
||||
if (Permission.SYSTEM_NOTICE.get(player)) {
|
||||
player.sendMessage(message);
|
||||
|
||||
@@ -210,7 +210,7 @@ public class UserManager {
|
||||
user.getPlayer().kickPlayer(ChatColor.translateAlternateColorCodes('&', kickReason));
|
||||
AntiCheatReloaded.getPlugin().onPlayerKicked();
|
||||
String msg = ChatColor.translateAlternateColorCodes('&', config.getLang().KICK_BROADCAST().replaceAll("%player%", name) + " (" + type.getName() + ")");
|
||||
if (!msg.equals("") && config.getConfig().disableBroadcast.getValue()) {
|
||||
if (!msg.equals("")) {
|
||||
manager.log(msg);
|
||||
manager.playerLog(msg);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user