Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- P: &8[&cCarbonara&8]&6
- command /pvparena <text>:
- permission: sk.op
- trigger:
- if arg-1 is not set:
- message "&4Error!"
- else if arg-1 is "on":
- set {arena} to true
- broadcast "{@P} PvP arena now enabled!"
- broadcast "{@P} Use /arena to join!"
- else if arg-1 is "off":
- delete {arena}
- broadcast "{@P} PvP arena now disabled!"
- loop all players:
- command "/spawn %loop-player%"
- command "/ci *"
- command /arena:
- aliases: /a
- trigger:
- if {arena} is true:
- {arena::%command sender%} is not set:
- set {_player} to (command sender)
- set {arena::%command sender%} to true
- equip {_player} with iron helmet of unbreaking 10
- equip {_player} with iron chestplate of unbreaking 10
- equip {_player} with iron leggings of unbreaking 10
- equip {_player} with iron boots of unbreaking 10
- give {_player} iron sword of unbreaking 10
- give {_player} fishing rod of unbreaking 10
- give {_player} bow of infinity 1 and unbreaking 10
- give {_player} 1601 333
- give {_player} 1 arrow
- remove 1601 333 from {_player}
- set {_warp} to a random integer between 1 and 20
- execute console command "/warp arena%{_warp}% %{_player}%"
- message "&6You have entered the arena!"
- message "&4NO &6teaming!"
- else:
- message "{@P} You are already in the arena!"
- else:
- message "{@P} Arena is disabled!"
- command /stats:
- trigger:
- set {_KDR} to {arena::Kills::%command sender%}/{arena::Deaths::%command sender%}
- message " &3%command sender%'s Stats "
- message "&6Kills: &c%{arena::Kills::%command sender%}%"
- message "&6Deaths: &c%{arena::Deaths::%command sender%}%"
- message "&6KDR: &c%{_KDR}%"
- command /resetstats:
- permission: sk.op
- trigger:
- delete {arena::*}
- broadcast "&6All arena stats deleted by &3%command sender%"
- on death of player:
- {arena} is true
- message "&6You just killed &3%victim%!" to attacker
- message "&6You just died to &3%attacker%!"
- heal attacker by 4.0 hearts
- add 1 to {arena::Kills::%attacker%}
- add 1 to {arena::Deaths::%victim%}
- on connect:
- {arena} is true
- message "&6/arena &cto join the arena!"
- stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement