mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-11-30 22:53:39 +01:00
Added description to /bsb (reload and version) + added some aliases
This commit is contained in:
parent
b04602302b
commit
4bd02a59ef
@ -19,7 +19,7 @@ public class AdminCommand extends CompositeCommand {
|
|||||||
public void setup() {
|
public void setup() {
|
||||||
setPermission(Constants.PERMPREFIX + "admin.*");
|
setPermission(Constants.PERMPREFIX + "admin.*");
|
||||||
setOnlyPlayer(false);
|
setOnlyPlayer(false);
|
||||||
setDescription("admin.help.description");
|
setDescription("commands.admin.help.description");
|
||||||
new AdminVersionCommand(this);
|
new AdminVersionCommand(this);
|
||||||
new AdminReloadCommand(this);
|
new AdminReloadCommand(this);
|
||||||
new AdminTeleportCommand(this);
|
new AdminTeleportCommand(this);
|
||||||
|
@ -9,18 +9,16 @@ import us.tastybento.bskyblock.api.commands.CompositeCommand;
|
|||||||
import us.tastybento.bskyblock.api.commands.User;
|
import us.tastybento.bskyblock.api.commands.User;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author ben
|
* @author tastybento
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class AdminReloadCommand extends CompositeCommand {
|
public class AdminReloadCommand extends CompositeCommand {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param parent
|
* @param parent
|
||||||
* @param label
|
|
||||||
* @param aliases
|
|
||||||
*/
|
*/
|
||||||
public AdminReloadCommand(CompositeCommand parent) {
|
public AdminReloadCommand(CompositeCommand parent) {
|
||||||
super(parent, "reload");
|
super(parent, "reload", "rl");
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
/* (non-Javadoc)
|
||||||
@ -28,8 +26,7 @@ public class AdminReloadCommand extends CompositeCommand {
|
|||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public void setup() {
|
public void setup() {
|
||||||
// TODO Auto-generated method stub
|
setDescription("commands.admin.reload.description");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
/* (non-Javadoc)
|
||||||
|
@ -9,13 +9,14 @@ import us.tastybento.bskyblock.api.commands.User;
|
|||||||
public class AdminVersionCommand extends CompositeCommand {
|
public class AdminVersionCommand extends CompositeCommand {
|
||||||
|
|
||||||
public AdminVersionCommand(CompositeCommand adminCommand) {
|
public AdminVersionCommand(CompositeCommand adminCommand) {
|
||||||
super(adminCommand, "version");
|
super(adminCommand, "version", "v");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void setup() {
|
public void setup() {
|
||||||
// Permission
|
// Permission
|
||||||
setPermission(Constants.PERMPREFIX + "admin.version");
|
setPermission(Constants.PERMPREFIX + "admin.version");
|
||||||
|
setDescription("commands.admin.version.description");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
Reference in New Issue
Block a user