mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-12-28 03:57:39 +01:00
Replaced #setParameters(String) by #setParametersHelp(String) in commands
This commit is contained in:
parent
6ee5538930
commit
f89bda6b5d
@ -18,7 +18,7 @@ public class AdminClearResetsCommand extends CompositeCommand {
|
||||
@Override
|
||||
public void setup() {
|
||||
setPermission("admin.clearreset");
|
||||
setParameters("commands.admin.clearresets.parameters");
|
||||
setParametersHelp("commands.admin.clearresets.parameters");
|
||||
setDescription("commands.admin.clearresets.description");
|
||||
}
|
||||
|
||||
|
@ -18,7 +18,7 @@ public class AdminDeleteCommand extends CompositeCommand {
|
||||
@Override
|
||||
public void setup() {
|
||||
setPermission("admin.delete");
|
||||
setParameters("commands.admin.delete.parameters");
|
||||
setParametersHelp("commands.admin.delete.parameters");
|
||||
setDescription("commands.admin.delete.description");
|
||||
}
|
||||
|
||||
|
@ -28,7 +28,7 @@ public class AdminGetRankCommand extends CompositeCommand {
|
||||
public void setup() {
|
||||
setPermission("admin.setrank");
|
||||
setOnlyPlayer(false);
|
||||
setParameters("commands.admin.getrank.parameters");
|
||||
setParametersHelp("commands.admin.getrank.parameters");
|
||||
setDescription("commands.admin.getrank.description");
|
||||
}
|
||||
|
||||
|
@ -16,7 +16,7 @@ public class AdminInfoCommand extends CompositeCommand {
|
||||
public void setup() {
|
||||
setPermission("admin.info");
|
||||
setOnlyPlayer(false);
|
||||
setParameters("commands.admin.info.parameters");
|
||||
setParametersHelp("commands.admin.info.parameters");
|
||||
setDescription("commands.admin.info.description");
|
||||
}
|
||||
|
||||
|
@ -23,7 +23,7 @@ public class AdminRegisterCommand extends CompositeCommand {
|
||||
public void setup() {
|
||||
setPermission("admin.register");
|
||||
setOnlyPlayer(true);
|
||||
setParameters("commands.admin.register.parameters");
|
||||
setParametersHelp("commands.admin.register.parameters");
|
||||
setDescription("commands.admin.register.description");
|
||||
}
|
||||
|
||||
|
@ -25,7 +25,7 @@ public class AdminSchemCommand extends CompositeCommand {
|
||||
@Override
|
||||
public void setup() {
|
||||
setPermission("admin.schem");
|
||||
setParameters("commands.admin.schem.parameters");
|
||||
setParametersHelp("commands.admin.schem.parameters");
|
||||
setDescription("commands.admin.schem.description");
|
||||
setOnlyPlayer(true);
|
||||
clipboards = new HashMap<>();
|
||||
|
@ -25,7 +25,7 @@ public class AdminSetRankCommand extends CompositeCommand {
|
||||
public void setup() {
|
||||
setPermission("admin.setrank");
|
||||
setOnlyPlayer(false);
|
||||
setParameters("commands.admin.setrank.parameters");
|
||||
setParametersHelp("commands.admin.setrank.parameters");
|
||||
setDescription("commands.admin.setrank.description");
|
||||
}
|
||||
|
||||
|
@ -23,7 +23,7 @@ public class AdminTeleportCommand extends CompositeCommand {
|
||||
// Permission
|
||||
setPermission(getPermissionPrefix() + "admin.tp");
|
||||
setOnlyPlayer(true);
|
||||
setParameters("commands.admin.tp.parameters");
|
||||
setParametersHelp("commands.admin.tp.parameters");
|
||||
setDescription("commands.admin.tp.description");
|
||||
}
|
||||
|
||||
|
@ -18,7 +18,7 @@ public class AdminUnregisterCommand extends CompositeCommand {
|
||||
@Override
|
||||
public void setup() {
|
||||
setPermission("admin.unregister");
|
||||
setParameters("commands.admin.unregister.parameters");
|
||||
setParametersHelp("commands.admin.unregister.parameters");
|
||||
setDescription("commands.admin.unregister.description");
|
||||
}
|
||||
|
||||
|
@ -17,7 +17,7 @@ public class AdminRangeResetCommand extends CompositeCommand {
|
||||
@Override
|
||||
public void setup() {
|
||||
setPermission("admin.range.reset");
|
||||
setParameters("commands.admin.range.reset.parameters");
|
||||
setParametersHelp("commands.admin.range.reset.parameters");
|
||||
setDescription("commands.admin.range.reset.description");
|
||||
}
|
||||
|
||||
|
@ -19,7 +19,7 @@ public class AdminRangeSetCommand extends CompositeCommand {
|
||||
@Override
|
||||
public void setup() {
|
||||
setPermission("admin.range.set");
|
||||
setParameters("commands.admin.range.set.parameters");
|
||||
setParametersHelp("commands.admin.range.set.parameters");
|
||||
setDescription("commands.admin.range.set.description");
|
||||
}
|
||||
|
||||
|
@ -16,7 +16,7 @@ public class AdminTeamAddCommand extends CompositeCommand {
|
||||
@Override
|
||||
public void setup() {
|
||||
setPermission("admin.team");
|
||||
setParameters("commands.admin.team.add.parameters");
|
||||
setParametersHelp("commands.admin.team.add.parameters");
|
||||
setDescription("commands.admin.team.add.description");
|
||||
}
|
||||
|
||||
|
@ -15,7 +15,7 @@ public class AdminTeamDisbandCommand extends CompositeCommand {
|
||||
@Override
|
||||
public void setup() {
|
||||
setPermission("admin.team");
|
||||
setParameters("commands.admin.team.disband.parameters");
|
||||
setParametersHelp("commands.admin.team.disband.parameters");
|
||||
setDescription("commands.admin.team.disband.description");
|
||||
}
|
||||
|
||||
|
@ -16,7 +16,7 @@ public class AdminTeamKickCommand extends CompositeCommand {
|
||||
@Override
|
||||
public void setup() {
|
||||
setPermission("admin.team");
|
||||
setParameters("commands.admin.team.kick.parameters");
|
||||
setParametersHelp("commands.admin.team.kick.parameters");
|
||||
setDescription("commands.admin.team.kick.description");
|
||||
}
|
||||
|
||||
|
@ -15,7 +15,7 @@ public class AdminTeamMakeLeaderCommand extends CompositeCommand {
|
||||
@Override
|
||||
public void setup() {
|
||||
setPermission("admin.team");
|
||||
setParameters("commands.admin.team.makeleader.parameters");
|
||||
setParametersHelp("commands.admin.team.makeleader.parameters");
|
||||
setDescription("commands.admin.team.makeleader.description");
|
||||
}
|
||||
|
||||
|
@ -25,7 +25,7 @@ public class IslandBanCommand extends CompositeCommand {
|
||||
public void setup() {
|
||||
setPermission("island.ban");
|
||||
setOnlyPlayer(true);
|
||||
setParameters("commands.island.ban.parameters");
|
||||
setParametersHelp("commands.island.ban.parameters");
|
||||
setDescription("commands.island.ban.description");
|
||||
}
|
||||
|
||||
|
@ -24,7 +24,7 @@ public class IslandSetnameCommand extends CompositeCommand {
|
||||
public void setup() {
|
||||
setPermission("island.name");
|
||||
setOnlyPlayer(true);
|
||||
setParameters("commands.island.setname.parameters");
|
||||
setParametersHelp("commands.island.setname.parameters");
|
||||
setDescription("commands.island.setname.description");
|
||||
}
|
||||
|
||||
|
@ -21,7 +21,7 @@ public class IslandUnbanCommand extends CompositeCommand {
|
||||
public void setup() {
|
||||
setPermission("island.ban");
|
||||
setOnlyPlayer(true);
|
||||
setParameters("commands.island.unban.parameters");
|
||||
setParametersHelp("commands.island.unban.parameters");
|
||||
setDescription("commands.island.unban.description");
|
||||
}
|
||||
|
||||
|
@ -16,7 +16,7 @@ public class IslandTeamKickCommand extends CompositeCommand {
|
||||
public void setup() {
|
||||
setPermission("island.team");
|
||||
setOnlyPlayer(true);
|
||||
setParameters("commands.island.team.kick.parameters");
|
||||
setParametersHelp("commands.island.team.kick.parameters");
|
||||
setDescription("commands.island.team.kick.description");
|
||||
}
|
||||
|
||||
|
@ -17,10 +17,10 @@ public class IslandTeamPromoteCommand extends CompositeCommand {
|
||||
setPermission("island.team");
|
||||
setOnlyPlayer(true);
|
||||
if (this.getLabel().equals("promote")) {
|
||||
setParameters("commands.island.team.promote.parameters");
|
||||
setParametersHelp("commands.island.team.promote.parameters");
|
||||
setDescription("commands.island.team.promote.description");
|
||||
} else {
|
||||
setParameters("commands.island.team.demote.parameters");
|
||||
setParametersHelp("commands.island.team.demote.parameters");
|
||||
setDescription("commands.island.team.demote.description");
|
||||
}
|
||||
}
|
||||
|
@ -21,7 +21,7 @@ public class IslandTeamSetownerCommand extends CompositeCommand {
|
||||
public void setup() {
|
||||
setPermission("island.team");
|
||||
setOnlyPlayer(true);
|
||||
setParameters("commands.island.team.setowner.parameters");
|
||||
setParametersHelp("commands.island.team.setowner.parameters");
|
||||
setDescription("commands.island.team.setowner.description");
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user