Skip to content

Commit

Permalink
Fallback prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
SergeyDertan committed Jun 20, 2019
1 parent abad4d4 commit 46fb0bf
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -240,13 +240,13 @@ public synchronized void save(SaveType saveType, String initiator) {
}

public void registerCommand(Command command) {
if (!this.settings.hideCommands) this.getServer().getCommandMap().register(command.getName(), command);
if (!this.settings.hideCommands) this.getServer().getCommandMap().register("sregionprotector", command);
this.mainCommand.registerCommand(command);
}

private void initCommands() {
this.mainCommand = new RegionCommand(this.settings.asyncCommands, this.settings.asyncCommandsThreads);
this.getServer().getCommandMap().register(this.mainCommand.getName(), this.mainCommand);
this.getServer().getCommandMap().register("sregionprotector", this.mainCommand);

this.registerCommand(new Pos1Command(this.regionSelector));

Expand Down

0 comments on commit 46fb0bf

Please sign in to comment.