Replaced #setParameters(String) by #setParametersHelp(String) in commands

This commit is contained in:
Florian CUNY 2018-08-11 13:33:42 +02:00
parent 6ee5538930
commit f89bda6b5d
21 changed files with 22 additions and 22 deletions

View File

@ -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");
}

View File

@ -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");
}

View File

@ -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");
}

View File

@ -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");
}

View File

@ -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");
}

View File

@ -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<>();

View File

@ -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");
}

View File

@ -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");
}

View File

@ -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");
}

View File

@ -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");
}

View File

@ -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");
}

View File

@ -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");
}

View File

@ -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");
}

View File

@ -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");
}

View File

@ -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");
}

View File

@ -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");
}

View File

@ -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");
}

View File

@ -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");
}

View File

@ -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");
}

View File

@ -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");
}
}

View File

@ -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");
}