Skip to content

Commit

Permalink
Added Admin Settings command using BentoBox 1.6.0 API
Browse files Browse the repository at this point in the history
  • Loading branch information
tastybento committed Aug 10, 2019
1 parent 6957705 commit c712d1c
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import world.bentobox.bentobox.api.commands.admin.AdminReloadCommand;
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.AdminTeleportCommand;
import world.bentobox.bentobox.api.commands.admin.AdminUnregisterCommand;
import world.bentobox.bentobox.api.commands.admin.AdminVersionCommand;
Expand All @@ -29,8 +30,8 @@ public class AdminCommand extends CompositeCommand {

public AdminCommand(SkyGrid addon) {
super(addon,
addon.getSettings().getAdminCommand().split(" ")[0],
addon.getSettings().getAdminCommand().split(" "));
addon.getSettings().getAdminCommand().split(" ")[0],
addon.getSettings().getAdminCommand().split(" "));
}

@Override
Expand Down Expand Up @@ -69,6 +70,8 @@ public void setup() {
new AdminReloadCommand(this);
// Set Spawn
new AdminSetspawnCommand(this);
// Settings
new AdminSettingsCommand(this);
}

@Override
Expand Down

0 comments on commit c712d1c

Please sign in to comment.