mirror of
https://github.com/JamesPeters98/ChestsPlusPlus.git
synced 2025-02-28 18:31:25 +01:00
Fixed Descriptions & Cleaned Up
This commit is contained in:
parent
5d99493344
commit
e6ef997041
@ -50,9 +50,9 @@ import org.bukkit.plugin.java.annotation.plugin.author.Author;
|
||||
@Permission(name = Permissions.OPEN, desc = "Gives permission to open ChestLinks!", defaultValue = PermissionDefault.TRUE)
|
||||
@Permission(name = Permissions.MENU, desc = "Gives permission to open the ChestLink menu!", defaultValue = PermissionDefault.TRUE)
|
||||
@Permission(name = Permissions.REMOVE, desc = "Gives permission to remove a ChestLink!", defaultValue = PermissionDefault.TRUE)
|
||||
@Permission(name = Permissions.OPEN_ANY, desc = "Gives permission to open all chests, for admin use.", defaultValue = PermissionDefault.OP)
|
||||
@Permission(name = Permissions.OPEN_ANY, desc = "Gives permission to open all chests/autocraft stations, for admin use.", defaultValue = PermissionDefault.OP)
|
||||
@Permission(name = Permissions.MEMBER, desc = "Gives permission to add/remove a member to/from their chestlink.", defaultValue = PermissionDefault.TRUE)
|
||||
@Permission(name = Permissions.SORT, desc = "Set the sorting option for the given ChestLink.", defaultValue = PermissionDefault.TRUE)
|
||||
@Permission(name = Permissions.SORT, desc = "Gives permission to sort ChestLinks.", defaultValue = PermissionDefault.TRUE)
|
||||
@Permission(name = Permissions.AUTOCRAFT_OPEN, desc = "Gives permission to open AutoCrafting stations.", defaultValue = PermissionDefault.TRUE)
|
||||
@Permission(name = Permissions.AUTOCRAFT_ADD, desc = "Gives permission to add AutoCrafting stations.", defaultValue = PermissionDefault.TRUE)
|
||||
@Permission(name = Permissions.AUTOCRAFT_REMOVE, desc = "Gives permission to remove AutoCrafting stations.", defaultValue = PermissionDefault.TRUE)
|
||||
|
@ -27,7 +27,7 @@ public class AutoCraftCommand extends ServerCommand {
|
||||
HELP("/autocraft help","List of commands and their uses!"),
|
||||
LIST("/autocraft list","Lists all AutoCraft groups that you own!"),
|
||||
MEMBER("/autocraft member [add/remove <group> <player>] or [list <group>]","Add, remove or list members of a group"),
|
||||
MENU("/autocraft menu","Open the AutoCraft menu to display all groups!"),
|
||||
// MENU("/autocraft menu","Open the AutoCraft menu to display all groups!"),
|
||||
OPEN("/autocraft open <Group>","Open the workbench of an AutoCraft group"),
|
||||
REMOVE("/autocraft remove <Group>", "Delete an AutoCraft group and drop all the Crafting Tables!"),
|
||||
RENAME("/autocraft rename <group> <new-name>","Rename an AutoCraft group."),
|
||||
@ -110,16 +110,16 @@ public class AutoCraftCommand extends ServerCommand {
|
||||
player.sendMessage(ChatColor.RED+ OPTIONS.OPEN.description);
|
||||
return true;
|
||||
}
|
||||
case MENU:
|
||||
if(sender.hasPermission(Permissions.MENU)) {
|
||||
//TODO Add AutoCraft menu.
|
||||
player.sendMessage(ChatColor.GOLD+" Currently unimplemented in this BETA!");
|
||||
//ChestLinkMenu.getMenu(player).open(player);
|
||||
return true;
|
||||
} else {
|
||||
Messages.NO_PERMISSION(player);
|
||||
return true;
|
||||
}
|
||||
// case MENU:
|
||||
// if(sender.hasPermission(Permissions.MENU)) {
|
||||
// //TODO Add AutoCraft menu.
|
||||
// player.sendMessage(ChatColor.GOLD+" Currently unimplemented in this BETA!");
|
||||
// //ChestLinkMenu.getMenu(player).open(player);
|
||||
// return true;
|
||||
// } else {
|
||||
// Messages.NO_PERMISSION(player);
|
||||
// return true;
|
||||
// }
|
||||
case LIST:
|
||||
Config.getAutoCraft().getMessages().listStorageGroups(player);
|
||||
return true;
|
||||
|
@ -133,7 +133,6 @@ public class StorageListener implements Listener {
|
||||
}
|
||||
if (storageType.hasPermissionToAdd(event.getPlayer())) {
|
||||
storageType.createStorageFacing(event.getPlayer(), owner, event.getBlockPlaced(), storageID, blockFace, false);
|
||||
// storageType.add(event.getPlayer(), storageID, event.getBlockPlaced().getLocation(), event.getPlayer().)
|
||||
} else {
|
||||
event.setCancelled(true);
|
||||
Messages.NO_PERMISSION(event.getPlayer());
|
||||
|
Loading…
Reference in New Issue
Block a user