mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2025-02-17 21:02:20 +01:00
Removed useless #setDescription() and #setParameters() in commands
This commit is contained in:
parent
a9a932fdc3
commit
0e8e9dde67
@ -17,7 +17,6 @@ public class AdminClearResetsAllCommand extends CompositeCommand {
|
||||
@Override
|
||||
public void setup() {
|
||||
setPermission("admin.clearresetsall");
|
||||
setDescription("commands.admin.clearresetsall.description");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -18,8 +18,6 @@ public class AdminClearResetsCommand extends CompositeCommand {
|
||||
@Override
|
||||
public void setup() {
|
||||
setPermission("admin.clearreset");
|
||||
setParameters("commands.admin.clearresets.parameters");
|
||||
setDescription("commands.admin.clearresets.description");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -18,8 +18,6 @@ public class AdminDeleteCommand extends CompositeCommand {
|
||||
@Override
|
||||
public void setup() {
|
||||
setPermission("admin.delete");
|
||||
setParameters("commands.admin.delete.parameters");
|
||||
setDescription("commands.admin.delete.description");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -28,8 +28,6 @@ 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,8 +16,6 @@ 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,8 +23,6 @@ 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,8 +25,6 @@ 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,8 +25,6 @@ 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,8 +23,6 @@ public class AdminTeleportCommand extends CompositeCommand {
|
||||
// Permission
|
||||
setPermission(getPermissionPrefix() + "admin.tp");
|
||||
setOnlyPlayer(true);
|
||||
setParameters("commands.admin.tp.parameters");
|
||||
setDescription("commands.admin.tp.description");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -18,8 +18,6 @@ public class AdminUnregisterCommand extends CompositeCommand {
|
||||
@Override
|
||||
public void setup() {
|
||||
setPermission("admin.unregister");
|
||||
setParameters("commands.admin.unregister.parameters");
|
||||
setDescription("commands.admin.unregister.description");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -15,7 +15,6 @@ public class AdminVersionCommand extends CompositeCommand {
|
||||
public void setup() {
|
||||
// Permission
|
||||
setPermission("admin.version");
|
||||
setDescription("commands.admin.version.description");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -17,7 +17,6 @@ public class AdminRangeCommand extends CompositeCommand {
|
||||
@Override
|
||||
public void setup() {
|
||||
setPermission("admin.range");
|
||||
setDescription("commands.admin.range.description");
|
||||
|
||||
new AdminRangeDisplayCommand(this);
|
||||
new AdminRangeSetCommand(this);
|
||||
|
@ -27,7 +27,6 @@ public class AdminRangeDisplayCommand extends CompositeCommand {
|
||||
@Override
|
||||
public void setup() {
|
||||
setPermission("admin.range.display");
|
||||
setDescription("commands.admin.range.display.description");
|
||||
setOnlyPlayer(true);
|
||||
}
|
||||
|
||||
|
@ -17,8 +17,6 @@ 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,8 +19,6 @@ 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,8 +16,6 @@ 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,8 +15,6 @@ 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,8 +16,6 @@ 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,8 +15,6 @@ 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,8 +25,6 @@ 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,7 +18,6 @@ public class IslandBanlistCommand extends CompositeCommand {
|
||||
public void setup() {
|
||||
setPermission("island.ban");
|
||||
setOnlyPlayer(true);
|
||||
setDescription("commands.island.banlist.description");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -27,7 +27,6 @@ public class IslandCreateCommand extends CompositeCommand {
|
||||
public void setup() {
|
||||
setPermission("island.create");
|
||||
setOnlyPlayer(true);
|
||||
setDescription("commands.island.create.description");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -22,7 +22,6 @@ public class IslandGoCommand extends CompositeCommand {
|
||||
public void setup() {
|
||||
setPermission("island.home");
|
||||
setOnlyPlayer(true);
|
||||
setDescription("commands.island.go.description");
|
||||
new CustomIslandMultiHomeHelp(this);
|
||||
}
|
||||
|
||||
|
@ -19,7 +19,6 @@ public class IslandLanguageCommand extends CompositeCommand {
|
||||
public void setup() {
|
||||
setPermission("island.language");
|
||||
setOnlyPlayer(true);
|
||||
setDescription("commands.island.language.description");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -29,7 +29,6 @@ public class IslandResetCommand extends CompositeCommand {
|
||||
cooldown = new HashMap<>();
|
||||
setPermission("island.create");
|
||||
setOnlyPlayer(true);
|
||||
setDescription("commands.island.reset.description");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -20,7 +20,6 @@ public class IslandResetnameCommand extends CompositeCommand {
|
||||
public void setup() {
|
||||
setPermission("island.name");
|
||||
setOnlyPlayer(true);
|
||||
setDescription("commands.island.resetname.description");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -18,7 +18,6 @@ public class IslandSethomeCommand extends CompositeCommand {
|
||||
public void setup() {
|
||||
setPermission("island.sethome");
|
||||
setOnlyPlayer(true);
|
||||
setDescription("commands.island.sethome.description");
|
||||
new CustomIslandMultiHomeHelp(this);
|
||||
}
|
||||
|
||||
|
@ -24,8 +24,6 @@ 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,7 +21,6 @@ public class IslandSettingsCommand extends CompositeCommand {
|
||||
public void setup() {
|
||||
setPermission("island.settings");
|
||||
setOnlyPlayer(true);
|
||||
setDescription("commands.island.settings.description");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -21,8 +21,6 @@ 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,7 +22,6 @@ 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,7 +26,6 @@ public class IslandTeamInviteAcceptCommand extends CompositeCommand {
|
||||
public void setup() {
|
||||
setPermission("island.team");
|
||||
setOnlyPlayer(true);
|
||||
setDescription("commands.island.team.invite.accept.description");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -30,7 +30,6 @@ public class IslandTeamInviteCommand extends CompositeCommand {
|
||||
public void setup() {
|
||||
setPermission("island.team");
|
||||
setOnlyPlayer(true);
|
||||
setDescription("commands.island.team.invite.description");
|
||||
inviteList = HashBiMap.create();
|
||||
}
|
||||
|
||||
|
@ -22,7 +22,6 @@ public class IslandTeamInviteRejectCommand extends CompositeCommand {
|
||||
public void setup() {
|
||||
setPermission("island.team");
|
||||
setOnlyPlayer(true);
|
||||
setDescription("commands.island.team.invite.reject.description");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -16,8 +16,6 @@ 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,7 +17,6 @@ public class IslandTeamLeaveCommand extends CompositeCommand {
|
||||
public void setup() {
|
||||
setPermission("island.team");
|
||||
setOnlyPlayer(true);
|
||||
setDescription("commands.island.team.leave.description");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -16,13 +16,6 @@ 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,8 +21,6 @@ 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,7 +16,6 @@ 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