mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-11-28 05:35:44 +01:00
Revert "Removed useless #setDescription() and #setParameters() in commands"
This reverts commit 0e8e9dde67
.
This commit is contained in:
parent
48b169537a
commit
67ab937b97
@ -17,6 +17,7 @@ public class AdminClearResetsAllCommand extends CompositeCommand {
|
||||
@Override
|
||||
public void setup() {
|
||||
setPermission("admin.clearresetsall");
|
||||
setDescription("commands.admin.clearresetsall.description");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -20,7 +20,7 @@ public class AdminReloadCommand extends CompositeCommand {
|
||||
|
||||
@Override
|
||||
public void setup() {
|
||||
|
||||
setDescription("commands.admin.reload.description");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -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<>();
|
||||
}
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -15,6 +15,7 @@ public class AdminVersionCommand extends CompositeCommand {
|
||||
public void setup() {
|
||||
// Permission
|
||||
setPermission("admin.version");
|
||||
setDescription("commands.admin.version.description");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -18,6 +18,7 @@ public class IslandBanlistCommand extends CompositeCommand {
|
||||
public void setup() {
|
||||
setPermission("island.ban");
|
||||
setOnlyPlayer(true);
|
||||
setDescription("commands.island.banlist.description");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -27,6 +27,7 @@ public class IslandCreateCommand extends CompositeCommand {
|
||||
public void setup() {
|
||||
setPermission("island.create");
|
||||
setOnlyPlayer(true);
|
||||
setDescription("commands.island.create.description");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
@ -19,6 +19,7 @@ public class IslandLanguageCommand extends CompositeCommand {
|
||||
public void setup() {
|
||||
setPermission("island.language");
|
||||
setOnlyPlayer(true);
|
||||
setDescription("commands.island.language.description");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -29,6 +29,7 @@ public class IslandResetCommand extends CompositeCommand {
|
||||
cooldown = new HashMap<>();
|
||||
setPermission("island.create");
|
||||
setOnlyPlayer(true);
|
||||
setDescription("commands.island.reset.description");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -20,6 +20,7 @@ public class IslandResetnameCommand extends CompositeCommand {
|
||||
public void setup() {
|
||||
setPermission("island.name");
|
||||
setOnlyPlayer(true);
|
||||
setDescription("commands.island.resetname.description");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
|
@ -21,6 +21,7 @@ public class IslandSettingsCommand extends CompositeCommand {
|
||||
public void setup() {
|
||||
setPermission("island.settings");
|
||||
setOnlyPlayer(true);
|
||||
setDescription("commands.island.settings.description");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -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
|
||||
|
@ -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);
|
||||
|
@ -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
|
||||
|
@ -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();
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -17,6 +17,7 @@ public class IslandTeamLeaveCommand extends CompositeCommand {
|
||||
public void setup() {
|
||||
setPermission("island.team");
|
||||
setOnlyPlayer(true);
|
||||
setDescription("commands.island.team.leave.description");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -22,7 +22,7 @@ public class AboutCommand extends CompositeCommand {
|
||||
|
||||
@Override
|
||||
public void setup() {
|
||||
|
||||
setDescription("commands.bentobox.about.description");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -16,6 +16,7 @@ public class BentoBoxCommand extends CompositeCommand {
|
||||
|
||||
@Override
|
||||
public void setup() {
|
||||
setDescription("commands.bentobox.description");
|
||||
new VersionCommand(this);
|
||||
new AboutCommand(this);
|
||||
}
|
||||
|
@ -23,7 +23,7 @@ public class VersionCommand extends CompositeCommand {
|
||||
|
||||
@Override
|
||||
public void setup() {
|
||||
|
||||
setDescription("commands.bentobox.info.description");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user