Advertisement
lNockl

Menu 1.0

Oct 12th, 2016
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.49 KB | None | 0 0
  1. command /setteleport [<text>]:
  2.     trigger:
  3.         if arg 1 is set:
  4.             if player has permission "skript.admin":
  5.                 set {loc.%arg-1%} to location of player
  6.                 send "&6Warp %arg-1% setado com Sucesso"
  7.             else:
  8.                 send "&cVoce nao tem Permissao"
  9.         else:
  10.             send "&cUse /setteleport <warp>"
  11.            
  12.            
  13. command /warp [<text>]:
  14.     trigger:
  15.         apply slowness 20 to player for 5 seconds
  16.         send player title "" with subtitle "&cTeleportando em &63 &cSegundos" for 1 second
  17.         wait 1 second
  18.         send player title "" with subtitle "&cTeleportando em &62 &cSegundos" for 1 second
  19.         wait 1 second
  20.         send player title "" with subtitle "&cTeleportando em &61 &cSegundos" for 1 second
  21.         wait 1 second
  22.         teleport player to {loc.%arg-1%}
  23.         remove slowness from player
  24.        
  25. command /addregiao [<text>]:
  26.     trigger:
  27.         if player has permission "skript.admin":
  28.             if arg 1 is "pos1":
  29.                 set {region.pos1} to location of target block
  30.                 send "&6Setado pos1 com secesso"
  31.             if arg 1 is "pos2":
  32.                 set {region.pos2} to location of target block
  33.                 send "&6Setado pos2 com secesso"
  34.                
  35.                
  36. every 10 ticks:
  37.     set {region::count} to 0
  38.     loop all players:
  39.         if loop-player is within {region.pos1} to {region.pos2}:
  40.             add 1 to {region::count}
  41.            
  42.            
  43. command /server:
  44.     trigger:
  45.         open chest with 3 rows named "&cServidores" to player
  46.         wait a tick
  47.         format slot 13 of player with bow named "&e&lSkywars Minigame" with lore "&6Players Jogando: &7%{region::count}%" to close then run [make player execute command "/warp skywars"]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement