Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- P: &8[&9Arena&8]
- C: &f
- H: &e
- command /arena [<text=join>]:
- aliases: /a
- trigger:
- if arg-1 is "enable" or "on":
- if command sender does not have permission "arena.enable":
- message "{@P}{@C} No permission."
- stop
- set {arena} to true
- broadcast "{@P}{@C} Arena{@H} enabled{@C}!"
- else if arg-1 is "disable" or "off":
- if command sender does not have permission "arena.disable":
- message "{@P}{@C} No permission."
- stop
- set {arena} to false
- broadcast "{@P}{@C} Arena{@H} disabled{@C}!"
- loop all players:
- heal the loop-player
- clear inventory of loop-player
- command "/spawn %loop-player%"
- else if arg-1 is "join":
- if {arena} is false:
- message "{@P}{@C} Arena is disabled!"
- stop
- else if {arena::%player%} is true:
- message "{@P}{@C} You are already in the arena!"
- stop
- set {arena::%player%} 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 golden apple
- give player arrow
- message "{@P}{@C} You have entered the arena!"
- message "{@P}{@C} Teaming is not allowed."
- on death of player:
- {arena} is true
- clear drops
- message "{@P}{@C} You killed{@H} %victim%{@C}!" to attacker
- message "{@P}{@C} You died to{@H} %attacker%{@C}!" to victim
- drop golden apple
- delete {arena::%victim%}
- on hunger meter change:
- {arena} is true
- cancel the event
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement