Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- case "openmyshop":
- player.getPlayerOwnedShop().openPlayerShop();
- return true;
- case "openshop":
- name = "";
- for (int i = 1; i < cmd.length; i++)
- name += cmd[i] + ((i == cmd.length - 1) ? "" : " ");
- Player target = World.getPlayerByDisplayName(name);
- if (target == null)
- return false;
- if (target.getDisplayName().equalsIgnoreCase(
- player.getDisplayName())) {
- player.getPackets().sendGameMessage(
- "If you want to open your shop use ::openmyshop");
- return false;
- }
- target.getPlayerOwnedShop().showMyShopToPlayer(player);
- return true;
Advertisement
Add Comment
Please, Sign In to add comment