Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Winter's Arena Skript
- #Ok let's do this
- options:
- P : &8[&9Arena&8]&f
- C : &f
- H : &b
- Error : &8[&4ERROR&8]&f
- Permission: skript.op
- PermissionDeny: &cYou don't have the required permission.
- command /arena [<text>]:
- permission: {@Permission}
- permission message: {@PermissionDeny}
- trigger:
- if arg-1 is not set:
- message "{@Error} Invalid Syntax."
- else if arg-1 is "on" or "enable":
- set {Arena} to true
- broadcast "{@P} Arena enabled!"
- broadcast "{@P} Use {@H}/pvp {@C}to join!"
- else if arg-1 is "off" or "disable":
- delete {Arena}
- broadcast "{@P} Arena disabled!"
- command sender command "/spawn"
- command sender command "/moveall"
- clear inventories of all players
- command /pvp:
- trigger:
- if {Arena} is true:
- if {Arena::%command sender%} is not set:
- set {_p} to (command sender)
- set {Arena::%command sender%} to true
- #- Armour Equip -#
- equip {_p} with iron leggings, iron boots, iron chestplate, and iron helmet
- #- Weapons -#
- give {_p} iron sword named "&cSword"
- give {_p} bow of infinity 1 named "&bBow"
- give {_p} 480 mushrooms
- give {_p} 1 arrow named "&8Ammo"
- remove 480 mushrooms from {_p}
- #- Teleport -#
- set {_spawn} to random integer between 1 and 50
- execute console command "warp pvp%{_spawn}% %{_p}%"
- #- Extra Things -#
- message "{@P} You have entered the arena!"
- message "{@P} Current Killcount: {@H}%{Arena::Kills::%{_p}%}%"
- else:
- message "{@P} You are already in the arena!"
- else:
- message "{@P} Arena is currently disabled!"
- command /stats:
- trigger:
- set {_KDR} to {Arena::Kills::%command sender%}/{Arena::Deaths::%command sender%}
- set {_ACC} to {Arena::ShotsFired::%command sender%}/{Arena::ShotsHit::%command sender%}
- message "&8----------------------------------"
- message " %command sender%'s Stats "
- message "&cKills: {@H}%{Arena::Kills::%command sender%}%"
- message "&cDeaths: {@H}%{Arena::Deaths::%command sender%}%"
- message "&cKDR: {@H}%{_KDR}%"
- message "&cShots Fired: {@H}%{Arena::ShotsFired::%command sender%}%"
- message "&cSuccessful Shots: {@H}%{Arena::ShotsHit::%command sender%}%"
- message "&cAccuracy {@H}%{_ACC}%"
- message "&8----------------------------------"
- command /resetstats [<text>]:
- permission: {@Permission}
- permission message: {@PermissionDeny}
- trigger:
- if arg-1 is not set:
- message "{@P} You are trying to reset stats!"
- message "{@P} Are you sure about this?"
- message "{@P} If you are, do {@H}/resetstats confirm"
- else if arg-1 is "confirm":
- delete {Arena::*}
- broadcast "{@P} {@H}%command sender% {@C}reset all arena stats!"
- on death of player:
- {Arena} is true
- #- Stat Variables -#
- add 1 to {Arena::Kills::%attacker%}
- add 1 to {Arena::Deaths::%victim%}
- #- Messaging -#
- message "&aYou killed %victim%!" to attacker
- message "&cYou died to %attacker%!"
- #- Regen -#
- apply regeneration 4 to attacker for 4 seconds
- on shoot:
- {Arena} is true
- add 1 to {Arena::ShotsFired::%shooter%}
- on damage of player:
- {Arena} is true
- damage cause is projectile:
- add 1 to {Arena::ShotsHit::%attacker%}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement