Added description to /bsb (reload and version) + added some aliases

This commit is contained in:
Florian CUNY 2018-02-10 17:03:57 +01:00
parent b04602302b
commit 4bd02a59ef
3 changed files with 6 additions and 8 deletions

View File

@ -19,7 +19,7 @@ public class AdminCommand extends CompositeCommand {
public void setup() {
setPermission(Constants.PERMPREFIX + "admin.*");
setOnlyPlayer(false);
setDescription("admin.help.description");
setDescription("commands.admin.help.description");
new AdminVersionCommand(this);
new AdminReloadCommand(this);
new AdminTeleportCommand(this);

View File

@ -9,18 +9,16 @@ import us.tastybento.bskyblock.api.commands.CompositeCommand;
import us.tastybento.bskyblock.api.commands.User;
/**
* @author ben
* @author tastybento
*
*/
public class AdminReloadCommand extends CompositeCommand {
/**
* @param parent
* @param label
* @param aliases
*/
public AdminReloadCommand(CompositeCommand parent) {
super(parent, "reload");
super(parent, "reload", "rl");
}
/* (non-Javadoc)
@ -28,8 +26,7 @@ public class AdminReloadCommand extends CompositeCommand {
*/
@Override
public void setup() {
// TODO Auto-generated method stub
setDescription("commands.admin.reload.description");
}
/* (non-Javadoc)

View File

@ -9,13 +9,14 @@ import us.tastybento.bskyblock.api.commands.User;
public class AdminVersionCommand extends CompositeCommand {
public AdminVersionCommand(CompositeCommand adminCommand) {
super(adminCommand, "version");
super(adminCommand, "version", "v");
}
@Override
public void setup() {
// Permission
setPermission(Constants.PERMPREFIX + "admin.version");
setDescription("commands.admin.version.description");
}
@Override