Search in sources :

Example 1 with PunishCommand

use of mc.dragons.tools.moderation.punishment.command.PunishCommand 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));
}
Also used : NSPunishCommands(mc.dragons.tools.moderation.punishment.command.NSPunishCommands) ViewReportCommand(mc.dragons.tools.moderation.report.ViewReportCommand) ReportCommand(mc.dragons.tools.moderation.report.ReportCommand) ChatReportCommand(mc.dragons.tools.moderation.report.ChatReportCommand) PunishCodesCommand(mc.dragons.tools.moderation.punishment.command.PunishCodesCommand) ReportLoader(mc.dragons.tools.moderation.report.ReportLoader) PunishMessageHandler(mc.dragons.tools.moderation.punishment.PunishMessageHandler) CommandExecutor(org.bukkit.command.CommandExecutor) IPHistoryCommand(mc.dragons.tools.moderation.analysis.IPHistoryCommand) PunishCommand(mc.dragons.tools.moderation.punishment.command.PunishCommand) LocateCommand(mc.dragons.tools.moderation.analysis.LocateCommand) ViewReportCommand(mc.dragons.tools.moderation.report.ViewReportCommand) UnPunishCommands(mc.dragons.tools.moderation.punishment.command.UnPunishCommands) HoldMessageHandler(mc.dragons.tools.moderation.hold.HoldMessageHandler) InfoCommand(mc.dragons.tools.moderation.analysis.InfoCommand) ReleaseHoldCommand(mc.dragons.tools.moderation.hold.ReleaseHoldCommand) IPScanCommand(mc.dragons.tools.moderation.analysis.IPScanCommand) ViewPunishmentsCommand(mc.dragons.tools.moderation.punishment.command.ViewPunishmentsCommand) EscalateCommand(mc.dragons.tools.moderation.report.EscalateCommand) AcknowledgeWarningCommand(mc.dragons.tools.moderation.punishment.command.AcknowledgeWarningCommand) UnVanishCommand(mc.dragons.tools.moderation.abilities.UnVanishCommand) RemovePunishmentCommand(mc.dragons.tools.moderation.punishment.command.RemovePunishmentCommand) ReportAdminCommands(mc.dragons.tools.moderation.report.ReportAdminCommands) GodModeCommand(mc.dragons.tools.moderation.abilities.GodModeCommand) RecentLoginsCommand(mc.dragons.tools.moderation.analysis.RecentLoginsCommand) SlowModeCommand(mc.dragons.tools.moderation.abilities.SlowModeCommand) HoldLoader(mc.dragons.tools.moderation.hold.HoldLoader) StandingLevelCommand(mc.dragons.tools.moderation.punishment.command.StandingLevelCommand) ChatReportCommand(mc.dragons.tools.moderation.report.ChatReportCommand) ReleaseHoldCommand(mc.dragons.tools.moderation.hold.ReleaseHoldCommand) HoldCommand(mc.dragons.tools.moderation.hold.HoldCommand) PurgePunishmentsCommand(mc.dragons.tools.moderation.punishment.command.PurgePunishmentsCommand) ModQueueCommand(mc.dragons.tools.moderation.report.ModQueueCommand) WatchlistCommand(mc.dragons.tools.moderation.report.WatchlistCommand) ReportsCommand(mc.dragons.tools.moderation.report.ReportsCommand) FlyCommand(mc.dragons.tools.moderation.abilities.FlyCommand) ViewHoldsCommand(mc.dragons.tools.moderation.hold.ViewHoldsCommand) VanishCommand(mc.dragons.tools.moderation.abilities.VanishCommand) UnVanishCommand(mc.dragons.tools.moderation.abilities.UnVanishCommand)

Aggregations

FlyCommand (mc.dragons.tools.moderation.abilities.FlyCommand)1 GodModeCommand (mc.dragons.tools.moderation.abilities.GodModeCommand)1 SlowModeCommand (mc.dragons.tools.moderation.abilities.SlowModeCommand)1 UnVanishCommand (mc.dragons.tools.moderation.abilities.UnVanishCommand)1 VanishCommand (mc.dragons.tools.moderation.abilities.VanishCommand)1 IPHistoryCommand (mc.dragons.tools.moderation.analysis.IPHistoryCommand)1 IPScanCommand (mc.dragons.tools.moderation.analysis.IPScanCommand)1 InfoCommand (mc.dragons.tools.moderation.analysis.InfoCommand)1 LocateCommand (mc.dragons.tools.moderation.analysis.LocateCommand)1 RecentLoginsCommand (mc.dragons.tools.moderation.analysis.RecentLoginsCommand)1 HoldCommand (mc.dragons.tools.moderation.hold.HoldCommand)1 HoldLoader (mc.dragons.tools.moderation.hold.HoldLoader)1 HoldMessageHandler (mc.dragons.tools.moderation.hold.HoldMessageHandler)1 ReleaseHoldCommand (mc.dragons.tools.moderation.hold.ReleaseHoldCommand)1 ViewHoldsCommand (mc.dragons.tools.moderation.hold.ViewHoldsCommand)1 PunishMessageHandler (mc.dragons.tools.moderation.punishment.PunishMessageHandler)1 AcknowledgeWarningCommand (mc.dragons.tools.moderation.punishment.command.AcknowledgeWarningCommand)1 NSPunishCommands (mc.dragons.tools.moderation.punishment.command.NSPunishCommands)1 PunishCodesCommand (mc.dragons.tools.moderation.punishment.command.PunishCodesCommand)1 PunishCommand (mc.dragons.tools.moderation.punishment.command.PunishCommand)1