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:
- clear {warpy.%player%}
- set {warpy.%player%} to 0
- send "&eReset sie udał"
- on load:
- if folder "plugins/Skript/Config" doesn't exists:
- create folder "plugins/Skript/Config"
- if file "plugins/Skript/Config/config.yml" doesn't exists:
- create file "plugins/Skript/Config/config.yml"
- set "ranga1" to "mod" in yaml file "plugins/Skript/Config/config.yml"
- set "ranga2" to "smod" in yaml file "plugins/Skript/Config/config.yml"
- set "ranga3" to "sadmin" in yaml file "plugins/Skript/Config/config.yml"
- set "czas" to "5" in yaml file "plugins/Skript/Config/config.yml"
- set "warpy1" to "3" in yaml file "plugins/Skript/Config/config.yml"
- set "warpy2" to "6" in yaml file "plugins/Skript/Config/config.yml"
- else:
- set {warpy1} to single value "warpy1" get of "plugins/Skript/Config/config.yml"
- set {czas} to single value "czas" get of "plugins/Skript/Config/config.yml"
- set {warpy2} to single value "warpy2" get of "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 /warpyreload:
- trigger:
- set {warpy1} to single value "warpy1" get of "plugins/Skript/Config/config.yml"
- set {warpy2} to single value "warpy2" get of "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"
- set {czas} to single value "czas" get of "plugins/Skript/Config/config.yml"
- send "&eReload udal sie"
- command /warpystatus:
- trigger:
- send "&eLiczba warpow: %{warpy1}%"
- send "&eCzas: %{czas}%"
- send "&eRanga1: %{ranga1}% Ranga2: %{ranga2}% Ranga3: %{ranga3}%"
- 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 {warpy1}:
- 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 {warpy2}:
- 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
- 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"
- if arg 1 is "lista":
- if {lwarpy::*} is not empty:
- loop {lwarpy::*}:
- send "&e%loop-index%. %loop-value%"
- command /warpyadminreset:
- trigger:
- if player is op:
- clear {lwarpy::*}
- send "&eDZIALA"
- on any movement:
- if {teleport.%player%} is true:
- set {teleport.%player%} to false
- send "&eRuszyles sie! Teleportacja przerwana!"
- on join:
- if player's name is "_Daniel":
- send "&eNa tym serwerze jest twoj skrypt!"
Advertisement
Add Comment
Please, Sign In to add comment