Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- max_warn: 5
- punishment: execute console command "ban %{_p}% 1h utrudnianie rozgrywki"
- dir: plugins/Annihilation/Worlds
- #on world load:
- #
- # RED
- # set {_x} to 0
- # set {_y} to 0
- # set {_z} to 0
- # if yml value "Teams.Red Team.Nexus.Location" in file "%{@dir}%/%world%" exists:
- # if yml value "Teams.Red Team.Nexus.Location.X" in file "%{@dir}%/%world%" exists:
- # set {_x} to yml value "Teams.Red Team.Nexus.Location.X" from file "%{@dir}%/%world%"
- # if yml value "Teams.Red Team.Nexus.Location.Y" in file "%{@dir}%/%world%" exists:
- # set {_y} to yml value "Teams.Red Team.Nexus.Location.Y" from file "%{@dir}%/%world%"
- # if yml value "Teams.Red Team.Nexus.Location.Z" in file "%{@dir}%/%world%" exists:
- # set {_z} to yml value "Teams.Red Team.Nexus.Location.Z" from file "%{@dir}%/%world%"
- # set {redNexus.location} to location({_x}, {_y}, {_z}, "%world%");
- #
- # GREEEN
- # set {_x} to 0
- # set {_y} to 0
- # set {_z} to 0
- # if yml value "Teams.Red Team.Nexus.Location" in file "%{@dir}%/%world%" exists:
- # if yml value "Teams.Red Team.Nexus.Location.X" in file "%{@dir}%/%world%" exists:
- # set {_x} to yml value "Teams.Red Team.Nexus.Location.X" from file "%{@dir}%/%world%"
- # if yml value "Teams.Red Team.Nexus.Location.Y" in file "%{@dir}%/%world%" exists:
- # set {_y} to yml value "Teams.Red Team.Nexus.Location.Y" from file "%{@dir}%/%world%"
- # if yml value "Teams.Red Team.Nexus.Location.Z" in file "%{@dir}%/%world%" exists:
- # set {_z} to yml value "Teams.Red Team.Nexus.Location.Z" from file "%{@dir}%/%world%"
- # set {redNexus.location} to location({_x}, {_y}, {_z}, "%world%");
- #
- # BLUE
- # set {_x} to 0
- # set {_y} to 0
- # set {_z} to 0
- # if yml value "Teams.Blue Team.Nexus.Location" in file "%{@dir}%/%world%" exists:
- # if yml value "Teams.Blue Team.Nexus.Location.X" in file "%{@dir}%/%world%" exists:
- # set {_x} to yml value "Teams.Blue Team.Nexus.Location.X" from file "%{@dir}%/%world%"
- # if yml value "Teams.Blue Team.Nexus.Location.Y" in file "%{@dir}%/%world%" exists:
- # set {_y} to yml value "Teams.Blue Team.Nexus.Location.Y" from file "%{@dir}%/%world%"
- # if yml value "Teams.Blue Team.Nexus.Location.Z" in file "%{@dir}%/%world%" exists:
- # set {_z} to yml value "Teams.Blue Team.Nexus.Location.Z" from file "%{@dir}%/%world%"
- # set {blueNexus.location} to location({_x}, {_y}, {_z}, "%world%");
- #
- # YELLOW
- # set {_x} to 0
- # set {_y} to 0
- # set {_z} to 0
- # if yml value "Teams.Yellow Team.Nexus.Location" in file "%{@dir}%/%world%" exists:
- # if yml value "Teams.Yellow Team.Nexus.Location.X" in file "%{@dir}%/%world%" exists:
- # set {_x} to yml value "Teams.Yellow Team.Nexus.Location.X" from file "%{@dir}%/%world%"
- # if yml value "Teams.Yellow Team.Nexus.Location.Y" in file "%{@dir}%/%world%" exists:
- # set {_y} to yml value "Teams.Yellow Team.Nexus.Location.Y" from file "%{@dir}%/%world%"
- # if yml value "Teams.Yellow Team.Nexus.Location.Z" in file "%{@dir}%/%world%" exists:
- # set {_z} to yml value "Teams.Yellow Team.Nexus.Location.Z" from file "%{@dir}%/%world%"
- # set {yellowNexus.location} to location({_x}, {_y}, {_z}, "%world%");
- function blockspecrator_warn(p: player):
- set {_m} to metadata value "spectator_warn" of {_p}
- add 1 to {_m}
- if {_m} >= {@max_warn}:
- {@punishment}
- else:
- send "&8[&4WD&8] &eNie utrudniaj graczom rozgrywki na spektatorze! &cOstrzezenie %{_m}%/{@max_warn}" to {_p}
- set metadata value "spectator_warn" of {_p} to {_m}
- # PIROTECHNIK
- #on rightclick with fire_charge:
- # if name of player's tool is "&4Ognista Burza &agotowe":
- # loop all players in radius 5 around player:
- # if loop-player's gamemode is spectator:
- # blockspecrator_warn(loop-player)
- # SKORPION
- #on rightclick with nether star:
- on shoot:
- if name of shooter's tool is "&eMagiczny Harpun":
- set metadata value "skorpion.rzuca" of shooter to true
- wait 5 seconds
- clear metadata value "skorpion.rzuca" of shooter
- on teleport:
- if player's gamemode is spectator:
- loop all players in radius 1 of player:
- if metadata value "skorpion.rzuca" of loop-player is set:
- blockspecrator_warn(player)
- on rightclick on player:
- if gamemode of clicked player is spectator:
- # ELEKTRO
- if player's tool is slime named "&eParalizator &agotowe":
- blockspecrator_warn(clicked player)
- # OBCY
- else if player's tool is ender pearl named "&eTeleport":
- blockspecrator_warn(clicked player)
Advertisement
Add Comment
Please, Sign In to add comment