From 8c01ae4ba913c14e09d50f112feaec228b0b188c Mon Sep 17 00:00:00 2001 From: tastybento Date: Wed, 16 Jan 2019 10:42:22 -0800 Subject: [PATCH] Use GameModeAddon command declaration API --- src/main/java/world/bentobox/skygrid/SkyGrid.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/world/bentobox/skygrid/SkyGrid.java b/src/main/java/world/bentobox/skygrid/SkyGrid.java index abf9e24..edc510a 100644 --- a/src/main/java/world/bentobox/skygrid/SkyGrid.java +++ b/src/main/java/world/bentobox/skygrid/SkyGrid.java @@ -49,9 +49,9 @@ private void loadSettings() { @Override public void onEnable(){ // Register commands - new SkyGridCommand(this); - new AdminCommand(this); - // Set default protection flags for world + playerCommand = new SkyGridCommand(this); + adminCommand = new AdminCommand(this); + // Set default protection flags for world to allow everything Flags.values().stream().filter(f -> f.getType().equals(Type.PROTECTION)).forEach(f -> f.setDefaultSetting(getOverWorld(), true)); }