Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- variables:
- {arenaon} = false
- {arena} = 1
- command /enablearena:
- permission: skript.op
- trigger:
- if {arenaon} is true:
- message "The arena is already on!"
- stop trigger
- set {arenaon} to true
- execute console command "y Arena Enabled"
- command /disablearena:
- permission: skript.op
- trigger:
- if {arenaon} is false:
- message "The arena is already off!"
- stop trigger
- set {arenaon} to false
- execute console command "y Arena Disabled"
- on login:
- {arenaon} is true
- execute console command "warp %player% spawn"
- execute console command "ci %player%"
- set {_inarena} to false
- on death of player:
- {arenaon} is true
- {_inarena} is true
- set {_inarena} to false
- command /arena:
- aliases: /p, /pvp, /pjoin, /a
- trigger:
- if {arenaon} is true:
- if {_inarena} is false:
- set {_inarena} to true
- execute console command "heal %player%"
- equip player with all iron armor
- give an diamond sword to the player
- give a bow to the player
- give 64 arrows to the player
- give 64 arrows to the player
- execute console command "/warp pvp%random integer between 1 and 25% %player%"
- stop trigger
- message "You are already in the arena!"
- stop trigger
- message "The arena is currently disabled"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement