Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- variables:
- {warpy::%player%} = 0
- on join:
- if {warpy::%player%} is not set:
- set {warpy::%player%} to 0
- command /warpyreset:
- trigger:
- set {warpy::%player%} to 0
- send "&eReset sie udaĆ"
- on load:
- if folder "plugins/Skript/Config" doesn't exists:
- create folder "plugins/Skript/Config"
- create file "plugins/Skript/Config/config.yml"
- wf "Nazwa Skryptu: SuperWarpy" to "plugins/Skript/Config/config.yml"
- wf "Autor: EndDragos" to "plugins/Skript/Config/config.yml"
- wf "Do warpu dodaj dodatkowo 1 aby poprawnie dzialalo!" to "plugins/Skript/Config/config.yml"
- wf "warpy dla moda: 3" to "plugins/Skript/Config/config.yml"
- wf "warpy dla admina: 6" to "plugins/Skript/Config/config.yml"
- wf "Ponizej ustaw czas teleportowania na warp. Domyslnie 5 sekund" to "plugins/Skript/Config/config.yml"
- wf "czas: 5 seconds" to "plugins/Skript/Config/config.yml"
- wf "Ustal jaka ranga bedzie mogla uzywac ustalone wyzej warpy [ilosc warpow]" to "plugins/Skript/Config/config.yml"
- wf "ranga1: mod" to "plugins/Skript/Config/config.yml"
- wf "ranga2: smod" to "plugins/Skript/Config/config.yml"
- wf "ranga3: sadmin" to "plugins/Skript/Config/config.yml"
- set {ilosc.warpow.mod} to "warpy dla moda" get of "plugins/Skript/Config/config.yml"
- set {ilosc.warpow.admin} to "warpy dla admina" get of file "plugins/Skript/Config/config.yml"
- set {czas} to single value "czas" get of "plugins/Skript/Config/config.yml"
- set {ranga1} to single value "ranga1" get of "plugins/Skript/Config/config.yml"
- set {ranga2} to single value "ranga2" get of "plugins/Skript/Config/config.yml"
- set {ranga3} to single value "ranga3" get of "plugins/Skript/Config/config.yml"
- command /warpystatus:
- trigger:
- send "&eLiczba warpow: %{ilosc.warpow.mod}%"
- send "&eCzas: %{czas}%"
- send "&eRanga1: %{ranga1}% Ranga2: %{ranga2}% Ranga3: %{ragna3}%"
- command /warpy [<text>] [<text>] [<text>]:
- trigger:
- if arg 1 is not set:
- send "&eKomendy:"
- send "&e/warpy stworz [nazwa]"
- send "&e/warpy usun [nazwa]"
- send "&e/warpy tp [nazwa]"
- if arg 1 is "stworz":
- if arg 2 is set:
- if player have permissions "{ranga1}" or "{ranga2}":
- if {warpy::%player%} is greater than {ilosc.warpow.mod}:
- set {warp.%arg 2%} to location of player
- add 1 to {warpy::%player%}
- add arg 2 to {lwarpy::*}
- send "&eStworzono warp: %arg 2%"
- set {warps.%arg 2%} to true
- set {owner.%player%.%arg 2%} to true
- if player have permissions "{ranga3}":
- if {warpy::%player%} is greater than {ilosc.warpow.admin}:
- set {warp.%arg 2%} to location of player
- add 1 to {warpy::%player%}
- add arg 2 to {warpy::*}
- send "&eStworzono warp: %arg 2%"
- set {warps.%arg 2%} to true
- set {owner.%player%.%arg 2%} to true
- else:
- send "&eStworzyles za duzo warpow"
- else:
- send "&eNie masz permissions"
- else:
- send "&ePoprawne uzycie: /warpy stworz [nazwa warpa]"
- if arg 1 is "usun":
- if arg 2 is set:
- if player have permissions "mod" or "smod" or "sadmin":
- if {owner.%player%.%arg 2%} is true:
- set {warps.%arg 2%} to false
- set {owner.%player%.%arg 2%} to false
- remove 1 from {warpy::%player%}
- clear {warp.%arg 2%}
- if arg 1 is "tp":
- if arg 2 is set:
- if {warps.%arg 2%} is true:
- set {teleport.%player%} to true
- wait {czas}
- if {teleport.%player%} is true:
- teleport player to {warp.%arg 2%}
- send "&eJestes na warpie %arg 2%}"
- else:
- send "&eNie ma takiego warpa"
- on any movement:
- if {teleport.%player%} is true:
- set {teleport.%player%} to false
- send "&eRuszyles sie! Teleportacja przerwana!"
Advertisement
Add Comment
Please, Sign In to add comment