Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- case "set":
- if(Objects.equals(args[1], "on")) {
- BuildUtils.setBuildMode(player,true);
- InventoryManager.replaceInventoryTo(player, "lobby", "build");
- player.sendMessage(prefix + ChatColor.GREEN + "Successfully set build mode to true");
- break;
- } else if (Objects.equals(args[1], "off")) {
- BuildUtils.setBuildMode(player, false);
- InventoryManager.replaceInventoryTo(player, "lobby", "normal");
- player.sendMessage(prefix + ChatColor.GREEN + "Successfully set build mode to false");
- break;
- } else {
- player.sendMessage(prefix + ChatColor.GRAY + "Please use /build set on/off");
- break;
- }
- default:
- player.sendMessage(prefix + ChatColor.RED + "Please use /build toggle/set");
- break;
- }
Advertisement
Add Comment
Please, Sign In to add comment