Revert "Removed useless #setDescription() and #setParameters() in commands"

This reverts commit 0e8e9dde67.
This commit is contained in:
tastybento 2018-08-10 13:47:58 +09:00
parent 48b169537a
commit 67ab937b97
42 changed files with 68 additions and 3 deletions

View File

@ -17,6 +17,7 @@ public class AdminClearResetsAllCommand extends CompositeCommand {
@Override
public void setup() {
setPermission("admin.clearresetsall");
setDescription("commands.admin.clearresetsall.description");
}
@Override

View File

@ -18,6 +18,8 @@ public class AdminClearResetsCommand extends CompositeCommand {
@Override
public void setup() {
setPermission("admin.clearreset");
setParameters("commands.admin.clearresets.parameters");
setDescription("commands.admin.clearresets.description");
}
@Override

View File

@ -18,6 +18,8 @@ public class AdminDeleteCommand extends CompositeCommand {
@Override
public void setup() {
setPermission("admin.delete");
setParameters("commands.admin.delete.parameters");
setDescription("commands.admin.delete.description");
}
@Override

View File

@ -28,6 +28,8 @@ public class AdminGetRankCommand extends CompositeCommand {
public void setup() {
setPermission("admin.setrank");
setOnlyPlayer(false);
setParameters("commands.admin.getrank.parameters");
setDescription("commands.admin.getrank.description");
}
@Override

View File

@ -16,6 +16,8 @@ public class AdminInfoCommand extends CompositeCommand {
public void setup() {
setPermission("admin.info");
setOnlyPlayer(false);
setParameters("commands.admin.info.parameters");
setDescription("commands.admin.info.description");
}
@Override

View File

@ -23,6 +23,8 @@ public class AdminRegisterCommand extends CompositeCommand {
public void setup() {
setPermission("admin.register");
setOnlyPlayer(true);
setParameters("commands.admin.register.parameters");
setDescription("commands.admin.register.description");
}
@Override

View File

@ -20,7 +20,7 @@ public class AdminReloadCommand extends CompositeCommand {
@Override
public void setup() {
setDescription("commands.admin.reload.description");
}
@Override

View File

@ -25,6 +25,8 @@ public class AdminSchemCommand extends CompositeCommand {
@Override
public void setup() {
setPermission("admin.schem");
setParameters("commands.admin.schem.parameters");
setDescription("commands.admin.schem.description");
setOnlyPlayer(true);
clipboards = new HashMap<>();
}

View File

@ -25,6 +25,8 @@ public class AdminSetRankCommand extends CompositeCommand {
public void setup() {
setPermission("admin.setrank");
setOnlyPlayer(false);
setParameters("commands.admin.setrank.parameters");
setDescription("commands.admin.setrank.description");
}
@Override

View File

@ -23,6 +23,8 @@ public class AdminTeleportCommand extends CompositeCommand {
// Permission
setPermission(getPermissionPrefix() + "admin.tp");
setOnlyPlayer(true);
setParameters("commands.admin.tp.parameters");
setDescription("commands.admin.tp.description");
}
@Override

View File

@ -18,6 +18,8 @@ public class AdminUnregisterCommand extends CompositeCommand {
@Override
public void setup() {
setPermission("admin.unregister");
setParameters("commands.admin.unregister.parameters");
setDescription("commands.admin.unregister.description");
}
@Override

View File

@ -15,6 +15,7 @@ public class AdminVersionCommand extends CompositeCommand {
public void setup() {
// Permission
setPermission("admin.version");
setDescription("commands.admin.version.description");
}
@Override

View File

@ -17,6 +17,7 @@ public class AdminRangeCommand extends CompositeCommand {
@Override
public void setup() {
setPermission("admin.range");
setDescription("commands.admin.range.description");
new AdminRangeDisplayCommand(this);
new AdminRangeSetCommand(this);

View File

@ -27,6 +27,7 @@ public class AdminRangeDisplayCommand extends CompositeCommand {
@Override
public void setup() {
setPermission("admin.range.display");
setDescription("commands.admin.range.display.description");
setOnlyPlayer(true);
}

View File

@ -17,6 +17,8 @@ public class AdminRangeResetCommand extends CompositeCommand {
@Override
public void setup() {
setPermission("admin.range.reset");
setParameters("commands.admin.range.reset.parameters");
setDescription("commands.admin.range.reset.description");
}
@Override

View File

@ -19,6 +19,8 @@ public class AdminRangeSetCommand extends CompositeCommand {
@Override
public void setup() {
setPermission("admin.range.set");
setParameters("commands.admin.range.set.parameters");
setDescription("commands.admin.range.set.description");
}
@Override

View File

@ -16,6 +16,8 @@ public class AdminTeamAddCommand extends CompositeCommand {
@Override
public void setup() {
setPermission("admin.team");
setParameters("commands.admin.team.add.parameters");
setDescription("commands.admin.team.add.description");
}
@Override

View File

@ -15,6 +15,8 @@ public class AdminTeamDisbandCommand extends CompositeCommand {
@Override
public void setup() {
setPermission("admin.team");
setParameters("commands.admin.team.disband.parameters");
setDescription("commands.admin.team.disband.description");
}
@Override

View File

@ -16,6 +16,8 @@ public class AdminTeamKickCommand extends CompositeCommand {
@Override
public void setup() {
setPermission("admin.team");
setParameters("commands.admin.team.kick.parameters");
setDescription("commands.admin.team.kick.description");
}
@Override

View File

@ -15,6 +15,8 @@ public class AdminTeamMakeLeaderCommand extends CompositeCommand {
@Override
public void setup() {
setPermission("admin.team");
setParameters("commands.admin.team.makeleader.parameters");
setDescription("commands.admin.team.makeleader.description");
}
@Override

View File

@ -25,6 +25,8 @@ public class IslandBanCommand extends CompositeCommand {
public void setup() {
setPermission("island.ban");
setOnlyPlayer(true);
setParameters("commands.island.ban.parameters");
setDescription("commands.island.ban.description");
}
@Override

View File

@ -18,6 +18,7 @@ public class IslandBanlistCommand extends CompositeCommand {
public void setup() {
setPermission("island.ban");
setOnlyPlayer(true);
setDescription("commands.island.banlist.description");
}
@Override

View File

@ -27,6 +27,7 @@ public class IslandCreateCommand extends CompositeCommand {
public void setup() {
setPermission("island.create");
setOnlyPlayer(true);
setDescription("commands.island.create.description");
}
@Override

View File

@ -22,6 +22,7 @@ public class IslandGoCommand extends CompositeCommand {
public void setup() {
setPermission("island.home");
setOnlyPlayer(true);
setDescription("commands.island.go.description");
new CustomIslandMultiHomeHelp(this);
}

View File

@ -19,6 +19,7 @@ public class IslandLanguageCommand extends CompositeCommand {
public void setup() {
setPermission("island.language");
setOnlyPlayer(true);
setDescription("commands.island.language.description");
}
@Override

View File

@ -29,6 +29,7 @@ public class IslandResetCommand extends CompositeCommand {
cooldown = new HashMap<>();
setPermission("island.create");
setOnlyPlayer(true);
setDescription("commands.island.reset.description");
}
@Override

View File

@ -20,6 +20,7 @@ public class IslandResetnameCommand extends CompositeCommand {
public void setup() {
setPermission("island.name");
setOnlyPlayer(true);
setDescription("commands.island.resetname.description");
}
@Override

View File

@ -18,6 +18,7 @@ public class IslandSethomeCommand extends CompositeCommand {
public void setup() {
setPermission("island.sethome");
setOnlyPlayer(true);
setDescription("commands.island.sethome.description");
new CustomIslandMultiHomeHelp(this);
}

View File

@ -24,6 +24,8 @@ public class IslandSetnameCommand extends CompositeCommand {
public void setup() {
setPermission("island.name");
setOnlyPlayer(true);
setParameters("commands.island.setname.parameters");
setDescription("commands.island.setname.description");
}
@Override

View File

@ -21,6 +21,7 @@ public class IslandSettingsCommand extends CompositeCommand {
public void setup() {
setPermission("island.settings");
setOnlyPlayer(true);
setDescription("commands.island.settings.description");
}
@Override

View File

@ -21,6 +21,8 @@ public class IslandUnbanCommand extends CompositeCommand {
public void setup() {
setPermission("island.ban");
setOnlyPlayer(true);
setParameters("commands.island.unban.parameters");
setDescription("commands.island.unban.description");
}
@Override

View File

@ -22,6 +22,7 @@ public class IslandTeamCommand extends CompositeCommand {
public void setup() {
setPermission("island.team");
setOnlyPlayer(true);
setDescription("commands.island.team.description");
// Register commands
inviteCommand = new IslandTeamInviteCommand(this);
new IslandTeamLeaveCommand(this);

View File

@ -26,6 +26,7 @@ public class IslandTeamInviteAcceptCommand extends CompositeCommand {
public void setup() {
setPermission("island.team");
setOnlyPlayer(true);
setDescription("commands.island.team.invite.accept.description");
}
@Override

View File

@ -30,6 +30,7 @@ public class IslandTeamInviteCommand extends CompositeCommand {
public void setup() {
setPermission("island.team");
setOnlyPlayer(true);
setDescription("commands.island.team.invite.description");
inviteList = HashBiMap.create();
}

View File

@ -22,6 +22,7 @@ public class IslandTeamInviteRejectCommand extends CompositeCommand {
public void setup() {
setPermission("island.team");
setOnlyPlayer(true);
setDescription("commands.island.team.invite.reject.description");
}
@Override

View File

@ -16,6 +16,8 @@ public class IslandTeamKickCommand extends CompositeCommand {
public void setup() {
setPermission("island.team");
setOnlyPlayer(true);
setParameters("commands.island.team.kick.parameters");
setDescription("commands.island.team.kick.description");
}
@Override

View File

@ -17,6 +17,7 @@ public class IslandTeamLeaveCommand extends CompositeCommand {
public void setup() {
setPermission("island.team");
setOnlyPlayer(true);
setDescription("commands.island.team.leave.description");
}
@Override

View File

@ -16,6 +16,13 @@ public class IslandTeamPromoteCommand extends CompositeCommand {
public void setup() {
setPermission("island.team");
setOnlyPlayer(true);
if (this.getLabel().equals("promote")) {
setParameters("commands.island.team.promote.parameters");
setDescription("commands.island.team.promote.description");
} else {
setParameters("commands.island.team.demote.parameters");
setDescription("commands.island.team.demote.description");
}
}
@Override

View File

@ -21,6 +21,8 @@ public class IslandTeamSetownerCommand extends CompositeCommand {
public void setup() {
setPermission("island.team");
setOnlyPlayer(true);
setParameters("commands.island.team.setowner.parameters");
setDescription("commands.island.team.setowner.description");
}
@Override

View File

@ -22,7 +22,7 @@ public class AboutCommand extends CompositeCommand {
@Override
public void setup() {
setDescription("commands.bentobox.about.description");
}
@Override

View File

@ -16,6 +16,7 @@ public class BentoBoxCommand extends CompositeCommand {
@Override
public void setup() {
setDescription("commands.bentobox.description");
new VersionCommand(this);
new AboutCommand(this);
}

View File

@ -23,7 +23,7 @@ public class VersionCommand extends CompositeCommand {
@Override
public void setup() {
setDescription("commands.bentobox.info.description");
}
@Override