Move and encapsulate "ignored" collection
This commit is contained in:
@@ -25,19 +25,19 @@ package client.command.commands.gm3;
|
||||
|
||||
import client.Character;
|
||||
import client.Client;
|
||||
import client.autoban.AutobanFactory;
|
||||
import client.command.Command;
|
||||
import net.packet.logging.MonitoredChrLogger;
|
||||
|
||||
public class IgnoredCommand extends Command {
|
||||
{
|
||||
setDescription("Show all players being ignored in logs.");
|
||||
setDescription("Show all characters being ignored in auto-ban alerts.");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void execute(Client c, String[] params) {
|
||||
Character player = c.getPlayer();
|
||||
for (Integer cid : MonitoredChrLogger.ignored) {
|
||||
player.yellowMessage(Character.getNameById(cid) + " is being ignored.");
|
||||
for (int chrId : AutobanFactory.getIgnoredChrIds()) {
|
||||
player.yellowMessage(Character.getNameById(chrId) + " is being ignored.");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user