use of mc.dragons.tools.moderation.report.ReportAdminCommands in project DragonsOnline by UniverseCraft.
the class DragonsModerationTools method onEnable.
public void onEnable() {
enableDebugLogging();
dragons = getDragonsInstance();
holdMessageHandler = new HoldMessageHandler(dragons);
dragons.getLightweightLoaderRegistry().register(new ReportLoader(dragons.getMongoConfig()));
dragons.getLightweightLoaderRegistry().register(new HoldLoader(this));
dragons.getUserHookRegistry().registerHook(new ModUserHook(this));
punishMessageHandler = new PunishMessageHandler();
slowModeSeconds = 0;
new PeriodicNotificationTask(dragons).runTaskTimer(this, 20L, 20L * 60 * 10);
getCommand("info").setExecutor(new InfoCommand());
getCommand("iphistory").setExecutor(new IPHistoryCommand());
getCommand("ipscan").setExecutor(new IPScanCommand());
getCommand("godmode").setExecutor(new GodModeCommand());
getCommand("fly").setExecutor(new FlyCommand());
getCommand("setverification").setExecutor(new SetVerificationCommand());
getCommand("locate").setExecutor(new LocateCommand());
getCommand("modnotifications").setExecutor(new ModNotificationsCommand());
getCommand("staffalert").setExecutor(new StaffAlertCommand());
getCommand("recentlogins").setExecutor(new RecentLoginsCommand());
getCommand("report").setExecutor(new ReportCommand());
getCommand("escalate").setExecutor(new EscalateCommand());
getCommand("chatreport").setExecutor(new ChatReportCommand());
getCommand("reports").setExecutor(new ReportsCommand());
getCommand("watchlist").setExecutor(new WatchlistCommand());
getCommand("hold").setExecutor(new HoldCommand());
getCommand("viewholds").setExecutor(new ViewHoldsCommand());
getCommand("releasehold").setExecutor(new ReleaseHoldCommand());
getCommand("viewreport").setExecutor(new ViewReportCommand());
getCommand("modqueue").setExecutor(new ModQueueCommand());
CommandExecutor reportAdminCommands = new ReportAdminCommands();
getCommand("toggleselfreport").setExecutor(reportAdminCommands);
getCommand("deletereport").setExecutor(reportAdminCommands);
getCommand("bulkdeletereports").setExecutor(reportAdminCommands);
getCommand("skipallreports").setExecutor(reportAdminCommands);
punishCommand = new PunishCommand();
getCommand("punish").setExecutor(punishCommand);
getCommand("punishcodes").setExecutor(new PunishCodesCommand());
getCommand("setstandinglevel").setExecutor(new StandingLevelCommand());
getCommand("purgepunishments").setExecutor(new PurgePunishmentsCommand());
CommandExecutor nsPunishCommands = new NSPunishCommands(this);
getCommand("safekick").setExecutor(nsPunishCommands);
getCommand("kick").setExecutor(nsPunishCommands);
getCommand("warn").setExecutor(nsPunishCommands);
getCommand("mute").setExecutor(nsPunishCommands);
getCommand("ban").setExecutor(nsPunishCommands);
CommandExecutor unPunishCommands = new UnPunishCommands();
getCommand("unban").setExecutor(unPunishCommands);
getCommand("unmute").setExecutor(unPunishCommands);
getCommand("viewpunishments").setExecutor(new ViewPunishmentsCommand());
getCommand("removepunishment").setExecutor(new RemovePunishmentCommand());
getCommand("acknowledgewarning").setExecutor(new AcknowledgeWarningCommand());
getCommand("vanish").setExecutor(new VanishCommand());
getCommand("unvanish").setExecutor(new UnVanishCommand());
getCommand("slowmode").setExecutor(new SlowModeCommand(this));
}
Aggregations