lNockl

Versão 0.4

Aug 20th, 2016
276
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #Join/leave/
  2. on join:
  3.     set join message to "&7[&a+&7]&e %player% &9entrou no Servidor"
  4.     send player title "&e&lTHEHIGHCRAFT" with subtitle "&aNetWork" for 4 seconds
  5.     teleport player to {lobby.main}
  6.    
  7. on quit:
  8.     set quit message to "&7[&c-&7]&e %player% &9Saiu do Servidor"
  9.    
  10. on join:
  11.     set slot 0 of player to compass named "&bServidores"
  12.    
  13. on teleport:
  14.     wait 2 ticks
  15.     send player title "&e&lTHEHIGHCRAFT" with subtitle "&fServidor: &a%world of player%" for 3 seconds
  16.    
  17.    
  18. #/youtuber 
  19. command /youtuber:
  20.     aliases: /yt
  21.     trigger:
  22.         send "&7- &ePara Ser Youtuber voce precisa de 1000+"
  23.         send "&7- &ee se inscrever no canal Abaixo"
  24.         send "&ewww.youtube.com/filipenock"
  25.  
  26. #/lobby    
  27. command /setlobby:
  28.     trigger:
  29.         if player has permission "lobby.admin":
  30.             set {lobby.loc} to location of player
  31.             send "&bLobby setado para %location of player%"
  32.         else:
  33.             send "&cVoce nao tem permissao para este comando"
  34.            
  35. command /lobby:
  36.     trigger:
  37.         if {lobby.loc} is set:
  38.             send "&c&lTELEPORTANDO EM 3 SEGUNDOS"
  39.             wait 1 second
  40.             send "&c&lTELEPORTANDO EM 2 SEGUNDOS"
  41.             wait 1 second
  42.             send "&c&lTELEPORTANDO EM 1 SEGUNDOS"
  43.             wait 1 second
  44.             teleport player to {lobby.loc}
  45.             send "&eVoce voltou para o Lobby"
  46.         else:
  47.             send "&cLobby nao setado por favor set Imediatamente"
  48.  
  49. #ScoreBoard        
  50. every 1 second:
  51.     loop all players in world "world":
  52.         wipe loop-player's sidebar
  53.         set name of sidebar of loop-player to "&e&lTheHighCraft"
  54.         set score "&7   %now%" in sidebar of loop-player to 9
  55.         set score "&1" in sidebar of loop-player to 8
  56.         set score "&fCoins: &a%loop-player's balance%" in sidebar of loop-player to 7
  57.         set score "&2" in sidebar of loop-player to 6
  58.         set score "&fOnline: &a%number of all players%" in sidebar of loop-player to 5
  59.         set score "&3" in sidebar of loop-player to 4
  60.         set {rank.%loop-player%} to uncoloured loop-player's prefix
  61.         replace all "[" with "" in {rank.%loop-player%}
  62.         replace all "]" with "" in {rank.%loop-player%}
  63.         set score "&fRank: &a%{rank.%loop-player%}%" in sidebar of loop-player to 3
  64.         set score "" in sidebar of loop-player to 2
  65.         set score "&ewww.youtube.com" in sidebar of loop-player to 1
  66.  
  67. on teleport:
  68.     wipe player's sidebar
  69.        
  70. #rank_sistema      
  71. on join:
  72.     if player does not have permission "lobby.admin":
  73.         if player has permission "vip.tag":
  74.             set player's prefix to "&5[&bVIP&5]&f"
  75.             set player tab name to "&5[&bVIP&5]&f %player%"
  76.         else if player has permission "vip2.tag":
  77.             set player's prefix to "&b[&9VIP+&b]&f"
  78.             set player tab name to "&b[&9VIP+&b]&f %player%"           
  79.         else:
  80.             set player's prefix to "&0[&9Membro&0]&f"
  81.             set player tab name to "&0[&9Membro&0]&f %player%"
  82.     else:
  83.         set player's prefix to "&6[&eStaff&6]&f"
  84.         set player tab name to "&6[&eStaff&6]&f %player%"
  85.  
  86. #tag_sistema           
  87. command /tag [<text>]:
  88.     aliases: /tags
  89.     trigger:
  90.         if arg 1 is not set:
  91.             send "&5&e&lTags Liberadas&5"
  92.             send "&a✔ &9Membro"
  93.             if player has permission "tag.admin":
  94.                 send "&a✔ &cAdmin"
  95.             if player has permission "tag.dono":
  96.                 send "&a✔ &bDono"
  97.             if player has permission "tag.vip":
  98.                 send "&a✔ &eVIP"
  99.             if player has permission "tag.builder":
  100.                 send "&a✔ &7Builder"
  101.            
  102.         if arg 1 is "admin":
  103.             if player has permission "tag.admin":
  104.                 set player's prefix to "&4[&cAdmin&4]"
  105.                 set player tab name to "&4[&cAdmin&4]&f %player%"
  106.             else:
  107.                 send "&cVoce nao tem permissao para isso"
  108.                
  109.         if arg 1 is "dono":
  110.             if player has permission "tag.dono":
  111.                 set player's prefix to "&5[&bDono&5]"
  112.                 set player tab name to "&5[&bDono&5]&f %player%"
  113.             else:
  114.                 send "&cVoce nao tem permissao para isso"
  115.                
  116.         if arg 1 is "membro":
  117.             set player's prefix to "&0[&9Membro&0]"
  118.             set player tab name to "&0[&9Membro&0]&f %player%"
  119.                
  120.         if arg 1 is "vip":
  121.             if player has permission "tag.vip":
  122.                 set player's prefix to "&6[&eVIP&6]"
  123.                 set player tab name to "&6[&eVIP&6]&f %player%"
  124.             else:
  125.                 send "&cVoce nao tem permissao para isso"
  126.                
  127.         if arg 1 is "builder":
  128.             if player has permission "tag.builder":
  129.                 set player's prefix to "&d[&7Builder&d]"
  130.                 set player tab name to "&d[&7Builder&d]&f %player%"
  131.             else:
  132.                 send "&cVoce nao tem permissao para isso"
  133.            
  134. #chat_sistema          
  135. on chat:
  136.     cancel event
  137.     broadcast "&d➤ %player's prefix% &f%player's display name%: &7%message%" to the player's world
  138.  
  139.  
  140. #MenuSeletor
  141. on rightclick:
  142.     if player is holding a compass named "&bServidores":
  143.         open chest with 5 rows named "&d         &kiiiiiii&1&lServidores&d&kiiiii" to player
  144.         wait 1 tick
  145.         format slot 18 of player with bookshelf named "&bMainLobby" with lore "&7Click to Teleport||&fPlayers &a%{slot.mainlobby}%/100||%{state.mainlobby}%" to close then run [teleport player to {lobby.main}]
  146.         format slot 20 of player with bow named "&bSkyWars" with lore "&7Click to Teleport||&fPlayers &a%{slot.skywars}%/100||%{state.skywars}%" to close then run [teleport player to {lobby.skywars}]
  147.  
  148. every 1 tick:
  149.     set {slot.mainlobby} to number of players in world "world"
  150.     if {slot.mainlobby} is more than 100:
  151.         set {state.mainlobby} to "&cFull"
  152.     else:
  153.         set {state.mainlobby} to "&a&lONLINE"
  154.     set {slot.skywars} to number of players in world "skywars"
  155.     if {slot.skywars} is more than 100:
  156.         set {state.skywars} to "&cFull"
  157.     else:
  158.         set {state.skywars} to "&a&lONLINE"
  159.    
  160. #NaoPodeQuebrarNoMundoLobby
  161. on break:
  162.     if player does not have permission "lobby.admin":
  163.         cancel event
  164.        
  165. on place:
  166.     if player does not have permission "lobby.admin":
  167.         cancel event
  168.  
  169. #NaoPodeDroparNoMundoLobby         
  170. on drop:
  171.     if player is in world "world":
  172.         if player does not have permission "lobby.admin":
  173.             cancel event
  174.  
  175. on inventory click:
  176.     if player does not have permission "lobby.admin":
  177.         cancel event
  178.        
  179. #setar//os//lobbys
  180. command /setar [<text>]:
  181.     trigger:
  182.         if player has permission "lobby.admin":
  183.             if arg 1 is not set:
  184.                 send "&4&l→&cSelecione um dos Lobbys para setar (Skywars, MainLobby)"
  185.                 send "&4&l→&cExemplo /setar MainLobby"
  186.             if arg 1 is "mainlobby":
  187.                 set {lobby.main} to location of player
  188.                 send "&eMainlobby setado para %location of player%"
  189.             if arg 1 is "skywars":
  190.                 set {lobby.skywars} to location of player
  191.                 send "&eSkywars setado para %location of player%"
  192.         else:
  193.             send "&cVoce nao tem permissao para isso"
Add Comment
Please, Sign In to add comment