Guest User

Code

a guest
Feb 15th, 2022
19
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.88 KB | None | 0 0
  1. else {
  2.                                 player.closeInventory();
  3.                                 JSONMessage.create(Variables.server + "Do you like to change the gamemode of " + player_list.get(i).getDisplayName() + " §r§7to survival")
  4.                                         .then("§a§nyes ")
  5.                                         .tooltip("Click to go")
  6.                                         .runCommand("/gamemode survival " + player_list.get(i))
  7.                                         .then("§r§7or")
  8.                                         .then("§c§nno§r§7!")
  9.                                         .tooltip("Click to go")
  10.                                         .runCommand("/gui")
  11.                                         .send(player);
  12.                                 player.playSound(player.getLocation(), Sound.UI_TOAST_OUT, 1f, 1f);
  13.                             }
Advertisement
Add Comment
Please, Sign In to add comment