Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- autor:BodzioPlugins
- ###Zakaz wklejania na inne fora###
- command /sektory [<text>]:
- permission message: &cNie mozesz uzywac tej komedy!
- permission: essentials.sektory
- trigger:
- if arg 1 is not set:
- send "&fPoprawne uzycie &o/sektory Wlacz|Wylacz|SetSpawn - Robi oddzielny swiat i robi wszystko za ciebie ;)"
- if arg 1 is "setspawn":
- set {Sectors::Status} to false
- set {Sectors::Spawn::s1} to location of player
- wait 2 tick
- run player command "mv tp s2" as op
- wait 2 tick
- run player command "bukkit:tp 0 62 0" as op
- wait 2 tick
- set {Sectors::Spawn::s2} to location of player
- wait 2 tick
- run player command "mv tp world" as op
- teleport player to {Sectors::Spawn::s1}
- broadcast "&7Gracz: &c%player% &7ustawil spawn sektorow na kordach: &c%{Sectors::Spawn::s1}% &7!"
- set {Sectors::Status} to true
- if arg 1 is "wlacz" or "on":
- set {Sectors::Status} to true
- broadcast "&7Gracz: &c%player% &2wlaczyl &7dzialanie sektorow!"
- if arg 1 is "wylacz" or "off":
- set {Sectors::Status} to false
- broadcast "&7Gracz: &c%player% &4wylaczyl &7dzialanie sektorow!"
- on load:
- set {Sectors::Status} to false
- wait 1 tick
- set {Sectors::Status} to true
- on anymove:
- if {Sectors::Status} is true:
- if world of player is "world":
- if distance between player and {Sectors::Spawn::s1} is bigger than 4530:
- display "&eJestes przy granicy sektora!" on bossbar with 100 percent by 3 seconds for player
- if distance between player and {Sectors::Spawn::s1} is bigger than 4501:
- if {Sectors::Aready::In::PvP::Of::%player%} is not set:
- set {Coordinate::X::Of::%player%} to x-location of player
- set {Coordinate::Z::Of::%player%} to z-location of player
- add 20.0 to {Coordinate::X::Of::%player%}
- add 20.0 to {Coordinate::Z::Of::%player%}
- run player command "mv tp s2" as op
- execute console command "bukkit:tp %player% %{Coordinate::X::Of::%player%}% 62 %{Coordinate::Z::Of::%player%}%"
- loop 98 times:
- send ""
- display "&ePrzeszedles na nastepny sektor!" on bossbar with 100 percent by 5 seconds for player
- else:
- cancel event
- push the player upwards at speed 0.9
- push the player horizontally forward at speed -4
- send "&4CIO !"
- if world of player is "s2":
- if distance between player and {Sectors::Spawn::s2} is smaller than 4470:
- display "&eJestes przy granicy sektora!" on bossbar with 100 percent by 3 seconds for player
- if distance between player and {Sectors::Spawn::s2} is smaller than 4499:
- if {Sectors::Aready::In::PvP::Of::%player%} is not set:
- set {Coordinate::X::Of::%player%} to x-location of player
- set {Coordinate::Z::Of::%player%} to z-location of player
- add -20.0 to {Coordinate::X::Of::%player%}
- add -20.0 to {Coordinate::Z::Of::%player%}
- run player command "mv tp world" as op
- execute console command "bukkit:tp %player% %{Coordinate::X::Of::%player%}% 62 %{Coordinate::Z::Of::%player%}%"
- loop 98 times:
- send ""
- display "&ePrzeszedles na nastepny sektor!" on bossbar with 100 percent by 5 seconds for player
- else:
- cancel event
- push the player upwards at speed 0.9
- push the player horizontally forward at speed -4
- send "&4CIO !"
- command /serwer [<text>]:
- aliases: server, sektor
- trigger:
- if arg 1 is set:
- if arg 1 parsed as player is online:
- if world of arg 1 parsed as player is "world":
- send "&7Ten gracz jest obecnie na sektorze: &cs1"
- if world of arg 1 parsed as player is "s2":
- send "&7Ten gracz jest obecnie na sektorze: &cs2"
- else:
- send "&4Ten gracz jest obecnie offline!"
- else:
- if world of player is "world":
- send "&7Jestes na sektorze: &cs1"
- if world of player is "s2":
- send "&7Jestes na sektorze: &cs2"
- on quit:
- {Sectors::Aready::In::PvP::Of::%player%} is true
- delete {Sectors::Aready::In::PvP::Of::%player%}
- delete {Sectors::Seconds::Of::PvP::Of::%player%}
- on damage:
- victim is player
- attacker is player
- if {Sectors::Aready::In::PvP::Of::%victim%} is true:
- set {Sectors::Seconds::Of::PvP::Of::%victim%} to 20
- stop
- set {Sectors::Aready::In::PvP::Of::%victim%} to true
- set {Sectors::Seconds::Of::PvP::Of::%victim%} to 20
- while {Sectors::Seconds::Of::PvP::Of::%victim%} is more than 1:
- {Sectors::Seconds::Of::PvP::Of::%victim%} is not set:
- stop
- subtract 1 from {Sectors::Seconds::Of::PvP::Of::%victim%}
- wait 1 second
- delete {Sectors::Aready::In::PvP::Of::%victim%}
- delete {Sectors::Seconds::Of::PvP::Of::%victim%}
- on damage:
- victim is player
- attacker is player
- if {Sectors::Aready::In::PvP::Of::%attacker%} is true:
- set {Sectors::Seconds::Of::PvP::Of::%attacker%} to 20
- stop
- set {Sectors::Aready::In::PvP::Of::%attacker%} to true
- set {Sectors::Seconds::Of::PvP::Of::%attacker%} to 20
- while {Sectors::Seconds::Of::PvP::Of::%attacker%} is more than 1:
- {Sectors::Seconds::Of::PvP::Of::%attacker%} is not set:
- stop
- subtract 1 from {Sectors::Seconds::Of::PvP::Of::%attacker%}
- wait 1 second
- delete {Sectors::Aready::In::PvP::Of::%attacker%}
- delete {Sectors::Seconds::Of::PvP::Of::%attacker%}
- on join:
- {Sectors::Aready::In::PvP::Of::%player%} is set:
- delete {Sectors::Aready::In::PvP::Of::%player%}
- {Sectors::Seconds::Of::PvP::Of::%player%} is set:
- delete {Sectors::Seconds::Of::PvP::Of::%player%}
Advertisement
Add Comment
Please, Sign In to add comment