Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void invite() {
- if (party == null || !party.isLeader(player))
- return;
- player.stopAll();
- if (party.getDungeon() != null) {
- player.getPackets().sendGameMessage("You can't do that right now.");
- return;
- }
- WorldTasksManager.schedule(new WorldTask() {
- @Override
- public void run() {
- player.getPackets().sendInputNameScript("Enter name:");
- player.getTemporaryAttributtes().put(Key.DUNGEON_INVITE, Boolean.TRUE);
- }
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment