Skip to content

Commit

Permalink
Use GameModeAddon command declaration API
Browse files Browse the repository at this point in the history
  • Loading branch information
tastybento committed Jan 16, 2019
1 parent e038dae commit 8c01ae4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/world/bentobox/skygrid/SkyGrid.java
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}

Expand Down

0 comments on commit 8c01ae4

Please sign in to comment.