Guest User

Untitled

a guest
Sep 3rd, 2015
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.26 KB | None | 0 0
  1. # | ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ | #
  2. # | KyPing - Veja seu ping em menu gui! | #
  3. # | Dependências > SkQuery | #
  4. # | Licença > CC BY-NC-SA 4.0 BR | #
  5. # | Autor > KyrusDev | #
  6. # | Versão > 1.0 | #
  7. # | ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ | #
  8.  
  9. # | ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ | #
  10. # | Configurações do Skript.
  11. # | ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ | #
  12.  
  13. options:
  14.  
  15. #Nome do Menu.
  16. menuname: &6&lPing
  17.  
  18. #Mensagens: Erro.
  19. error1: &4&lERRO: &r&cVocê não tem acesso a este comando.
  20.  
  21. # | ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ | #
  22. # | Código de fonte.
  23. # | ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ | #
  24.  
  25. on script load:
  26. send "&cKyPing > &7Ativado com sucesso!" to console
  27. send "&cKyPing > &7Autor: &6KyrusDev&7." to console
  28.  
  29. on script unload:
  30. send "&cKyPing > &7Desativado com sucesso!" to console
  31. send "&cKyPing > &7Autor: &6KyrusDev&7." to console
  32.  
  33. command /kyping [<text>]:
  34. permission: kyping.staff
  35. permission message: {@error1}
  36. trigger:
  37. if arg 1 is "help":
  38. send "&8&l<&r&c&m------------------------------&8&l>"
  39. send "&c&lKyPing: &r&6Comandos"
  40. send " "
  41. send "&c&l> &r&6/kyping help &7- Lista de comandos."
  42. send "&c&l> &r&6/kyping load &7- Atualizar configurações."
  43. send "&c&l> &r&6/ping &7- Ver seu ping atual."
  44. send "&8&l<&r&c&m------------------------------&8&l>"
  45. stop
  46. if arg 1 is "load":
  47. send "&c&l> &r&7Atualizando configurações..."
  48. wait 1 seconds
  49. make player execute command "/sk reload KyPing"
  50. wait 1 seconds
  51. send "&c&l> &r&7Configurações atualizadas!"
  52. stop
  53. if arg 1 is not set:
  54. send "&4&lERRO: &r&c/kyping <help | load>"
  55. stop
  56.  
  57. command /ping:
  58. permission: kyping.ping
  59. permission message: {@error1}
  60. aliases: /ms
  61. trigger:
  62. set {_ping} to the player's ping
  63. open chest with 1 rows named "{@menuname}" to the player
  64. format slot 0 of player with orange glass pane named " " to close
  65. format slot 1 of player with red glass pane named " " to close
  66. format slot 2 of player with gray glass pane named " " to close
  67. format slot 3 of player with gray glass pane named " " to close
  68. format slot 4 of player with cookie named "{@menuname}" with lore "&c&l> &r&7Ping atual: &6%{_ping}%&7." to close then run [send "&c&l> &r&7Ping atual: &6%{_ping}%&7."]
  69. format slot 5 of player with gray glass pane named " " to close
  70. format slot 6 of player with gray glass pane named " " to close
  71. format slot 7 of player with red glass pane named " " to close
  72. format slot 8 of player with orange glass pane named " " to close
  73. stop
Advertisement
Add Comment
Please, Sign In to add comment