Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #====================================#
- # Warzone Note #
- #====================================#
- #Please only reconfigure the messages, if you modify the code
- #and it doesnt work, then please redowload the skript again
- #from Spigotmc.org
- #Configuration comming soon!
- #
- #Thx Cardos
- variables:
- {pvp.%player%.killstreak} = 0
- {pvp.%player%.kills} = 0
- {pvp.%player%.deaths} = 0
- options:
- prefix: &e&lWarzone &8>&f
- #====================================#
- # Player Messages #
- #====================================#
- helpplayer: &e&lPlayer Commands
- nopermission: &fYou dont have permission.
- helpforhelp: &ffor help type &b/warzone help
- warzonejoin: &e/Warzone &8- &fJoin
- warzoneleave: &e/Warzone &8- &fLeave
- warzonehelpstats: &e/Warzone &8- &fStats
- warzonestats: &e&lWarzone Stats
- warzoneleavecommand: &fYou have left the arena!
- warzonestatskills: &fKills&8: &b%{pvp.%player%.kills}%
- warzonestatsdeaths: &fDeaths&8: &b%{pvp.%player%.deaths}%
- header: &8&m-----------------------------
- footer: &8&m-----------------------------
- #====================================#
- # Admin Messages #
- #====================================#
- helpadmin: &e&lAdmin commands
- contactadmin: &fContact an Administrator because the arena is not setup
- adminhelp: For Admin Help Type &b/warzoneadmin help
- warzoneasetspawn: &e/warzoneadmin &8- &fsetspawn
- warzoneasetleave: &e/warzoneadmin &8- &fsetleave
- warzoneaspawnset: &fSpawn set
- warzoneaspawnleave: &fLeave set
- #====================================#
- # Scoreboard Messages #
- #====================================#
- warzonescoreboardtitle: &e&lWarzone
- warzonescoreboardkills: &fKills&8: &b%{kill counter.%player%.kills_total}%
- warzonescoreboarddeaths: &fDeaths&8: &b%{death counter.%player%.kills_total}%
- warzonescoreboardfooter: &8&m------------
- #============================================================================================================#
- # Please Do Not modify the skript bellow this section, because changes made may not work #
- #============================================================================================================#
- command /warzoneadmin <text>:
- description: Sets the spawn point
- permission: warzone.Player
- trigger:
- if arg 1 is "help":
- message "{@header}"
- message "{@helpadmin}"
- message "{@header}"
- message "{@warzoneasetspawn}"
- message "{@warzoneasetleave}"
- message "{@header}"
- if arg 1 is "setspawn":
- if player has permission "warzone.setspawn":
- set variable {pvp.warp} to location of player
- message "{@prefix} {@warzoneaspawnset}"
- stop
- else:
- message "{@prefix} {@nopermission}"
- stop
- if arg 1 is "setleave":
- player has permission "warzone.setleave":
- message "{@prefix} {@warzoneaspawnleave}"
- set {pvp.leave} to location of player
- if {pvp.warp} is not set:
- message "{@prefix} {@contactadmin}"
- if arg 1 is not "SetLeave" or "setwarp" or "Help":
- message "{@prefix} {@adminhelp}"
- command /Warzone <text>:
- description: sets the spawn point
- permission: warzone.Player
- trigger:
- if arg 1 is "help":
- message "{@header}"
- message "{@helpplayer}"
- message "{@header}"
- message "{@warzonejoin}"
- message "{@warzoneleave}"
- message "{@warzonehelpstats}"
- message "{@footer}"
- if arg 1 is "Stats":
- message "{@header}"
- message "{@warzonestats}"
- message "{@footer}"
- message "{@warzonestatskills}"
- message "{@warzonestatsdeaths}"
- message "{@footer}"
- if argument 1 is "Join":
- if {warzone.players::%player%} is true:
- send "{@prefix} &fYou are already in the game"
- stop
- set {warzone.players::%player%} to true
- send "{@prefix}&f Teleporting To Warzone In 5..."
- wait 1 second
- send "{@prefix}&f Teleporting To Warzone In 4..."
- wait 1 second
- send "{@prefix}&f Teleporting To Warzone In 3..."
- wait 1 second
- send "{@prefix}&f Teleporting To Warzone In 2..."
- wait 1 second
- send "{@prefix}&f Teleporting To Warzone In 1..."
- wait 1 second
- broadcast "{@prefix} &b%player%&f joined The Warzone"
- teleport player to {pvp.warp}
- open chest with 1 rows named "&8&lSelect Kit" to player
- format slot 0 of player with diamond sword named "&8> &e&lKnight" to close then run [make player execute command "warzonekit Knight"]
- format slot 1 of player with bow named "&8> &e&lSniper" to close then run [make player execute command "Warzonekit Sniper"]
- format slot 2 of player with blaze powder named "&8> &e&lSummoner" to close then run [make player execute command "Warzonekit summoner"]
- format slot 3 of player with iron axe named "&8> &e&lThor" to close then run [make player execute command "Warzonekit Thor"]
- format slot 4 of player with ender pearl named "&8> &e&lSurvivalist" to close then run [make player execute command "Warzonekit Survivalist"]
- format slot 5 of player with fire charge named "&8> &e&lDestruction" to close then run [make player execute command "Warzonekit Destruction"]
- format slot 8 of player with redstone named "&8> &e&lClose Menu" to close then run [make player execute command "Warzone leave"]
- make player execute command "/warzonesidebar on"
- else if arg 1 is "leave":
- if {warzone.players::%player%} is not set:
- send "{@prefix} &fYou are not in the game"
- stop
- delete {warzone.players::%player%}
- size of {warzone.players::*} is 0
- broadcast "{@prefix} &fWarzone ended"
- loop {warzone.rollback::*}:
- if loop-value is a location:
- set {_loc} to loop-value
- else:
- set {_block} to loop-value
- set block at {_loc} to loop-value
- delete {warzone.rollback::*}
- clear the player's inventory
- teleport player to {pvp.leave}
- broadcast "{@prefix} &b%player%&f Left The Warzone"
- if arg 1 is not "Leave" or "Stats" or "Join" or "Help":
- message "{@prefix} {@helpforhelp}"
- on damage:
- apply swiftness 2 to the attacker for 3 seconds
- on death of player:
- broadcast "&b%attacker% &fKilled &b%victim%"
- on death:
- clear the player's inventory
- attacker is a player
- add 1 to {kill counter.%attacker%.kills_total}
- on death:
- clear the player's inventory
- victim is a player
- add 1 to {death counter.%victim%.kills_total}
- on rightclick holding a iron sword:
- heal the player by 2 hearts
- wait 10 seconds
- message "{@prefix} &fYou can Only Do This Every &b10 Seconds&7"
- on command "warzone join":
- player's gamemode is survival
- on death of player:
- make player execute command "/warzonesiderbar on"
- clear drops
- on death of player:
- set {pvp.%victim%.killstreak} to 0
- add 1 to {pvp.%victim%.deaths}
- set death message to ""
- clear drops
- on rightclick:
- player is holding a stick
- make the player shoot a arrow at speed 3
- wait 10 seconds
- message "{@prefix} &fYou can Only Do This Every &b10 Seconds&7"
- on rightclick:
- player is holding a blaze rod
- make the player shoot a fireball at speed 2
- wait 10 seconds
- message "{@prefix} &fYou can Only Do This Every &b10 Seconds&7"
- on rightclick holding a mushroom stew:
- heal the player
- on rightclick holding a diamond sword:
- push the player in the direction of the player at speed -1
- wait 10 seconds
- message "{@prefix} &fYou can Only Do This Every &b10 Seconds&7"
- on rightclick holding a iron axe:
- strike lightning 10 infront of the player
- wait 10 seconds
- message "{@prefix} &fYou can Only Do This Every &b10 Seconds&7"
- #====================================#
- # Warzone kits #
- #====================================#
- Command /warzonekit <text>:
- usage: &e&lWarzonekit &8> &fType &b/warzonekit Help &ffor help
- trigger:
- if arg 1 is "Knight":
- clear the player's inventory
- message "&8&m------------------------------------"
- message " &e&lKnight Kit&8:"
- message " &7The Most Fierce of Them All"
- message ""
- message " &e&lAbilities&8:"
- message "&8- &fStrafe Back! &8(&7RightClick With Sword&8)"
- message "&8&m------------------------------------"
- equip player with Leather Helmet of protection 2 and unbreaking 100
- equip player with Iron ChestPlate of protection 1
- equip player with Iron Leggings of protection 1
- equip player with Leather Boots of protection 2 and unbreaking 100
- dye player's helmet red
- dye player's boots red
- give a diamond sword of sharpness 2 to the player
- give 30 Soup to the player
- if arg 1 is "Sniper":
- clear the player's inventory
- message "&8&m------------------------------------"
- message " &e&lSniper Kit&8:"
- message " &7Be a sharp shooter! Win with ease!"
- message ""
- message " &e&lAbilities&8:"
- message "&8- &fComing Soon"
- message "&8&m------------------------------------"
- equip player with Chain Helmet of protection 2
- equip player with Iron ChestPlate of protection 2 and blast protection 2
- equip player with Chain Leggings of protection 2
- equip player with Leather Boots of protection 2 and unbreaking 100
- dye player's boots yellow
- give a iron sword of sharpness 1 to the player
- give a bow of punch 1 and power 3 and infinity 3 to the player
- give 1 arrow to the player
- give 29 Soup to the player
- if arg 1 is "Summoner":
- clear the player's inventory
- message "&8&m------------------------------------"
- message " &e&lSummoner Kit&8:"
- message " &7A bit fiery in my perspective"
- message ""
- message " &e&lAbilities&8:"
- message "&8- &fArrow Rapidfire &8(&7RightClick With Stick&8)"
- message "&8&m------------------------------------"
- equip player with Leather Helmet of protection 5 and unbreaking 100
- equip player with Leather ChestPlate of protection 5 and unbreaking 100
- equip player with Leather Leggings of protection 5 and unbreaking 100
- equip player with Leather Boots of protection 5 and unbreaking 100
- dye player's helmet white
- dye player's chestplate white
- dye player's leggings white
- dye player's boots blue
- give a stick of fire aspect 4 and sharpness 5 and knockback 1 to the player
- give 29 Soup to the player
- apply swiftness 2 to the player
- if arg 1 is "Thor":
- clear the player's inventory
- message "&8&m------------------------------------"
- message " &e&lThor Kit&8:"
- message " &7The Classic old Thor Kit"
- message ""
- message " &e&lAbilities&8:"
- message "&8- &fLightning Bolt &8(&7RightClick With Axe&8)"
- message "&8&m------------------------------------"
- equip player with Leather Helmet of protection 5 and unbreaking 100
- equip player with iron ChestPlate of protection 1 and
- equip player with Leather Leggings of protection 5 and unbreaking 100
- equip player with Leather Boots of protection 5 and unbreaking 100
- dye player's helmet orange
- dye player's leggings white
- dye player's boots blue
- give a iron axe of fire aspect 1 and sharpness 5 and knockback 1 to the player
- give 29 Soup to the player
- apply swiftness 2 to the player
- if arg 1 is "Survivalist":
- clear the player's inventory
- message "&8&m------------------------------------"
- message " &e&lSurvivalist Kit&8:"
- message " &7The Best Surviving Kit"
- message ""
- message " &e&lAbilities&8:"
- message "&8- &fHeal Timer &8(&7RightClick With Sword&8)"
- message "&8&m------------------------------------"
- equip player with Leather Helmet of protection 5 and unbreaking 100
- equip player with Leather ChestPlate of protection 5 and unbreaking 100
- equip player with Leather Leggings of protection 5 and unbreaking 100
- equip player with Leather Boots of protection 5 and unbreaking 100
- dye player's chestplate red
- dye player's helmet white
- dye player's leggings white
- dye player's boots white
- give a iron Sword of sharpness 5 and knockback 1 to the player
- give 29 Soup to the player
- apply swiftness 2 to the player
- if arg 1 is "Destruction":
- clear the player's inventory
- message "&8&m------------------------------------"
- message " &e&lDesctruction Kit&8:"
- message " &7Destroy Them all With Your Wand"
- message ""
- message " &e&lAbilities&8:"
- message "&8- &fFireball &8(&7RightClick With BlazeRod&8)"
- message "&8&m------------------------------------"
- equip player with Leather Helmet of protection 5 and unbreaking 100
- equip player with Leather ChestPlate of protection 5 and unbreaking 100 and fire protection 5
- equip player with Leather Leggings of protection 5 and unbreaking 100
- equip player with Leather Boots of protection 5 and unbreaking 100
- dye player's chestplate red
- dye player's helmet black
- dye player's leggings red
- dye player's boots red
- give a blaze rod of sharpness 7 and fire aspect 2 to the player
- give 29 Soup to the player
- apply swiftness 2 to the player
- #====================================#
- # Warzone Scoreboard #
- #====================================#
- command /warzonesidebar <text>:
- trigger:
- if arg is "on":
- display scoreboard named "{@warzonescoreboardtitle}" to player
- make score "&e" in board of player to 4
- make score "{@warzonescoreboardkills}" in board of player to 3
- make score "{@warzonescoreboarddeaths}" in board of player to 2
- make score "{@warzonescoreboardfooter}" in board of player to 1
- move display of player to sidebar
- if arg is "off":
- display scoreboard named "This will turn off" to player
Advertisement
Add Comment
Please, Sign In to add comment