mirror of
https://github.com/songoda/EpicBosses.git
synced 2025-01-03 13:57:36 +01:00
Fixed some nasty command mistakes.
This commit is contained in:
parent
e2cc547cfd
commit
706fbd8792
@ -6,7 +6,6 @@ import com.songoda.epicbosses.container.BossEntityContainer;
|
||||
import com.songoda.epicbosses.entity.BossEntity;
|
||||
import com.songoda.epicbosses.utils.EntityFinder;
|
||||
import com.songoda.epicbosses.utils.Message;
|
||||
import com.songoda.epicbosses.utils.Permission;
|
||||
import com.songoda.epicbosses.utils.StringUtils;
|
||||
import org.bukkit.command.CommandSender;
|
||||
import org.bukkit.entity.EntityType;
|
||||
@ -88,7 +87,7 @@ public class CommandCreate extends AbstractCommand {
|
||||
|
||||
@Override
|
||||
public String getSyntax() {
|
||||
return "create <[>name> <entity>";
|
||||
return "create <name> <entity>";
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -3,7 +3,6 @@ package com.songoda.epicbosses.commands;
|
||||
import com.songoda.core.commands.AbstractCommand;
|
||||
import com.songoda.epicbosses.managers.DebugManager;
|
||||
import com.songoda.epicbosses.utils.Message;
|
||||
import com.songoda.epicbosses.utils.Permission;
|
||||
import org.bukkit.command.CommandSender;
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
@ -47,16 +46,16 @@ public class CommandDebug extends AbstractCommand {
|
||||
|
||||
@Override
|
||||
public String getPermissionNode() {
|
||||
return "boss.reload";
|
||||
return "boss.debug";
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getSyntax() {
|
||||
return "reload";
|
||||
return "debug";
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getDescription() {
|
||||
return "Reloads EpicBosses and its configurations.";
|
||||
return "Toggles on and off the debug mode.";
|
||||
}
|
||||
}
|
||||
|
@ -105,7 +105,7 @@ public class CommandGiveEgg extends AbstractCommand {
|
||||
|
||||
@Override
|
||||
public String getSyntax() {
|
||||
return "giveegg <name> <player> [amount]";
|
||||
return "give/giveegg <name> <player> [amount]";
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -39,7 +39,7 @@ public class CommandList extends AbstractCommand {
|
||||
|
||||
@Override
|
||||
public String getSyntax() {
|
||||
return "list";
|
||||
return "list/show";
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -34,12 +34,12 @@ public class CommandMenu extends AbstractCommand {
|
||||
|
||||
@Override
|
||||
public String getPermissionNode() {
|
||||
return "menu";
|
||||
return "boss.menu";
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getSyntax() {
|
||||
return null;
|
||||
return "menu";
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -46,7 +46,7 @@ public class CommandShop extends AbstractCommand {
|
||||
|
||||
@Override
|
||||
public String getSyntax() {
|
||||
return "shop";
|
||||
return "shop/buy/store";
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -39,7 +39,7 @@ public class CommandSkills extends AbstractCommand {
|
||||
|
||||
@Override
|
||||
public String getSyntax() {
|
||||
return "skills";
|
||||
return "skills/skill";
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -1,36 +0,0 @@
|
||||
package com.songoda.epicbosses.utils;
|
||||
|
||||
import org.bukkit.command.CommandSender;
|
||||
|
||||
/**
|
||||
* @author Charles Cullen
|
||||
* @version 1.0.0
|
||||
* @since 04-Oct-18
|
||||
*/
|
||||
public enum Permission {
|
||||
|
||||
admin("boss.admin"),
|
||||
create("boss.create"),
|
||||
debug("boss.debug"),
|
||||
edit("boss.edit"),
|
||||
give("boss.give"),
|
||||
help("boss.help"),
|
||||
nearby("boss.nearby"),
|
||||
reload("boss.reload"),
|
||||
shop("boss.shop"),
|
||||
time("boss.time");
|
||||
|
||||
private String permission;
|
||||
|
||||
Permission(String permission) {
|
||||
this.permission = permission;
|
||||
}
|
||||
|
||||
public boolean hasPermission(CommandSender commandSender) {
|
||||
return commandSender.hasPermission(getPermission());
|
||||
}
|
||||
|
||||
public String getPermission() {
|
||||
return this.permission;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user