Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # KitPvP Skript
- command /kitpvp:
- trigger:
- if player is in world "KitPvP":
- send "§7 [§4KitPvP§7]§a Developer: LamboCreeper"
- send "§a Commands:"
- send "§e/Kit <KIT> |§a Select A Kit"
- if player is in world "Hub":
- send "§c§lERROR:§a Only Avialible In World: KitPvP"
- if player is in world "Survival":
- send "§c§lERROR:§a Only Avialible In World: KitPvP"
- on death of player:
- player's world is "KitPvP"
- set the death message to "§7[§4KitPvP§7]§a§l %player%§a Was Slain by§l %attacker%§a!"
- command /Kit [<text>]:
- trigger:
- if player is in world "KitPvP":
- arg 1 is "1":
- if {kills.%player%} is higher than 4:
- give 1 of 268 to the player
- give 1 of 298 to the player
- give 1 of 299 to the player
- give 1 of 300 to the player
- give 1 of 301 to the player
- send "§7[§4KitPvP§7]§a Recived Kit §l1"
- else:
- send "§7[§4KitPvP§7]§c§l Error: §aYou don't have enough kills."
- else if arg 1 is "2":
- if {kills.%player%} is higher than 9:
- give 1 of 272 to the player
- give 1 of 302 to the player
- give 1 of 303 to the player
- give 1 of 304 to the player
- give 1 of 305 to the player
- send "§7[§4KitPvP§7]§a Recived Kit §l2"
- else:
- send "§7[§4KitPvP§7]§c§lError: §aYou don't have enough kills."
- else if arg 1 is "3":
- if {kills.%player%} is higher than 14:
- give 1 of 267 to the player
- give 1 of 306 to the player
- give 1 of 307 to the player
- give 1 of 308 to the player
- give 1 of 309 to the player
- send "§7[§4KitPvP§7]§a Recived Kit §l3"
- else:
- send "§7[§4KitPvP§7]§c§lError: §aYou don't have enough kills."
- else if arg 1 is "4":
- if {kills.%player%} is higher than 19:
- give 1 of 283 to the player
- give 1 of 314 to the player
- give 1 of 315 to the player
- give 1 of 316 to the player
- give 1 of 317 to the player
- send "§7[§4KitPvP§7]§a Recived Kit §l4"
- else:
- send "§7[§4KitPvP§7]§c§lError: §aYou don't have enough kills."
- else if arg 1 is "5":
- if {kills.%player%} is higher than 49:
- give 1 of 276 to the player
- give 1 of 310 to the player
- give 1 of 311 to the player
- give 1 of 312 to the player
- give 1 of 313 to the player
- send "§7[§4KitPvP§7]§a Recived Kit §l5"
- else:
- send "§7[§4KitPvP§7]§c§lError: §aYou don't have enough kills."
- else:
- send "§7[KitPvP§7]§a You Have §l%{kills.%player%}%§a Kills"
- send "§e/kit 1 §a Only Avalible If You Have §l0+§a Kills"
- send "§e/kit 2 §a Only Avalible If You Have §l5+§a Kills"
- send "§e/kit 3 §a Only Avalible If You Have §l10+§a Kills"
- send "§e/kit 4 §a Only Avalible If You Have §l20+§a Kills"
- send "§e/kit 5 §a Only Avalible If You Have §l50+§a Kills"
- send "§9§m----------------------------------------------"
- send "§a What Kits Contain:"
- send "aKit 1 = Leather Armor & Wooden Sword"
- send "aKit 2 = Chain Armor & Stone Sword"
- send "aKit 3 = Iron Armor & Iron Sword"
- send "aKit 4 = Gold Armor & Gold Sword"
- send "aKit 5 = Diamond Armor & Diamond Sword"
- on death:
- if victim is in world "KitPvP":
- victim is a player
- nullify score of "%{kills.%attacker%}" in board of attacker
- add 1 to {kills.%player%}
- make score of "%{kills.%attacker%}" in board of attacker to 3
- on rightclick on entity:
- if name of event-entity is "&a&lKit 1&b 5+":
- make player execute command "/kit 1"
- on rightclick on entity:
- if name of event-entity is "&a&lKit 2&b 10+":
- make player execute command "/kit 2"
- on rightclick on entity:
- if name of event-entity is "&a&lKit 3&b 15+":
- make player execute command "/kit 3"
- on rightclick on entity:
- if name of event-entity is "&a&lKit 4&b 20+":
- make player execute command "/kit 4"
- on rightclick on entity:
- if name of event-entity is "&a&lKit 5&b 50+":
- make player execute command "/kit 5"
- command /kills:
- trigger:
- send "§a§m--§a> You Have §l%{kills.%player%}%§a Kills"
- on right click on sign:
- if line 1 of block contains "KitPvP":
- if line 2 of block contains "Heal":
- heal the player
- remove 5 from {kills.%player%}
- send "§aYou were healed. Removed 5 Kills"
- command /KitPvPAdmin [<text>] [<text>]:
- permission: Admin.SkKitPvP
- permission message: §fUnknown command. Type "/help" for help.
- usage: /KitPvPAdmin
- trigger:
- arg 1 is "addkill":
- arg 1 is set:
- add 1 to {kills.%argument 2%}
- send "§aAdded 1 Kill."
- arg 1 is "removekill":
- arg 1 is set:
- remove 1 from {kills.%argument 2%}
- send "§aRemoved 1 Kill"
- on rightclick on sign:
- if line 1 of block contains "KitPvP":
- if line 2 of block contains "ClearInv":
- clear the inventory of player
- display board named "§4Kills" to loop-player
- make score of "&1" in board of loop-player to 1
- make score of "Kills:" in board of loop-player to 2
- make score of "%{kills.%loop-player%}" in board of loop-player to 3
- move display of loop-player to sidebar
Advertisement
Add Comment
Please, Sign In to add comment