#-------------------------------------------------------------------------------------------------------------------# # # # ProximKitPvP # # by: @WaxtzCraft # # # # # # Version: 2.3 Beta # # # # INSTALLATION: # # ~ ProximKitPvP.sk - Put this in plugins/Skript/scripts ~ # # ~ Skript.jar - Put this in plugins/ ~ # # ~ SkQuery.jar - Put this in plugins/ ~ # # ~ SharpSK.jar - Put this in plugins/ ~ # # # # # #-------------------------------------------------------------------------------------------------------------------# #--------->>>Don't touch this script's down. If you wanna edit some string, you edit on your own risk!!!<<<---------# #---------->>>¡¡¡NO EDIT HERE!!!<<<----------# on load: if {kitpvp:autojoin} is not set: set {kitpvp:autojoin} to false send "&e&l(ProximKitPvP) &aSkript enable &7- &5WaxtzCraft" to console loop all players: set {kitpvp:join:%loop-player%} to false if text from "http://pastebin.com/raw/wDyiBxvx" is not "2.3 Beta": wait 1.5 seconds send "&e&l(ProximKitPvP) &aNew version available! &7- &5WaxtzCraft" to console on unload: send "&e&l(ProximKitPvP) &aSkript disable &7- &5WaxtzCraft" to console on join: set {kitpvp:join:%player%} to false if {kitpvp:autojoin} is true: wait 1 seconds execute player command "/kitpvp join" set {proximkitpvp.config::join.msg} to value "joinmessage" get of "plugins/ProximKitPvP/messages.yml" replace all "" with "%player%" in {proximkitpvp.config::join.msg} broadcast "%{proximkitpvp.config::prefix}% %{proximkitpvp.config::join.msg}%" on world change: set {proximkitpvp.world} to {proximkitpvp.config::world} if player is in "%{proximkitpvp.world}%": loop all players in player's world: set {proximkitpvp.config::join.msg} to value "joinmessage" get of "plugins/ProximKitPvP/messages.yml" replace all "" with "%player%" in {proximkitpvp.config::join.msg} send "%{proximkitpvp.config::prefix}% %{proximkitpvp.config::join.msg}%" to loop-player on rightclick with chest: player is holding a chest named "&b&lKits &7(Right-Click)": cancel event execute player command "/kitpvp kits" on rightclick with emerald: player is holding a emerald named "&b&lShop &7(Right-Click)": cancel event execute player command "/kitpvp shop" on rightclick with nether star: player is holding a nether star named "&b&lTop kills &7(Right-Click)": cancel event execute player command "/kitpvp top" on rightclick with paper: player is holding a paper named "&b&lStats &7(Right-Click)": cancel event execute player command "/kitpvp stats" on rightclick with diamond: player is holding a diamond named "&b&lAchievements &7(Right-Click)": cancel event execute player command "/kitpvp achievements" command /kitpvp [] [] []: aliases: kp trigger: if arg 1 is "join": if {kitpvp:spawn} is set: if {kitpvp:leave} is set: if {kitpvp:join:%player%} is false: if arg 2 is not set: make player execute command "/removeboard" invoke "save-inv" from player set {kitpvp:join:%player%} to true send "%{proximkitpvp.config::prefix}% %{proximkitpvp.config::entered}%" teleport player to {kitpvp:spawn} set {killstreaks::%player%} to 0 clear player's inventory set player's health to 20 set player's hunger to 20 set player's gamemode to survival remove invisibility and speed and haste and regeneration and strength from player wait 0.5 seconds give 1 chest named "&b&lKits &7(Right-Click)" to player give 1 nether star named "&b&lTop kills &7(Right-Click)" to player give 1 paper named "&b&lStats &7(Right-Click)" to player give 1 diamond named "&b&lAchievements &7(Right-Click)" to player if {STATS::%player%} is not set: set {kitpvpkills::%player%} to 0 set {kitpvpdeaths::%player%} to 0 set {STATS::%player%} to 5 set {kitpvp::coins::%player%} to 0 else: send "%{proximkitpvp.config::unknowncommand}%" else: send "%{proximkitpvp.config::prefix}% &cThe lobby is not set!" else: send "%{proximkitpvp.config::prefix}% &cThe spawn is not set!" else if arg 1 is "setspawn": if player has permission "kitpvp.admin": if arg 2 is not set: set {kitpvp:spawn} to location of player send "%{proximkitpvp.config::prefix}% %{proximkitpvp.config::set_spawn}%" else: send "%{proximkitpvp.config::unknowncommand}%" else: send "%{proximkitpvp.config::nopermission}%" else if arg 1 is "leave": if {kitpvp:leave} is set: if {kitpvp:join:%player%} is true: if arg 2 is not set: set {kitpvp:join:%player%} to false send "%{proximkitpvp.config::prefix}% %{proximkitpvp.config::leave}%" teleport player to {kitpvp:leave} set {killstreaks::%player%} to 0 make player execute command "/removeboard" invoke "give-inv" from player else: send "%{proximkitpvp.config::unknowncommand}%" else: send "%{proximkitpvp.config::prefix}% %{proximkitpvp.config::youcannot}%" else: send "%{proximkitpvp.config::prefix}% &cThe lobby is not set" else if arg 1 is "setlobby": if player has permission "kitpvp.admin": if arg 2 is not set: set {kitpvp:leave} to location of player send "%{proximkitpvp.config::prefix}% %{proximkitpvp.config::set_leave}%" else: send "%{proximkitpvp.config::unknowncommand}%" else: send "%{proximkitpvp.config::nopermission}%" else if arg 1 is "stats": if {kitpvp:join:%player%} is true: if arg 2 is set: if arg 3 is not set: if arg 2 is set: open chest with 3 rows named "Stats &a%arg 2%" to player wait 0.3 seconds play raw sound "random.pop" at player with pitch 1 volume 0.1 format slot 11 of player with diamond sword named "&aKills:&7 %{kitpvpkills::%arg 2%}%" to close wait 0.3 seconds play raw sound "random.pop" at player with pitch 1 volume 0.1 format slot 13 of player with gold nugget named "&aCoins:&7 %{kitpvp::coins::%arg 2%}%" to close wait 0.3 seconds play raw sound "random.pop" at player with pitch 1 volume 0.1 format slot 15 of player with bone named "&aDeaths:&7 %{kitpvpdeaths::%arg 2%}%" to close else: send "%{proximkitpvp.config::unknownplayer}%" else: send "%{proximkitpvp.config::unknowncommand}%" else: open chest with 3 rows named "Stats &a%player%" to player wait 0.3 seconds play raw sound "random.pop" at player with pitch 1 volume 0.1 format slot 11 of player with diamond sword named "&aKills:&7 %{kitpvpkills::%player%}%" to close wait 0.3 seconds play raw sound "random.pop" at player with pitch 1 volume 0.1 format slot 13 of player with gold nugget named "&aCoins:&7 %{kitpvp::coins::%player%}%" to close wait 0.3 seconds play raw sound "random.pop" at player with pitch 1 volume 0.1 format slot 15 of player with bone named "&aDeaths:&7 %{kitpvpdeaths::%player%}%" to close else: send "%{proximkitpvp.config::prefix}% %{proximkitpvp.config::youcannot}%" else if arg 1 is "top": if {kitpvp:join:%player%} is true: set {_1st.point} to 0 set {_2nd.point} to 0 set {_3rd.point} to 0 set {_4th.point} to 0 set {_5th.point} to 0 loop {kitpvpkills::*}: if loop-value is more than {_1st.point}: set {_5th} to {_4tlmg} set {_5th.point} to {_4th.point} set {_4tlmg} to {_3rd} set {_4th.point} to {_3rd.point} set {_3rd} to {_2nd} set {_3rd.point} to {_2nd.point} set {_2nd} to {_1st} set {_2nd.point} to {_1st.point} set {_1st} to loop-index set {_1st.point} to loop-value else if loop-value is more than {_2nd.point}: set {_5th} to {_4tlmg} set {_5th.point} to {_4th.point} set {_4tlmg} to {_3rd} set {_4th.point} to {_3rd.point} set {_3rd} to {_2nd} set {_3rd.point} to {_2nd.point} set {_2nd} to loop-index set {_2nd.point} to loop-value else if loop-value is more than {_3rd.point}: set {_5th} to {_4tlmg} set {_5th.point} to {_4th.point} set {_4tlmg} to {_3rd} set {_4th.point} to {_3rd.point} set {_3rd} to loop-index set {_3rd.point} to loop-value else if loop-value is more than {_4th.point}: set {_5th} to {_4tlmg} set {_5th.point} to {_4th.point} set {_4tlmg} to loop-index set {_4th.point} to loop-value else if loop-value is more than {_5th.point}: set {_5th} to loop-index set {_5th.point} to loop-value open chest with 3 rows named "Top kills" to player wait 0.3 seconds play raw sound "random.pop" at player with pitch 1 volume 0.1 format slot 10 of player with emerald named "&aTop 1" with lore "&e%{_1st}%:&7 %{_1st.point}%" to close wait 0.3 seconds play raw sound "random.pop" at player with pitch 1 volume 0.1 format slot 12 of player with diamond named "&aTop 2" with lore "&e%{_2nd}%:&7 %{_2nd.point}% " to close wait 0.3 seconds play raw sound "random.pop" at player with pitch 1 volume 0.1 format slot 14 of player with gold ingot named "&aTop 3" with lore "&e%{_3rd}%:&7 %{_3rd.point}%" to close wait 0.3 seconds play raw sound "random.pop" at player with pitch 1 volume 0.1 format slot 16 of player with iron ingot named "&aTop 4" with lore "&e%{_4tlmg}%:&7 %{_4th.point}%" to close else: send "%{proximkitpvp.config::prefix}% %{proximkitpvp.config::youcannot}%" else if arg 1 is "addcoins": if player has permission "kitpvp.admin": if arg 2 is set: if arg 3 is set: add arg 3 to {kitpvp::coins::%arg-2%} send "%{proximkitpvp.config::prefix}% &7added &9%arg 3% &7coins for &a%arg 2%" else: send "%{proximkitpvp.config::prefix}% &7Use: &a/kitpvp addcoins [player] [amount]" send "%{proximkitpvp.config::unknownplayer}%" else: send "%{proximkitpvp.config::prefix}% &7Use: &a/kitpvp addcoins [player] [amount]" send "%{proximkitpvp.config::prefix}% &cPlease add an amount!" else: send "%{proximkitpvp.config::nopermission}%" else if arg 1 is "coins": if {kitpvp:join:%player%} is true: send "%{proximkitpvp.config::prefix}% &7You have &9&l%{kitpvp::coins::%player%}% &7coins" else: send "%{proximkitpvp.config::prefix}% %{proximkitpvp.config::youcannot}%" else if arg 1 is "autojoin": if player has permission "kitpvp.admin": if {kitpvp:autojoin} is true: set {kitpvp:autojoin} to false send "%{proximkitpvp.config::prefix}% &7Autojoin disabled." stop if {kitpvp:autojoin} is false: set {kitpvp:autojoin} to true send "%{proximkitpvp.config::prefix}% &7Autojoin enabled." else: send "%{proximkitpvp.config::nopermission}%" else if arg 1 is "reload": if player has permission "kitpvp.admin": send "%{proximkitpvp.config::prefix}% &aReloading..." execute console command "/sk reload ProximKitPvP" wait 0.3 seconds send "%{proximkitpvp.config::prefix}% &aReload complete." else: send "%{proximkitpvp.config::nopermission}%" else if arg 1 is "achievements": if {kitpvp:join:%player%} is true: open chest with 3 rows named "Achievements" to player wait 0.3 seconds play raw sound "random.pop" at player with pitch 1 volume 0.1 format slot 0 of player with gray dye named "&c&lFIST KILL" with lore "&7¡Fist kill of kitpvp!||&7||&e&lOBJETIVE: &b1 KILL||&e&lSTATE: &c&lINCOMPLETE" to close wait 0.3 seconds play raw sound "random.pop" at player with pitch 1 volume 0.1 format slot 1 of player with gray dye named "&c&lGETTING BETTER" with lore "&7¡20 kills!||&7||&e&lOBJETIVE: &b20 KILLS||&e&lSTATE: &c&lINCOMPLETE" to close wait 0.3 seconds play raw sound "random.pop" at player with pitch 1 volume 0.1 format slot 2 of player with gray dye named "&c&lCOACH" with lore "&7¡Amazing, 50 kills!||&7||&e&lOBJETIVE: &b50 KILLS||&e&lSTATE: &c&lINCOMPLETE" to close wait 0.3 seconds play raw sound "random.pop" at player with pitch 1 volume 0.1 format slot 3 of player with gray dye named "&c&lIRON GOLEM" with lore "&7¡Wuowuwuowuow 100 kills, best player!||&7||&e&lOBJETIVE: &b100 KILLS||&e&lSTATE: &c&lINCOMPLETE" to close wait 0.3 seconds play raw sound "random.pop" at player with pitch 1 volume 0.1 format slot 4 of player with gray dye named "&c&lMODE GOD" with lore "&7¡¿What? 1000 kills!||&7¡Congratulations!||&7||&e&lOBJETIVE: &b1000 KILLS||&e&lSTATE: &c&lINCOMPLETE" to close if {kitpvpkills::%player%} is greater than 0: wait 0.3 seconds play raw sound "note.pling" at player with pitch 1 volume 0.1 format slot 0 of player with light green dye named "&a&lFIST KILL" with lore "&7¡Fist kill of kitpvp!||&7||&e&lOBJETIVE: &b1 KILL||&e&lSTATE: &a&lCOMPLETE" to close if {kitpvpkills::%player%} is greater than 19: wait 0.3 seconds play raw sound "note.pling" at player with pitch 1 volume 0.1 format slot 1 of player with light green dye named "&a&lGETTING BETTER" with lore "&7¡20 kills!||&7||&e&lOBJETIVE: &b20 KILLS||&e&lSTATE: &a&lCOMPLETE" to close if {kitpvpkills::%player%} is greater than 49: wait 0.3 seconds play raw sound "note.pling" at player with pitch 1 volume 0.1 format slot 2 of player with light green dye named "&a&lCOACH" with lore "&7¡Amazing, 50 kills!||&7||&e&lOBJETIVE: &b50 KILLS||&e&lSTATE: &a&lCOMPLETE" to close if {kitpvpkills::%player%} is greater than 99: wait 0.3 seconds play raw sound "note.pling" at player with pitch 1 volume 0.1 format slot 3 of player with light green dye named "&a&lIRON GOLEM" with lore "&7¡Wuowuwuowuow 100 kills, best player!||&7||&e&lOBJETIVE: &b100 KILLS||&e&lSTATE: &a&lCOMPLETE" to close if {kitpvpkills::%player%} is greater than 999: wait 0.3 seconds play raw sound "note.pling" at player with pitch 1 volume 0.1 format slot 4 of player with light green dye named "&a&lMODE GOD" with lore "&7¡¿What? 1000 kills!||&7¡Congratulations!||&7||&e&lOBJETIVE: &b1000 KILLS||&e&lSTATE: &a&lCOMPLETE" to close else: send "%{proximkitpvp.config::prefix}% %{proximkitpvp.config::youcannot}%" else if arg 1 is "shop": if {kitpvp:join:%player%} is true: open chest with 3 rows named "Shop" to player wait 0.3 seconds play raw sound "random.pop" at player with pitch 1 volume 0.1 format slot 10 of player with diamond sword named "&aDiamond Sword" with lore "&ePrice: 520" to close then run [execute player command "/ppshop 1"] wait 0.3 seconds play raw sound "random.pop" at player with pitch 1 volume 0.1 format slot 11 of player with diamond helmet named "&aDiamond Helmet" with lore "&ePrice: 95" to close then run [execute player command "/ppshop 2"] wait 0.3 seconds play raw sound "random.pop" at player with pitch 1 volume 0.1 format slot 12 of player with diamond chestplate named "&aDiamond Chestplate" with lore "&ePrice: 85" to close then run [execute player command "/ppshop 3"] wait 0.3 seconds play raw sound "random.pop" at player with pitch 1 volume 0.1 format slot 13 of player with diamond leggings named "&aDiamond Leggings" with lore "&ePrice: 85" to close then run [execute player command "/ppshop 4"] wait 0.3 seconds play raw sound "random.pop" at player with pitch 1 volume 0.1 format slot 14 of player with diamond boots named "&aDiamond Boots" with lore "&ePrice: 95" to close then run [execute player command "/ppshop 5"] wait 0.3 seconds play raw sound "random.pop" at player with pitch 1 volume 0.1 format slot 15 of player with tnt named "&cTNT" with lore "&ePrice: 15" to close then run [execute player command "/ppshop 6"] wait 0.3 seconds play raw sound "random.pop" at player with pitch 1 volume 0.1 format slot 16 of player with golden apple:0 named "&6Golden Apple" with lore "&ePrice: 25" to close then run [execute player command "/ppshop 7"] else: send "%{proximkitpvp.config::prefix}% %{proximkitpvp.config::youcannot}%" else if arg 1 is "kits": if {kitpvp:join:%player%} is true: open chest with 3 rows named "Kits" to player wait 0.3 seconds play raw sound "random.pop" at player with pitch 1 volume 0.1 format slot 10 of player with iron chestplate named "&aKit Warrior" with lore "&eClick!" to close then run "kitpvpkit 1 %player%" wait 0.3 seconds play raw sound "random.pop" at player with pitch 1 volume 0.1 format slot 12 of player with leather chestplate named "&aKit Archer" with lore "&eClick!" to close then run "kitpvpkit 2 %player%" wait 0.3 seconds play raw sound "random.pop" at player with pitch 1 volume 0.1 format slot 14 of player with diamond chestplate named "&aKit Tank" with lore "&eClick!" to close then run "kitpvpkit 3 %player%" wait 0.3 seconds play raw sound "random.pop" at player with pitch 1 volume 0.1 format slot 16 of player with tnt named "&aKit TNT" with lore "&eClick!" to close then run "kitpvpkit 4 %player%" else: send "%{proximkitpvp.config::prefix}% %{proximkitpvp.config::youcannot}%" else: send "&a&m----------------------------------------" send "&9&l &8&l- &9&lProximKitPvP &8&l-" send "&f" send "&eAuthor: &7WaxtzCraft" send "&eVersion: &72.3 Beta" send "&3" send "&a&l Commands:" send "&e/kitpvp join &6» &7Join to KitPvP" send "&e/kitpvp leave &6» &7Leave from KitPvP" send "&e/kitpvp stats &6» &7Shows your stats in a GUI" send "&e/kitpvp stats [player] &6» &7Shows player statistics" send "&e/kitpvp top &6» &7Shows top kills in a GUI" send "&e/kitpvp coins &6» &7Shows coins" send "&e/kitpvp shop &6» &7Open shop in a GUI" send "&e/kitpvp achievements &6» &7Open achievements in a GUI" if player has permission "kitpvp.admin": send "" send "&a&l Setup:" send "&e/kitpvp setspawn &6» &7Sets the join location" send "&e/kitpvp setlobby &6» &7Sets the leave location" send "&e/kitpvp addcoins [player] [amount] &6» &7Add coins to the player" send "&e/kitpvp autojoin &6» &7Enable/disable autojoin" send "&e/kitpvp reload &6» &7Reload the skript" send "&9" send "&a&m----------------------------------------" else: send "&9" send "&a&m----------------------------------------" command /kitpvpkit [] []: permission: op trigger: if arg 1 is "1": send "%{proximkitpvp.config::prefix}% &a&lWarrior &7kit selected" to arg 2 clear arg 2's inventory play raw sound "note.pling" at arg 2 with pitch 1 volume 0.1 give 1 diamond sword of sharpness 2 to arg 2 give 1 emerald named "&b&lShop &7(Right-Click)" to arg 2 give 34 mushroom stew to arg 2 equip arg 2 with iron Helmet equip arg 2 with iron ChestPlate equip arg 2 with iron Leggings equip arg 2 with iron Boots else if arg 1 is "2": send "%{proximkitpvp.config::prefix}% &a&lArcher &7kit selected" to arg 2 clear arg 2's inventory play raw sound "note.pling" at arg 2 with pitch 1 volume 0.1 give 1 bow to arg 2 give 1 wooden sword of sharpness 2 to arg 2 give 1 emerald named "&b&lShop &7(Right-Click)" to arg 2 give 31 mushroom stew to arg 2 give 64 arrow to arg 2 give 64 arrow to arg 2 equip arg 2 with leather Helmet equip arg 2 with chainmail ChestPlate equip arg 2 with chainmail Leggings equip arg 2 with leather Boots else if arg 1 is "3": send "%{proximkitpvp.config::prefix}% &a&lTank &7kit selected" to arg 2 clear arg 2's inventory play raw sound "note.pling" at arg 2 with pitch 1 volume 0.1 give 1 wood sword of sharpness 1 to arg 2 give 1 emerald named "&b&lShop &7(Right-Click)" to arg 2 give 34 mushroom stew to arg 2 equip arg 2 with diamond Helmet equip arg 2 with diamond ChestPlate equip arg 2 with iron Leggings equip arg 2 with diamond Boots else if arg 1 is "4": send "%{proximkitpvp.config::prefix}% &a&lTNT &7kit selected" to arg 2 clear arg 2's inventory play raw sound "note.pling" at arg 2 with pitch 1 volume 0.1 give 1 stone sword of sharpness 2 to arg 2 give 2 tnt named "&c&lTNT &7(Right-Click)" to arg 2 give 1 emerald named "&b&lShop &7(Right-Click)" to arg 2 give 33 mushroom stew to arg 2 equip arg 2 with leather Helmet equip arg 2 with leather ChestPlate equip arg 2 with leather Leggings equip arg 2 with leather Boots on hunger meter change: if {kitpvp:join:%player%} is true: cancel event on drop: if {kitpvp:join:%player%} is true: cancel event on break: if {kitpvp:join:%player%} is true: cancel event on place: if {kitpvp:join:%player%} is true: cancel event on quit: if {kitpvp:join:%player%} is true: make player execute command "/kitpvp leave" on explosion: cancel event on command: if {kitpvp:join:%player%} is true: command isn't equal to "kitpvp" or "kitpvp leave" or "kitpvp stats" or "kp" or "kp leave" or "kp shop" or "kitpvp shop" or "ppshop" cancel event send "%{proximkitpvp.config::prefix}% %{proximkitpvp.config::nocommandarena}%" command /removeboard: trigger: display board named "" to player on place of tnt: if {kitpvp:join:%player%} is true: spawn a primed TNT at the event-block set event-block to air remove 1 tnt from the player on damage of player: attacker is a player: projectile exists victim is not dead: send "%{proximkitpvp.config::prefix}% &9%victim% &7is now at &c&l%health of victim*2%❤" to the attacker on death of a player: if {kitpvp:join:%player%} is true: clear drops set the death message to "" set {proximkitpvp.config::youkilled} to value "youkilled" get of "plugins/ProximKitPvP/messages.yml" set {proximkitpvp.config::youdied} to value "youdied" get of "plugins/ProximKitPvP/messages.yml" replace all "" with "%victim%" in {proximkitpvp.config::youkilled} replace all "" with "%attacker%" in {proximkitpvp.config::youdied} send "%{proximkitpvp.config::prefix}% %{proximkitpvp.config::youdied}%" to victim send "%{proximkitpvp.config::prefix}% %{proximkitpvp.config::youkilled}%" to attacker set player's health to 20 execute console command "/gamemode spectator %player%" replace all "