Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # | ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ | #
- # | KyPing - Veja seu ping em menu gui! | #
- # | Dependências > SkQuery | #
- # | Licença > CC BY-NC-SA 4.0 BR | #
- # | Autor > KyrusDev | #
- # | Versão > 1.0 | #
- # | ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ | #
- # | ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ | #
- # | Configurações do Skript.
- # | ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ | #
- options:
- #Nome do Menu.
- menuname: &6&lPing
- #Mensagens: Erro.
- error1: &4&lERRO: &r&cVocê não tem acesso a este comando.
- # | ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ | #
- # | Código de fonte.
- # | ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ | #
- on script load:
- send "&cKyPing > &7Ativado com sucesso!" to console
- send "&cKyPing > &7Autor: &6KyrusDev&7." to console
- on script unload:
- send "&cKyPing > &7Desativado com sucesso!" to console
- send "&cKyPing > &7Autor: &6KyrusDev&7." to console
- command /kyping [<text>]:
- permission: kyping.staff
- permission message: {@error1}
- trigger:
- if arg 1 is "help":
- send "&8&l<&r&c&m------------------------------&8&l>"
- send "&c&lKyPing: &r&6Comandos"
- send " "
- send "&c&l> &r&6/kyping help &7- Lista de comandos."
- send "&c&l> &r&6/kyping load &7- Atualizar configurações."
- send "&c&l> &r&6/ping &7- Ver seu ping atual."
- send "&8&l<&r&c&m------------------------------&8&l>"
- stop
- if arg 1 is "load":
- send "&c&l> &r&7Atualizando configurações..."
- wait 1 seconds
- make player execute command "/sk reload KyPing"
- wait 1 seconds
- send "&c&l> &r&7Configurações atualizadas!"
- stop
- if arg 1 is not set:
- send "&4&lERRO: &r&c/kyping <help | load>"
- stop
- command /ping:
- permission: kyping.ping
- permission message: {@error1}
- aliases: /ms
- trigger:
- set {_ping} to the player's ping
- open chest with 1 rows named "{@menuname}" to the player
- format slot 0 of player with orange glass pane named " " to close
- format slot 1 of player with red glass pane named " " to close
- format slot 2 of player with gray glass pane named " " to close
- format slot 3 of player with gray glass pane named " " to close
- 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."]
- format slot 5 of player with gray glass pane named " " to close
- format slot 6 of player with gray glass pane named " " to close
- format slot 7 of player with red glass pane named " " to close
- format slot 8 of player with orange glass pane named " " to close
- stop
Advertisement
Add Comment
Please, Sign In to add comment