HallowedS

Untitled

Aug 29th, 2017
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.08 KB | None | 0 0
  1. command /gerarkey [<text>]:
  2. trigger:
  3. if player has permission "admin.usar":
  4. if arg 1 is not set:
  5. set {_Key} to a random integer between 1 and 999999
  6. add {_Key} to {Keys::*}
  7. send "&a&lKEY: &aNova key gerada! (%{_Key}%)"
  8.  
  9. command /apagarkeys [<text>]:
  10. aliases: /apagarkey, /delkey
  11. trigger:
  12. if player has permission "admin.usar":
  13. if arg 1 is not set:
  14. clear {Keys::*}
  15. send "&c&lKEY: &cTodas keys foram apagas."
  16.  
  17. command /keys [<text>]:
  18. aliases: /chaves, /chave, /key
  19. trigger:
  20. if player has permission "admin.usar":
  21. if arg 1 is not set:
  22. set {_msg} to "&a&lKEY: xx%{Keys::*}%"
  23. replace all "<none>" with "&fNenhuma key gerada!" in {_msg}
  24. replace all "xx" with "&7" in {_msg}
  25. replace all "and" with "&fe&7" in {_msg}
  26. replace all "," with "&f,&7" in {_msg}
  27. send "%{_msg}%"
  28.  
  29. command /usarkey [<integer>]:
  30. trigger:
  31. if arg 1 is set:
  32. if {Keys::*} contains arg 1:
  33. remove arg 1 from {Keys::*}
  34. send "&a&lKEY: &aVocê usou a key: %arg 1%"
  35. else:
  36. send "&c&lKEY: &cKey Incorreta ou Não Existe!"
Advertisement
Add Comment
Please, Sign In to add comment