Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #---------------------------------------------------------------
- # KitPVP Like Cubecraft!
- # Script by WillCraftero
- #---------------------------------------------------------------
- #
- # ALL PERMS AND COMMANDS
- #
- # /kitpvp - info
- # /setspawn - set main spawn
- # /setrandomspawn - set all random spawn's in the world
- # /setdonatorspawn - set all donator's spawn's in the world
- #
- # kitpvp.default - access to all kits and go to random spawn's
- # kitpvp.admin - only for op's, perm for make a signs and for set commands
- # kitpvp.donator - Special perm only for vips, access to Donator spawn's
- #
- #---------------------------------------------------------------
- #========================[ OPTIONS ]=========================#
- Options:
- Motd1: &b-----------------------------
- Motd2: &7
- Motd3: &6Welcome to &9&lKitPvP
- Motd4: &6Website: &9&lwillcraftero.tumblr.com
- Motd5: &6Store: &9&lstore.willcraft.net
- Motd6: &7
- Motd7: &b-----------------------------
- Servername: &6play.kitpvpgames.net
- Ci-world: "world"
- Ci-time: 1
- Ci-msg: &c[KitPVP] &4Removing all items on the ground!
- NoPoints-msg: &cYou do not have enough points to get this!
- NoDonor-msg: &cOnly donator can choose what spawn they go!
- ShopGUI-Name: "&a&k:&6&lShop&a&k:"
- KitsGUI-Name: "&c&k:&7&lKit Selector&c&k:"
- Price-DiamondSword1: 80
- Price-DiamondSword2: 100
- Price-DiamondHelmet1: 120
- Price-DiamondHelmet2: 80
- Price-DiamondChestplate1: 120
- Price-DiamondChestplate2: 150
- Price-DiamondLeggings1: 80
- Price-DiamondLeggings2: 120
- Price-DiamondBoots1: 50
- Price-DiamondBoots2: 70
- Price-GodApple: 300
- Price-PotionPoison: 150
- Price-PotionRegeneration: 150
- Price-PotionStrength: 240
- Price-PotionSpeed: 40
- Price-PotionWeakness: 80
- Price-PotionFireResistance: 60
- donatorspawn-1: Middle
- donatorspawn-2: Army
- donatorspawn-3: City
- donatorspawn-4: Volcano
- donatorspawn-5: Sand
- donatorspawn-6: Mossy
- donatorspawn-7: Sandy
- donatorspawn-8: Skyscraper
- donatorspawn-9: Forest
- donatorspawn-10: Campsite
- donatorspawn-11: Mountain
- donatorspawn-12: Picnic
- donatorspawn-13: Tech
- #---------------------------------------------------------------
- # NO TOCAR NI MODIFICAR NADA EN ESTE CODIGO!
- #---------------------------------------------------------------
- #========================[ KIT AND SHOP MENU ]=========================#
- command /pvpkits:
- trigger:
- open chest with 1 rows named {@KitsGUI-Name} to player
- wait 5 ticks
- format slot 0 of player with iron helmet named "&c&lTank" to run [make player execute command "/kitpvp tank"]
- format slot 1 of player with iron sword named "&c&lWarrior" to run [make player execute command "/kitpvp warrior"]
- format slot 2 of player with bow named "&c&lArcher" to run [make player execute command "/kitpvp archer"]
- format slot 3 of player with nether star named "&c&lNinja" to run [make player execute command "/kitpvp ninja"]
- format slot 4 of player with golden sword of fire aspect named "&c&lPyro" to run [make player execute command "/kitpvp pyro"]
- format slot 5 of player with splash harming potion named "&c&lAlchemist" to run [make player execute command "/kitpvp alchemist"]
- format slot 6 of player with stick of knockback 5 named "&c&lWizad" to run [make player execute command "/kitpvp wizard"]
- format slot 7 of player with skeleton spawn egg named "&c&lHorseman" to run [make player execute command "/kitpvp horseman"]
- command /pvpshop:
- trigger:
- open chest with 4 rows named {@ShopGUI-Name} to player
- wait 5 ticks
- format slot 0 of player with diamond sword of sharpness named "&aDiamond Sword" with lore "&6{@Price-DiamondSword1} &dpoints" to run [make player execute command "/bsword1"]
- format slot 1 of player with diamond helmet of protection named "&aDiamond helmet" with lore "&6{@Price-DiamondHelmet1} &dpoints" to run [make player execute command "/bhelmet1"]
- format slot 2 of player with diamond chestplate of protection named "&aDiamond chestplate" with lore "&6{@Price-DiamondChestplate1} &dpoints" to run [make player execute command "/bchestplate1"]
- format slot 3 of player with diamond leggings of protection named "&aDiamond leggings" with lore "&6{@Price-DiamondLeggings1} &dpoints" to run [make player execute command "/bleggins1"]
- format slot 4 of player with diamond boots of protection named "&aDiamond boots" with lore "&6{@Price-DiamondBoots1} &dpoints" to run [make player execute command "/bboots1"]
- format slot 9 of player with diamond sword of sharpness 2 named "&aDiamond Sword" with lore "&6{@Price-DiamondSword2} &dpoints" to run [make player execute command "/bsword2"]
- format slot 10 of player with diamond helmet of protection 2 named "&aDiamond helmet" with lore "&6{@Price-DiamondHelmet2} &dpoints" to run [make player execute command "/bhelmet2"]
- format slot 11 of player with diamond chestplate of protection 2 named "&aDiamond chestplate" with lore "&6{@Price-DiamondChestplate2} &dpoints" to run [make player execute command "/bchestplate2"]
- format slot 12 of player with diamond leggings of protection 2 named "&aDiamond leggings" with lore "&6{@Price-DiamondLeggings2} &dpoints" to run [make player execute command "/bleggins2"]
- format slot 13 of player with diamond boots of protection 2 named "&aDiamond boots" with lore "&6{@Price-DiamondBoots2} &dpoints" to run [make player execute command "/bboots2"]
- format slot 7 of player with splash poison potion named "&aPotion of Poison" with lore "&6{@Price-PotionPoison} &dpoints" to run [make player execute command "/bpofp"]
- format slot 8 of player with splash regeneration potion named "&aPotion of Regeneration" with lore "&6{@Price-PotionRegeneration} &dpoints" to run [make player execute command "/bpofr"]
- format slot 16 of player with splash strength potion named "&aPotion of Strength" with lore "&6{@Price-PotionStrength} &dpoints" to run [make player execute command "/bpofs"]
- format slot 17 of player with splash swiftness potion named "&aPotion of Speed" with lore "&6{@Price-PotionSpeed} &dpoints" to run [make player execute command "/bpofsp"]
- format slot 23 of player with enchanted golden apple named "&aGod Apple" with lore "&6{@Price-GodApple} &dpoints" to run [make player execute command "/bgodapple"]
- format slot 25 of player with splash weakness potion named "&aPotion of Weakness" with lore "&6{@Price-PotionWeakness} &dpoints" to run [make player execute command "/bpofw"]
- format slot 26 of player with splash fire resistance potion named "&aPotion of Fire resistance" with lore "&6{@Price-PotionFireResistance} &dpoints" to run [make player execute command "/bpoffr"]
- #========================[ KITS AND SHOP ]=========================#
- command /kitpvp [<text>] [<text>]:
- executable by: players
- trigger:
- if arg 1 is not set:
- send "&aKitPVP Plugin created by WillCraftero! Exclusive on: {@Servername}"
- if arg 1 are "help":
- if player have permissions "kitpvp.admin":
- send "&5&m-------------------------------------------"
- send "&f &e&lKitPVP &7Plugin by &5&lWillCraftero"
- send ""
- send "&7 &6&lHelp Commands "
- send "&a/setspawn &7- &cSet main spawn"
- send "&a/setrandomspawn 1-15 &7- &cSet random spawn's"
- send "&a/setdonatorspawn [NAME] &7- &cSet donator's spawn's"
- send "&a/kitpvp reload &7- &cReload all the plugin"
- send "&5&m-------------------------------------------"
- if arg 1 are "reload":
- if player have permissions "kitpvp.admin":
- make console execute command "/skript reload KitPVPCCG"
- wait 5 ticks
- send "&e&lKitPVP &7By &5&lWillCraftero &aReloaded!"
- if arg 1 are "tank":
- if player have permissions "kitpvp.default":
- close player's inventory
- execute console command "/clearinventory %player%"
- remove speed from player
- remove fire resistance from player
- remove helmet from player
- remove boots from player
- remove chestplate from player
- remove leggings from player
- set chestplate of player to iron chestplate
- set leggings of player to iron leggings
- set boots of player to iron boots
- set helmet of player to iron helmet
- give a wood sword to the player
- give 16 cooked beef to the player
- if arg 1 are "warrior":
- if player have permissions "kitpvp.default":
- close player's inventory
- execute console command "/clearinventory %player%"
- remove speed from player
- remove fire resistance from player
- remove helmet from player
- remove boots from player
- remove chestplate from player
- remove leggings from player
- set chestplate of player to leather chestplate
- set leggings of player to leather leggings
- set boots of player to leather boots
- set helmet of player to leather helmet
- give a iron sword to the player
- give 16 cooked beef to the player
- if arg 1 are "archer":
- if player have permissions "kitpvp.default":
- close player's inventory
- execute console command "/clearinventory %player%"
- remove speed from player
- remove fire resistance from player
- remove helmet from player
- remove boots from player
- remove chestplate from player
- remove leggings from player
- set chestplate of player to chainmail chestplate
- set leggings of player to chainmail leggings
- set boots of player to chainmail boots
- set helmet of player to chainmail helmet
- give a bow to the player
- give gold sword to the player
- give 32 arrows to the player
- give 16 cooked beef to the player
- if arg 1 are "ninja":
- if player have permissions "kitpvp.default":
- close player's inventory
- execute console command "/clearinventory %player%"
- remove speed from player
- remove fire resistance from player
- apply speed to player for 100 days
- remove helmet from player
- remove boots from player
- remove chestplate from player
- remove leggings from player
- set chestplate of player to leather chestplate
- dye player's chestplate black
- give stone sword to the player
- give 16 cooked beef to the player
- if arg 1 are "pyro":
- if player have permissions "kitpvp.default":
- close player's inventory
- execute console command "/clearinventory %player%"
- remove speed from player
- remove fire resistance from player
- apply fire resistance 2 to player for 100 days
- remove helmet from player
- remove boots from player
- remove chestplate from player
- remove leggings from player
- set chestplate of player to chainmail chestplate
- set leggings of player to chainmail leggings
- set boots of player to chainmail boots
- give gold sword of fire aspect to the player
- give 16 cooked beef to the player
- if arg 1 are "alchemist":
- if player have permissions "kitpvp.default":
- close player's inventory
- execute console command "/clearinventory %player%"
- remove speed from player
- remove fire resistance from player
- remove helmet from player
- remove boots from player
- remove chestplate from player
- remove leggings from player
- set chestplate of player to chainmail chestplate
- set leggings of player to leather leggings
- set boots of player to leather boots
- set helmet of player to leather helmet
- give wood sword to the player
- give 16 cooked beef to the player
- give splash regeneration potion II to the player
- give splash strength potion to the player
- give splash swiftness potion to the player
- if arg 1 are "wizard":
- if player have permissions "kitpvp.default":
- close player's inventory
- execute console command "/clearinventory %player%"
- remove speed from player
- remove fire resistance from player
- remove helmet from player
- remove boots from player
- remove chestplate from player
- remove leggings from player
- set chestplate of player to leather chestplate
- dye player's chestplate purple
- set leggings of player to leather leggings
- dye player's leggings purple
- set boots of player to leather boots
- dye player's boots purple
- set helmet of player to leather helmet
- dye player's helmet purple
- give a stick of knockback 5 to the player
- give a blaze rod of fire aspect to the player
- give 16 cooked beef to the player
- if arg 1 are "horseman":
- if player have permissions "kitpvp.default":
- close player's inventory
- execute console command "/clearinventory %player%"
- remove speed from player
- remove fire resistance from player
- remove helmet from player
- remove boots from player
- remove chestplate from player
- remove leggings from player
- set chestplate of player to chainmail chestplate
- give a wood sword to the player
- give 16 cooked beef to the player
- give a horse spawn egg to the player
- command /bsword1 [<text>] [<text>]:
- executable by: players
- trigger:
- if player's balance is greater than or equal to {@Price-DiamondSword1}:
- remove {@Price-DiamondSword1} from player's balance
- give diamond sword of sharpness to the player
- else:
- send "{@NoPoints-msg}" to player
- command /bsword2 [<text>] [<text>]:
- executable by: players
- trigger:
- if player's balance is greater than or equal to {@Price-DiamondSword2}:
- remove {@Price-DiamondSword2} from player's balance
- give diamond sword of sharpness 2 to the player
- else:
- send "{@NoPoints-msg}" to player
- command /bhelmet1 [<text>] [<text>]:
- executable by: players
- trigger:
- if player's balance is greater than or equal to {@Price-DiamondHelmet1}:
- remove {@Price-DiamondHelmet1} from player's balance
- give diamond helmet of protection to the player
- else:
- send "{@NoPoints-msg}" to player
- command /bhelmet2 [<text>] [<text>]:
- executable by: players
- trigger:
- if player's balance is greater than or equal to {@Price-DiamondHelmet2}:
- remove {@Price-DiamondHelmet2} from player's balance
- give diamond helmet of protection 2 to the player
- else:
- send "{@NoPoints-msg}" to player
- command /bchestplate1 [<text>] [<text>]:
- executable by: players
- trigger:
- if player's balance is greater than or equal to {@Price-DiamondChestplate1}:
- remove {@Price-DiamondChestplate1} from player's balance
- give diamond chestplate of protection to the player
- else:
- send "{@NoPoints-msg}" to player
- command /bchestplate2 [<text>] [<text>]:
- executable by: players
- trigger:
- if player's balance is greater than or equal to {@Price-DiamondChestplate2}:
- remove {@Price-DiamondChestplate2} from player's balance
- give diamond chestplate of protection 2 to the player
- else:
- send "{@NoPoints-msg}" to player
- command /bleggins1 [<text>] [<text>]:
- executable by: players
- trigger:
- if player's balance is greater than or equal to {@Price-DiamondLeggings1}:
- remove {@Price-DiamondLeggings1} from player's balance
- give diamond leggings of protection to the player
- else:
- send "{@NoPoints-msg}" to player
- command /bleggins2 [<text>] [<text>]:
- executable by: players
- trigger:
- if player's balance is greater than or equal to {@Price-DiamondLeggings2}:
- remove {@Price-DiamondLeggings2} from player's balance
- give diamond leggings of protection 2 to the player
- else:
- send "{@NoPoints-msg}" to player
- command /bboots1 [<text>] [<text>]:
- executable by: players
- trigger:
- if player's balance is greater than or equal to {@Price-DiamondBoots1}:
- remove {@Price-DiamondBoots1} from player's balance
- give diamond boots of protection to the player
- else:
- send "{@NoPoints-msg}" to player
- command /bboots2 [<text>] [<text>]:
- executable by: players
- trigger:
- if player's balance is greater than or equal to {@Price-DiamondBoots2}:
- remove {@Price-DiamondBoots2} from player's balance
- give diamond boots of protection 2 to the player
- else:
- send "{@NoPoints-msg}" to player
- command /bgodapple [<text>] [<text>]:
- executable by: players
- trigger:
- if player's balance is greater than or equal to {@Price-GodApple}:
- remove {@Price-GodApple} from player's balance
- give enchanted golden apple named "&6God Apple" to the player
- else:
- send "{@NoPoints-msg}" to player
- command /bpofp [<text>] [<text>]:
- executable by: players
- trigger:
- if player's balance is greater than or equal to {@Price-PotionPoison}:
- remove {@Price-PotionPoison} from player's balance
- give splash poison potion to the player
- else:
- send "{@NoPoints-msg}" to player
- command /bpofr [<text>] [<text>]:
- executable by: players
- trigger:
- if player's balance is greater than or equal to {@Price-PotionRegeneration}:
- remove {@Price-PotionRegeneration} from player's balance
- give splash regeneration potion to the player
- else:
- send "{@NoPoints-msg}" to player
- command /bpofs [<text>] [<text>]:
- executable by: players
- trigger:
- if player's balance is greater than or equal to {@Price-PotionStrength}:
- remove {@Price-PotionStrength} from player's balance
- give splash strength potion to the player
- else:
- send "{@NoPoints-msg}" to player
- command /bpofsp [<text>] [<text>]:
- executable by: players
- trigger:
- if player's balance is greater than or equal to {@Price-PotionSpeed}:
- remove {@Price-PotionSpeed} from player's balance
- give splash swiftness potion to the player
- else:
- send "{@NoPoints-msg}" to player
- command /bpofw [<text>] [<text>]:
- executable by: players
- trigger:
- if player's balance is greater than or equal to {@Price-PotionWeakness}:
- remove {@Price-PotionWeakness} from player's balance
- give splash weakness potion to the player
- else:
- send "{@NoPoints-msg}" to player
- command /bpoffr [<text>] [<text>]:
- executable by: players
- trigger:
- if player's balance is greater than or equal to {@Price-PotionFireResistance}:
- remove {@Price-PotionFireResistance} from player's balance
- give splash fire resistance potion to the player
- else:
- send "{@NoPoints-msg}" to player
- command /points [<text>] [<text>]:
- executable by: players
- trigger:
- if arg 1 is not set:
- make player execute command "/balance"
- #========================[ SIGNS ]=========================#
- on sign change:
- line 1 is "kitpvp":
- if line 2 is "kits":
- set line 1 to "&lKits"
- set line 2 to "&7Click to"
- set line 3 to "&7choose a kit"
- set line 4 to ""
- on rightclick on sign:
- if line 1 of clicked block is "&lKits":
- if line 2 of clicked block is "&7Click to":
- if line 3 of clicked block is "&7choose a kit":
- make player execute command "/pvpkits"
- on sign change:
- line 1 is "kitpvp":
- if line 2 is "spawn":
- set line 1 to "&lSpawn"
- set line 2 to "&7Click to go"
- set line 3 to "&7to a random"
- set line 4 to "&7spawn"
- on rightclick on sign:
- if line 1 of clicked block is "&lSpawn":
- if line 2 of clicked block is "&7Click to go":
- if line 3 of clicked block is "&7to a random":
- if line 4 of clicked block is "&7spawn":
- wait 5 ticks
- make player execute command "/randomspawn"
- on sign change:
- line 1 is "kitpvp":
- if line 2 is "shop":
- set line 1 to "&lShop"
- set line 2 to "&7Click to"
- set line 3 to "&7open the shop"
- set line 4 to ""
- on rightclick on sign:
- if line 1 of clicked block is "&lShop":
- if line 2 of clicked block is "&7Click to":
- if line 3 of clicked block is "&7open the shop":
- make player execute command "/pvpshop"
- on sign change:
- line 1 is "kitpvp":
- if line 2 is "donatorspawn":
- if line 3 is "{@donatorspawn-1}":
- set line 1 to "&lSpawn"
- set line 2 to "&7Click to go"
- set line 3 to "&7to spawn:"
- set line 4 to "&7{@donatorspawn-1}"
- on rightclick on sign:
- if line 1 of clicked block is "&lSpawn":
- if line 2 of clicked block is "&7Click to go":
- if line 3 of clicked block is "&7to spawn:":
- if line 4 of clicked block is "&7{@donatorspawn-1}":
- wait 5 ticks
- make player execute command "/donatorspawn {@donatorspawn-1}"
- on sign change:
- line 1 is "kitpvp":
- if line 2 is "donatorspawn":
- if line 3 is "{@donatorspawn-2}":
- set line 1 to "&lSpawn"
- set line 2 to "&7Click to go"
- set line 3 to "&7to spawn:"
- set line 4 to "&7{@donatorspawn-2}"
- on rightclick on sign:
- if line 1 of clicked block is "&lSpawn":
- if line 2 of clicked block is "&7Click to go":
- if line 3 of clicked block is "&7to spawn:":
- if line 4 of clicked block is "&7{@donatorspawn-2}":
- wait 5 ticks
- make player execute command "/donatorspawn {@donatorspawn-2}"
- on sign change:
- line 1 is "kitpvp":
- if line 2 is "donatorspawn":
- if line 3 is "{@donatorspawn-3}":
- set line 1 to "&lSpawn"
- set line 2 to "&7Click to go"
- set line 3 to "&7to spawn:"
- set line 4 to "&7{@donatorspawn-3}"
- on rightclick on sign:
- if line 1 of clicked block is "&lSpawn":
- if line 2 of clicked block is "&7Click to go":
- if line 3 of clicked block is "&7to spawn:":
- if line 4 of clicked block is "&7{@donatorspawn-3}":
- wait 5 ticks
- make player execute command "/donatorspawn {@donatorspawn-3}"
- on sign change:
- line 1 is "kitpvp":
- if line 2 is "donatorspawn":
- if line 3 is "{@donatorspawn-4}":
- set line 1 to "&lSpawn"
- set line 2 to "&7Click to go"
- set line 3 to "&7to spawn:"
- set line 4 to "&7{@donatorspawn-4}"
- on rightclick on sign:
- if line 1 of clicked block is "&lSpawn":
- if line 2 of clicked block is "&7Click to go":
- if line 3 of clicked block is "&7to spawn:":
- if line 4 of clicked block is "&7{@donatorspawn-4}":
- wait 5 ticks
- make player execute command "/donatorspawn {@donatorspawn-4}"
- on sign change:
- line 1 is "kitpvp":
- if line 2 is "donatorspawn":
- if line 3 is "{@donatorspawn-5}":
- set line 1 to "&lSpawn"
- set line 2 to "&7Click to go"
- set line 3 to "&7to spawn:"
- set line 4 to "&7{@donatorspawn-5}"
- on rightclick on sign:
- if line 1 of clicked block is "&lSpawn":
- if line 2 of clicked block is "&7Click to go":
- if line 3 of clicked block is "&7to spawn:":
- if line 4 of clicked block is "&7{@donatorspawn-5}":
- wait 5 ticks
- make player execute command "/donatorspawn {@donatorspawn-5}"
- on sign change:
- line 1 is "kitpvp":
- if line 2 is "donatorspawn":
- if line 3 is "{@donatorspawn-6}":
- set line 1 to "&lSpawn"
- set line 2 to "&7Click to go"
- set line 3 to "&7to spawn:"
- set line 4 to "&7{@donatorspawn-6}"
- on rightclick on sign:
- if line 1 of clicked block is "&lSpawn":
- if line 2 of clicked block is "&7Click to go":
- if line 3 of clicked block is "&7to spawn:":
- if line 4 of clicked block is "&7{@donatorspawn-6}":
- wait 5 ticks
- make player execute command "/donatorspawn {@donatorspawn-6}"
- on sign change:
- line 1 is "kipvp":
- if line 2 is "donatorspawn":
- if line 3 is "{@donatorspawn-7}":
- set line 1 to "&lSpawn"
- set line 2 to "&7Click to go"
- set line 3 to "&7to spawn:"
- set line 4 to "&7{@donatorspawn-7}"
- on rightclick on sign:
- if line 1 of clicked block is "&lSpawn":
- if line 2 of clicked block is "&7Click to go":
- if line 3 of clicked block is "&7to spawn:":
- if line 4 of clicked block is "&7{@donatorspawn-7}":
- wait 5 ticks
- make player execute command "/donatorspawn {@donatorspawn-7}"
- on sign change:
- line 1 is "kitpvp":
- if line 2 is "donatorspawn":
- if line 3 is "{@donatorspawn-8}":
- set line 1 to "&lSpawn"
- set line 2 to "&7Click to go"
- set line 3 to "&7to spawn:"
- set line 4 to "&7{@donatorspawn-8}"
- on rightclick on sign:
- if line 1 of clicked block is "&lSpawn":
- if line 2 of clicked block is "&7Click to go":
- if line 3 of clicked block is "&7to spawn:":
- if line 4 of clicked block is "&7{@donatorspawn-8}":
- wait 5 ticks
- make player execute command "/donatorspawn {@donatorspawn-8}"
- on sign change:
- line 1 is "kitpvp":
- if line 2 is "donatorspawn":
- if line 3 is "{@donatorspawn-9}":
- set line 1 to "&lSpawn"
- set line 2 to "&7Click to go"
- set line 3 to "&7to spawn:"
- set line 4 to "&7{@donatorspawn-9}"
- on rightclick on sign:
- if line 1 of clicked block is "&lSpawn":
- if line 2 of clicked block is "&7Click to go":
- if line 3 of clicked block is "&7to spawn:":
- if line 4 of clicked block is "&7{@donatorspawn-9}":
- wait 5 ticks
- make player execute command "/donatorspawn {@donatorspawn-9}"
- on sign change:
- line 1 is "kitpvp":
- player has permission "kitpvp.admin"
- if line 2 is "donatorspawn":
- if line 3 is "{@donatorspawn-10}":
- set line 1 to "&lSpawn"
- set line 2 to "&7Click to go"
- set line 3 to "&7to spawn:"
- set line 4 to "&7{@donatorspawn-10}"
- on rightclick on sign:
- if line 1 of clicked block is "&lSpawn":
- if line 2 of clicked block is "&7Click to go":
- if line 3 of clicked block is "&7to spawn:":
- if line 4 of clicked block is "&7{@donatorspawn-10}":
- wait 5 ticks
- make player execute command "/donatorspawn {@donatorspawn-10}"
- on sign change:
- line 1 is "kitpvp":
- if line 2 is "donatorspawn":
- if line 3 is "{@donatorspawn-11}":
- set line 1 to "&lSpawn"
- set line 2 to "&7Click to go"
- set line 3 to "&7to spawn:"
- set line 4 to "&7{@donatorspawn-11}"
- on rightclick on sign:
- if line 1 of clicked block is "&lSpawn":
- if line 2 of clicked block is "&7Click to go":
- if line 3 of clicked block is "&7to spawn:":
- if line 4 of clicked block is "&7{@donatorspawn-11}":
- wait 5 ticks
- make player execute command "/donatorspawn {@donatorspawn-11}"
- on sign change:
- line 1 is "kitpvp":
- if line 2 is "donatorspawn":
- if line 3 is "{@donatorspawn-12}":
- set line 1 to "&lSpawn"
- set line 2 to "&7Click to go"
- set line 3 to "&7to spawn:"
- set line 4 to "&7{@donatorspawn-12}"
- on rightclick on sign:
- if line 1 of clicked block is "&lSpawn":
- if line 2 of clicked block is "&7Click to go":
- if line 3 of clicked block is "&7to spawn:":
- if line 4 of clicked block is "&7{@donatorspawn-12}":
- wait 5 ticks
- make player execute command "/donatorspawn {@donatorspawn-12}"
- on sign change:
- line 1 is "kitpvp":
- if line 2 is "donatorspawn":
- if line 3 is "{@donatorspawn-13}":
- set line 1 to "&lSpawn"
- set line 2 to "&7Click to go"
- set line 3 to "&7to spawn:"
- set line 4 to "&7{@donatorspawn-13}"
- on rightclick on sign:
- if line 1 of clicked block is "&lSpawn":
- if line 2 of clicked block is "&7Click to go":
- if line 3 of clicked block is "&7to spawn:":
- if line 4 of clicked block is "&7{@donatorspawn-13}":
- wait 5 ticks
- make player execute command "/donatorspawn {@donatorspawn-13}"
- #========================[ MOTD AND SCOREBOARD ]=========================#
- on join:
- send "{@Motd1}"
- send "{@Motd2}"
- send "{@Motd3}"
- send "{@Motd4}"
- send "{@Motd5}"
- send "{@Motd6}"
- send "{@Motd7}"
- on first join:
- if {totalkills.%player%} is not set:
- set {totalkills.%player%} to 0
- if {totaldeaths.%player%} is not set:
- set {totaldeaths.%player%} to 0
- if {currentkillstreak.%player%} is not set:
- set {currentkillstreak.%player%} to 0
- if {topkillstreak.%player%} is not set:
- set {topkillstreak.%player%} to 0
- every second:
- loop all players:
- wipe loop-player's sidebar
- set name of sidebar of loop-player to "&e&lKitPVP"
- set score "&aKills" in sidebar of loop-player to {totalkills.%loop-player%}
- set score "&4Deaths" in sidebar of loop-player to {totaldeaths.%loop-player%}
- set score "&5Killstreak" in sidebar of loop-player to {currentkillstreak.%loop-player%}
- set score "&cTopKillstreak" in sidebar of loop-player to {topkillstreak.%loop-player%}
- set score "{@Servername}" in sidebar of loop-player to -1
- on death:
- loop all players:
- wipe loop-player's sidebar
- set name of sidebar of loop-player to "&e&lKitPVP"
- set score "&aKills" in sidebar of loop-player to {totalkills.%loop-player%}
- set score "&4Deaths" in sidebar of loop-player to {totaldeaths.%loop-player%}
- set score "&5Killstreak" in sidebar of loop-player to {currentkillstreak.%loop-player%}
- set score "&cTopKillstreak" in sidebar of loop-player to {topkillstreak.%loop-player%}
- set score "{@Servername}" in sidebar of loop-player to -1
- on death:
- victim is a player
- attacker is a player
- add 1 to {totalkills.%attacker%}
- add 1 to {totaldeaths.%victim%}
- add 1 to {currentkillstreak.%attacker%}
- set {currentkillstreak.%victim%} to 0
- if {currentkillstreak.%attacker%} is greater than {topkillstreak.%attacker%}:
- set {topkillstreak.%attacker%} to {currentkillstreak.%attacker%}
- on death of player:
- add 10 to attacker's balance
- #========================[ SPAWN, RANDOM SPAWNS AND DONOR SPAWNS ]=========================#
- command /setspawn:
- description: Set the spawn!
- permission: kitpvp.admin
- executable by: players
- trigger:
- set {spawn} to location of player
- send "&6Spawn&9 set to %location of player%!"
- command /spawn:
- executable by: players
- trigger:
- send "&fUnknown command. Type /help for help."
- on join:
- teleport player to {spawn}
- on death:
- teleport player to {spawn}
- command /setrandomspawn [<text>] [<text>]:
- permission: kitpvp.admin
- executable by: players
- trigger:
- if arg 1 are "1":
- set {randomspawn1} to location of player
- send "&6Random Spawn&9 1 set to %location of player%!"
- if arg 1 are "2":
- set {randomspawn2} to location of player
- send "&6Random Spawn&9 2 set to %location of player%!"
- if arg 1 are "3":
- set {randomspawn3} to location of player
- send "&6Random Spawn&9 3 set to %location of player%!"
- if arg 1 are "4":
- set {randomspawn4} to location of player
- send "&6Random Spawn&9 4 set to %location of player%!"
- if arg 1 are "5":
- set {randomspawn5} to location of player
- send "&6Random Spawn&9 5 set to %location of player%!"
- if arg 1 are "6":
- set {randomspawn6} to location of player
- send "&6Random Spawn&9 6 set to %location of player%!"
- if arg 1 are "7":
- set {randomspawn7} to location of player
- send "&6Random Spawn&9 7 set to %location of player%!"
- if arg 1 are "8":
- set {randomspawn8} to location of player
- send "&6Random Spawn&9 8 set to %location of player%!"
- if arg 1 are "9":
- set {randomspawn9} to location of player
- send "&6Random Spawn&9 9 set to %location of player%!"
- if arg 1 are "10":
- set {randomspawn10} to location of player
- send "&6Random Spawn&9 10 set to %location of player%!"
- if arg 1 are "11":
- set {randomspawn11} to location of player
- send "&6Random Spawn&9 11 set to %location of player%!"
- if arg 1 are "12":
- set {randomspawn12} to location of player
- send "&6Random Spawn&9 12 set to %location of player%!"
- if arg 1 are "13":
- set {randomspawn13} to location of player
- send "&6Random Spawn&9 13 set to %location of player%!"
- if arg 1 are "14":
- set {randomspawn14} to location of player
- send "&6Random Spawn&9 14 set to %location of player%!"
- if arg 1 are "15":
- set {randomspawn15} to location of player
- send "&6Random Spawn&9 15 set to %location of player%!"
- command /randomspawn:
- description: Go to random spawn!
- permission: kitpvp.default
- executable by: players
- trigger:
- set {randomspawn.%player%} to a random integer between 1 and 15
- if {randomspawn.%player%} is 1:
- teleport player to {randomspawn1}
- if {randomspawn.%player%} is 2:
- teleport player to {randomspawn2}
- if {randomspawn.%player%} is 3:
- teleport player to {randomspawn3}
- if {randomspawn.%player%} is 4:
- teleport player to {randomspawn4}
- if {randomspawn.%player%} is 5:
- teleport player to {randomspawn5}
- if {randomspawn.%player%} is 6:
- teleport player to {randomspawn6}
- if {randomspawn.%player%} is 7:
- teleport player to {randomspawn7}
- if {randomspawn.%player%} is 8:
- teleport player to {randomspawn8}
- if {randomspawn.%player%} is 9:
- teleport player to {randomspawn9}
- if {randomspawn.%player%} is 10:
- teleport player to {randomspawn10}
- if {randomspawn.%player%} is 11:
- teleport player to {randomspawn11}
- if {randomspawn.%player%} is 12:
- teleport player to {randomspawn12}
- if {randomspawn.%player%} is 13:
- teleport player to {randomspawn13}
- if {randomspawn.%player%} is 14:
- teleport player to {randomspawn14}
- if {randomspawn.%player%} is 15:
- teleport player to {randomspawn15}
- command /donatorspawn [<text>] [<text>]:
- executable by: players
- trigger:
- if arg 1 are "{@donatorspawn-1}":
- if player have permissions "kitpvp.donator":
- teleport player to {dspawn-1}
- else:
- send "{@NoDonor-msg}" to player
- if arg 1 are "{@donatorspawn-2}":
- if player have permissions "kitpvp.donator":
- teleport player to {dspawn-2}
- else:
- send "{@NoDonor-msg}" to player
- if arg 1 are "{@donatorspawn-3}":
- if player have permissions "kitpvp.donator":
- teleport player to {dspawn-3}
- else:
- send "{@NoDonor-msg}" to player
- if arg 1 are "{@donatorspawn-4}":
- if player have permissions "kitpvp.donator":
- teleport player to {dspawn-4}
- else:
- send "{@NoDonor-msg}" to player
- if arg 1 are "{@donatorspawn-5}":
- if player have permissions "kitpvp.donator":
- teleport player to {dspawn-5}
- else:
- send "{@NoDonor-msg}" to player
- if arg 1 are "{@donatorspawn-6}":
- if player have permissions "kitpvp.donator":
- teleport player to {dspawn-6}
- else:
- send "{@NoDonor-msg}" to player
- if arg 1 are "{@donatorspawn-7}":
- if player have permissions "kitpvp.donator":
- teleport player to {dspawn-7}
- else:
- send "{@NoDonor-msg}" to player
- if arg 1 are "{@donatorspawn-8}":
- if player have permissions "kitpvp.donator":
- teleport player to {dspawn-8}
- else:
- send "{@NoDonor-msg}" to player
- if arg 1 are "{@donatorspawn-9}":
- if player have permissions "kitpvp.donator":
- teleport player to {dspawn-9}
- else:
- send "{@NoDonor-msg}" to player
- if arg 1 are "{@donatorspawn-10}":
- if player have permissions "kitpvp.donator":
- teleport player to {dspawn-10}
- else:
- send "{@NoDonor-msg}" to player
- if arg 1 are "{@donatorspawn-11}":
- if player have permissions "kitpvp.donator":
- teleport player to {dspawn-11}
- else:
- send "{@NoDonor-msg}" to player
- if arg 1 are "{@donatorspawn-12}":
- if player have permissions "kitpvp.donator":
- teleport player to {dspawn-12}
- else:
- send "{@NoDonor-msg}" to player
- if arg 1 are "{@donatorspawn-13}":
- if player have permissions "kitpvp.donator":
- teleport player to {dspawn-13}
- else:
- send "{@NoDonor-msg}" to player
- command /setdonatorspawn [<text>] [<text>]:
- permission: kitpvp.admin
- executable by: players
- trigger:
- if arg 1 are "{@donatorspawn-1}":
- set {dspawn-1} to location of player
- send "&6Donator Spawn&9 {@donatorspawn-1} set to %location of player%!"
- if arg 1 are "{@donatorspawn-2}":
- set {dspawn-2} to location of player
- send "&6Donator Spawn &9 {@donatorspawn-2} set to %location of player%!"
- if arg 1 are "{@donatorspawn-3}":
- set {dspawn-3} to location of player
- send "&6Donator Spawn&9 {@donatorspawn-3} set to %location of player%!"
- if arg 1 are "{@donatorspawn-4}":
- set {dspawn-4} to location of player
- send "&6Donator Spawn&9 {@donatorspawn-4} set to %location of player%!"
- if arg 1 are "{@donatorspawn-5}":
- set {dspawn-5} to location of player
- send "&6Donator Spawn&9 {@donatorspawn-5} set to %location of player%!"
- if arg 1 are "{@donatorspawn-6}":
- set {dspawn-6} to location of player
- send "&6Donator Spawn&9 {@donatorspawn-6} set to %location of player%!"
- if arg 1 are "{@donatorspawn-7}":
- set {dspawn-7} to location of player
- send "&6Donator Spawn&9 {@donatorspawn-7} set to %location of player%!"
- if arg 1 are "{@donatorspawn-8}":
- set {dspawn-8} to location of player
- send "&6Donator Spawn&9 {@donatorspawn-8} set to %location of player%!"
- if arg 1 are "{@donatorspawn-9}":
- set {dspawn-9} to location of player
- send "&6Donator Spawn&9 {@donatorspawn-9} set to %location of player%!"
- if arg 1 are "{@donatorspawn-10}":
- set {dspawn-10} to location of player
- send "&6Donator Spawn&9 {@donatorspawn-10} set to %location of player%!"
- if arg 1 are "{@donatorspawn-11}":
- set {dspawn-11} to location of player
- send "&6Donator Spawn&9 {@donatorspawn-11} set to %location of player%!"
- if arg 1 are "{@donatorspawn-12}":
- set {dspawn-12} to location of player
- send "&6Donator Spawn&9 {@donatorspawn-12} set to %location of player%!"
- if arg 1 are "{@donatorspawn-13}":
- set {dspawn-13} to location of player
- send "&6Donator Spawn&9 {@donatorspawn-13} set to %location of player%!"
- #========================[ CLEAR ITEMS ]=========================#
- every {@Ci-time} minutes:
- loop entities in world {@Ci-world}:
- clear dropped Items
- broadcast "{@Ci-msg}"
- stop
- #========================[ PROTECTION ]=========================#
- on explode:
- cancel event
- on weather change to rain or thunder:
- cancel event
- on enderman pickup:
- cancel event
- on enderman place:
- cancel event
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement