From 9503537365a89d99f4cf89c52a3f8388844193be Mon Sep 17 00:00:00 2001 From: tastybento Date: Sat, 10 Aug 2019 11:16:50 -0700 Subject: [PATCH] Added Admin Settings command using BentoBox 1.6.0 API --- .../java/world/bentobox/bskyblock/commands/AdminCommand.java | 3 +++ .../world/bentobox/bskyblock/commands/AdminCommandTest.java | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/java/world/bentobox/bskyblock/commands/AdminCommand.java b/src/main/java/world/bentobox/bskyblock/commands/AdminCommand.java index c711309..c46c58c 100644 --- a/src/main/java/world/bentobox/bskyblock/commands/AdminCommand.java +++ b/src/main/java/world/bentobox/bskyblock/commands/AdminCommand.java @@ -12,6 +12,7 @@ import world.bentobox.bentobox.api.commands.admin.AdminReloadCommand; import world.bentobox.bentobox.api.commands.admin.AdminResetFlagsCommand; import world.bentobox.bentobox.api.commands.admin.AdminSetrankCommand; import world.bentobox.bentobox.api.commands.admin.AdminSetspawnCommand; +import world.bentobox.bentobox.api.commands.admin.AdminSettingsCommand; import world.bentobox.bentobox.api.commands.admin.AdminSwitchCommand; import world.bentobox.bentobox.api.commands.admin.AdminSwitchtoCommand; import world.bentobox.bentobox.api.commands.admin.AdminTeleportCommand; @@ -87,6 +88,8 @@ public class AdminCommand extends CompositeCommand { new AdminSwitchCommand(this); // Purge new AdminPurgeCommand(this); + // Settings + new AdminSettingsCommand(this); } @Override diff --git a/src/test/java/world/bentobox/bskyblock/commands/AdminCommandTest.java b/src/test/java/world/bentobox/bskyblock/commands/AdminCommandTest.java index 223f26c..e40cb2d 100644 --- a/src/test/java/world/bentobox/bskyblock/commands/AdminCommandTest.java +++ b/src/test/java/world/bentobox/bskyblock/commands/AdminCommandTest.java @@ -38,7 +38,7 @@ import world.bentobox.bskyblock.Settings; @PrepareForTest({Bukkit.class, BentoBox.class, User.class }) public class AdminCommandTest { - private static final int NUM_COMMANDS = 28; + private static final int NUM_COMMANDS = 29; private User user; private BSkyBlock addon;