Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Skript : DCWarps
- # Versão : 1.0
- # Autor : Epiic/Junior
- # Forum Gamers Board (:
- options:
- #PREFIXO DO SERVIDOR
- P: &7[&6&lD&c&lC&7]
- #MSG DE SEM PERMISSÃO
- SP: &cVocê não tem permissão.
- #PERMISSÃO PARA ADMINISTRADORES
- PP: dcwarps.admin
- command /setlocal [<text>] [<text>]
- trigger:
- if arg 1 is set:
- if arg 2 is not set:
- if player has permission "{@PP}":
- set {Locais::%arg 1%} to location of player
- send "{@P} &aVocê setou o local &7%arg 1%"
- send "{@P} &aComando para ir é &7/%arg 1%"
- send "{@P} &aPermissão do warp é » &cirwarps.%arg 1%&a.
- stop
- else:
- send "{@P} &cUse: &7/setlocal [local]"
- stop
- else:
- send "{@P} &cUse: &7/setlocal [local]"
- stop
- command /dellocal [<text>]:
- trigger:
- if arg 1 is set:
- if player has permission "{@PP}":
- if {Locais::%arg 1%} is set:
- clear {Locais::%arg 1%}
- send "&aVocê deletou o &2%arg 1%&a!"
- stop
- else:
- send "{@P} &7Esse local não existe."
- stop
- else:
- send "{@P} {@SP}"
- stop
- else:
- send "{@P} &cUse: &7/dellocal [local]"
- stop
- command /warps:
- trigger:
- send "&2&l@===&b&l//&c&lLOCAIS&b&l\\&2&l===@"
- loop {Locais::*}:
- send "&6» &7/&f%loop-index%"
- send "&2&l@===&b&l\\&c&lLOCAIS&b&l//&2&l===@"
- stop
- on command:
- loop {Locais::*}:
- if "%loop-index%" is "%full command%":
- if player has permission "irwarps.%loop-index%":
- cancel event
- send "{@P} &aAguarde &73s &a..."
- set {_y} to rounded y coordinate of player
- set {_x} to rounded x coordinate of player
- set {_z} to rounded z coordinate of player
- wait 3 seconds
- if {_y} is rounded y coordinate of player:
- if {_x} is rounded x coordinate of player:
- if {_z} is rounded z coordinate of player:
- teleport player to {Locais::%loop-index%}
- send "{@P} &aVocê foi até &7%loop-index%."
- else:
- send "{@P} &cTeleporte cancelado, você se moveu."
- stop
- else:
- send "{@P} &cTeleporte cancelado, você se moveu."
- stop
- else:
- send "{@P} &cTeleporte cancelado, você se moveu."
- stop
- else:
- send "{@P} {@SP}"
Advertisement
Add Comment
Please, Sign In to add comment