armark1ng

Untitled

Apr 11th, 2016
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. case "openmyshop":
  2. player.getPlayerOwnedShop().openPlayerShop();
  3. return true;
  4. case "openshop":
  5. name = "";
  6. for (int i = 1; i < cmd.length; i++)
  7. name += cmd[i] + ((i == cmd.length - 1) ? "" : " ");
  8. Player target = World.getPlayerByDisplayName(name);
  9. if (target == null)
  10. return false;
  11. if (target.getDisplayName().equalsIgnoreCase(
  12. player.getDisplayName())) {
  13. player.getPackets().sendGameMessage(
  14. "If you want to open your shop use ::openmyshop");
  15. return false;
  16. }
  17. target.getPlayerOwnedShop().showMyShopToPlayer(player);
  18. return true;
Advertisement
Add Comment
Please, Sign In to add comment