From 6488dac1b1b3949de0b37161e66605c42b2ae5b2 Mon Sep 17 00:00:00 2001 From: tastybento Date: Fri, 19 Jul 2019 19:06:36 -0700 Subject: [PATCH] Added admin purge command --- .../java/world/bentobox/acidisland/commands/AcidCommand.java | 3 +++ .../world/bentobox/acidisland/commands/AcidCommandTest.java | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/java/world/bentobox/acidisland/commands/AcidCommand.java b/src/main/java/world/bentobox/acidisland/commands/AcidCommand.java index 162babf..58c176e 100644 --- a/src/main/java/world/bentobox/acidisland/commands/AcidCommand.java +++ b/src/main/java/world/bentobox/acidisland/commands/AcidCommand.java @@ -22,6 +22,7 @@ import world.bentobox.bentobox.api.commands.admin.AdminVersionCommand; import world.bentobox.bentobox.api.commands.admin.AdminWhyCommand; import world.bentobox.bentobox.api.commands.admin.blueprints.AdminBlueprintCommand; import world.bentobox.bentobox.api.commands.admin.deaths.AdminDeathsCommand; +import world.bentobox.bentobox.api.commands.admin.purge.AdminPurgeCommand; import world.bentobox.bentobox.api.commands.admin.range.AdminRangeCommand; import world.bentobox.bentobox.api.commands.admin.resets.AdminResetsResetCommand; import world.bentobox.bentobox.api.commands.admin.team.AdminTeamAddCommand; @@ -85,6 +86,8 @@ public class AcidCommand extends CompositeCommand { new AdminSwitchtoCommand(this); // Switch new AdminSwitchCommand(this); + // Purge + new AdminPurgeCommand(this); } @Override diff --git a/src/test/java/world/bentobox/acidisland/commands/AcidCommandTest.java b/src/test/java/world/bentobox/acidisland/commands/AcidCommandTest.java index 54b3d78..883b38f 100644 --- a/src/test/java/world/bentobox/acidisland/commands/AcidCommandTest.java +++ b/src/test/java/world/bentobox/acidisland/commands/AcidCommandTest.java @@ -37,7 +37,7 @@ import world.bentobox.bentobox.managers.CommandsManager; @PrepareForTest({Bukkit.class, BentoBox.class, User.class }) public class AcidCommandTest { - private static final int NUM_COMMANDS = 27; + private static final int NUM_COMMANDS = 28; private User user; /**