armark1ng

Untitled

Sep 22nd, 2016
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. public void invite() {
  2. if (party == null || !party.isLeader(player))
  3. return;
  4. player.stopAll();
  5. if (party.getDungeon() != null) {
  6. player.getPackets().sendGameMessage("You can't do that right now.");
  7. return;
  8. }
  9. WorldTasksManager.schedule(new WorldTask() {
  10.  
  11. @Override
  12. public void run() {
  13. player.getPackets().sendInputNameScript("Enter name:");
  14. player.getTemporaryAttributtes().put(Key.DUNGEON_INVITE, Boolean.TRUE);
  15. }
  16. });
  17. }
Advertisement
Add Comment
Please, Sign In to add comment