Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #------------------------
- #Indstillinger i skriptet
- #------------------------
- options:
- prefix: &4[&cVagtMenu&4]&8
- permission: menu
- #--------------------------------
- #Ikke lav om på tingene nedenfor
- #Det foregår på eget ansvar!
- #--------------------------------
- #Alle rettigheder forbeholdt!
- #--------------------------------
- command /menu:
- permission: {@permission}
- trigger:
- message "&8&l||&4&l VAGTMENU&8&l || &cTjekker databasen!"
- wait 30 tick
- open chest with 3 rows named "&4&lVAGT MENU" to player
- format slot 11 of player with Potion of Healing named "&6» Buffs «" with lore "&cKlik her" to run [make player execute command "/buffs"]
- format slot 13 of player with diamond sword named "&6» Stats «" with lore "&4Død ➳ %{deaths.%player%}% ||&aDræbt ➳ %{kills.%player%}%" to close
- format slot 15 of player with Stick named "&c» Vagt Stav «" with lore "&c➳ Tag Din Stav" to run [make player execute command "/stick"]
- on death of player:
- victim is a player:
- attacker is a player:
- add 1 to {kills.%player%}
- on death:
- victim is a player:
- attacker is a player:
- add 1 to {deaths.%player%}
- command /buffs:
- permission: {@permission}
- trigger:
- open chest with 3 rows named "&b&lBUFFS" to player
- wait 0.1 seconds
- set {_p} to "%player%" parsed as player
- format slot 11 of player with Potion of Swiftness named "&b» Speed «" with lore "&4Speed Buff" to run [execute player command "/hurtig"]
- format slot 15 of player with Potion of Regeneration named "&6» Absorption «" with lore "&4Ekstra liv buff" to run [execute player command "/ekstraliv"]
- format slot 13 of player with Potion of Healing named "&c» Strenght «" with lore "&4Slå hårdere" to run [execute player command "/slaahardere"]
- format slot 22 of player with sugar named "&3Tilbage" with lore "&8<&m----" to run [execute player command "/menu"]
- command /hurtig:
- permission: {@permission}
- trigger:
- apply speed 2 to player for 100000 seconds
- command /slaahardere:
- permission: {@permission}
- trigger:
- apply strength 2 to player for 100000 seconds
- message "{@prefix} Du har fået strenght buff!"
- command /ekstraliv:
- permission: {@permission}
- trigger:
- apply absorption 2 to player for 100000 seconds
- message "{@prefix} du har fået absorption buff!"
- command /stick:
- trigger:
- if player has permission "{@permission}":
- give player a stick of knockback 5 named "4&lVAGTSTAV"
- else:
- message "Du har ikke adgang til den magiske pind!"
- on damage:
- if victim is a player:
- if attacker is a player:
- attacker is holding a stick named "4&lVAGTSTAV":
- if attacker has permission "{@permission}":
- send victim title "&cADVARSEL" with subtitle "&cGå venligtst væk fra %attacker%!" for 3 seconds
- apply potion of blindness of tier 1 to the victim for 3 seconds
- on sign change:
- line 1 is "vs"
- line 2 is "c"
- if player has permission "*":
- message "&3Du har lavet vagtshop skilt!"
- set 1st line to "&3VagtShop"
- set 2nd line to "&6I C"
- else:
- delete event-block
- give player a sign
- message "&3Du har ikke adgang til at lave en vagtshop!"
- on rightclick on sign:
- 1st line of clicked block is "&3VagtShop"
- 2nd line of clicked block is "&6I C"
- if player has permission "{@permission}":
- if player is holding air:
- open chest with 3 rows named "&3Upgrade dit gear" to player
- wait 1 tick
- format slot 10 of player with gold helmet named "&6Køb en guld hjelm" with lore "&3Pris:&b 1000" to run [make player execute command "/armor helmet"]
- format slot 12 of player with iron chestplate named "&6Køb en chestplate" with lore "&3Pris:&b 1000" to run [make player execute command "/armor chestplate"]
- format slot 14 of player with iron leggings named "&6Køb en legging" with lore "&3Pris:&b 1000" to run [make player execute command "/armor leggings"]
- format slot 16 of player with iron boots named "&6Køb en boot" with lore "&3Pris:&b 1000" to run [make player execute command "/armor boots"]
- format slot 21 of player with iron sword named "&6Køb et sword" with lore "&3Pris: &b1000" to run [make player execute command "/armor sword"]
- format slot 23 of player with bow named "&6Køb en bow" with lore "&3Pris: 1000" to run [make player execute command "/armor bow"]
- if player is holding a gold helmet:
- open chest with 3 rows named "&3Upgrade din Guld Hjelm" to player
- wait 1 tick
- format slot 13 of player with gold helmet named "&3Protection 1" with lore "&bDet koster 1k!" to close then run [make player execute command "/vagtshop hjelm 0"]
- if player is holding a gold helmet of protection 1:
- open chest with 3 rows named "&3Upgrade din Guld Hjelm" to player
- wait 1 tick
- format slot 13 of player with gold helmet named "&3Protection 2" with lore "&bDet koster 1k!" to close then run [make player execute command "/vagtshop hjelm 1"]
- if player is holding a gold helmet of protection 2:
- open chest with 3 rows named "&3Upgrade din Guld Hjem" to player
- wait 1 tick
- format slot 13 of player with gold helmet named "&3Protection 3" with lore "&bDet koster 1k!" to close then run [make player execute command "/vagtshop hjelm 2"]
- if player is holding a gold helmet of protection 3:
- open chest with 3 rows named "&3Upgrade din Guld Hjelm" to player
- wait 1 tick
- format slot 13 of player with gold helmet named "&3Protection 4" with lore "&bDet koster 1k!" to close then run [make player execute command "/vagtshop hjelm 3"]
- if player is holding a iron chestplate:
- open chest with 3 rows named "&3Upgrade din iron chestplate" to player
- wait 1 tick
- format slot 13 of player with iron chestplate named "&3Protection 1" with lore "&bDet koster 1k!" to close then run [make player execute command "/vagtshop chestplate 0"]
- if player is holding a iron chestplate of protection 1:
- open chest with 3 rows named "&3Upgrade din iron chestplate" to player
- wait 1 tick
- format slot 13 of player with iron chestplate named "&3Protection 2" with lore "&bDet koster 1k!" to close then run [make player execute command "/vagtshop chestplate 1"]
- if player is holding a iron chestplate of protection 2:
- open chest with 3 rows named "&3Upgrade din iron chestplate" to player
- wait 1 tick
- format slot 13 of player with iron chestplate named "&3Protection 3" with lore "&bDet koster 1k!" to close then run [make player execute command "/vagtshop chestplate 2"]
- if player is holding a iron chestplate of protection 3:
- open chest with 3 rows named "&3Upgrade din iron chestplate" to player
- wait 1 tick
- format slot 13 of player with iron chestplate named "&3Protection 4" with lore "&bDet koster 1k!" to close then run [make player execute command "/vagtshop chestplate 3"]
- if player is holding a iron leggings:
- open chest with 3 rows named "&3Upgrade din iron leggings" to player
- wait 1 tick
- format slot 13 of player with iron leggings named "&3Protection 1" with lore "&bDet koster 1k!" to close then run [make player execute command "/vagtshop leggings 0"]
- if player is holding a iron leggings of protection 1:
- open chest with 3 rows named "&3Upgrade din iron leggings" to player
- wait 1 tick
- format slot 13 of player with iron leggings named "&3Protection 2" with lore "&bDet koster 1k!" to close then run [make player execute command "/vagtshop leggings 1"]
- if player is holding a iron leggings of protection 2:
- open chest with 3 rows named "&3Upgrade din iron leggings" to player
- wait 1 tick
- format slot 13 of player with iron leggings named "&3Protection 3" with lore "&bDet koster 1k!" to close then run [make player execute command "/vagtshop leggings 2"]
- if player is holding a iron leggings of protection 3:
- open chest with 3 rows named "&3Upgrade din iron leggings" to player
- wait 1 tick
- format slot 13 of player with iron leggings named "&3Protection 4" with lore "&bDet koster 1k!" to close then run [make player execute command "/vagtshop leggings 3"]
- if player is holding a iron boots:
- open chest with 3 rows named "&3Upgrade din iron boots" to player
- wait 1 tick
- format slot 13 of player with iron boots named "&3Protection 1" with lore "&bDet koster 1k!" to close then run [make player execute command "/vagtshop boots 0"]
- if player is holding a iron boots of protection 1:
- open chest with 3 rows named "&3Upgrade din iron boots" to player
- wait 1 tick
- format slot 13 of player with iron boots named "&3Protection 2" with lore "&bDet koster 1k!" to close then run [make player execute command "/vagtshop boots 1"]
- if player is holding a iron boots of protection 2:
- open chest with 3 rows named "&3Upgrade din iron boots" to player
- wait 1 tick
- format slot 13 of player with iron boots named "&3Protection 3" with lore "&bDet koster 1k!" to close then run [make player execute command "/vagtshop boots 2"]
- if player is holding a iron boots of protection 3:
- open chest with 3 rows named "&3Upgrade din iron boots" to player
- wait 1 tick
- format slot 13 of player with iron boots named "&3Protection 4" with lore "&bDet koster 1k!" to close then run [make player execute command "/vagtshop boots 3"]
- if player is holding a iron sword:
- open chest with 3 rows named "&3Upgrade din iron sword" to player
- wait 1 tick
- format slot 13 of player with iron sword named "&3Sharpness 1" with lore "&bDet koster 1k!" to close then run [make player execute command "/vagtshop sword 0"]
- if player is holding a iron sword of sharpness 1:
- open chest with 3 rows named "&3Upgrade din iron sword" to player
- wait 1 tick
- format slot 13 of player with iron sword named "&3Sharpness 2" with lore "&bDet koster 1k!" to close then run [make player execute command "/vagtshop sword 1"]
- if player is holding a iron sword of sharpness 2:
- open chest with 3 rows named "&3Upgrade din iron sword" to player
- wait 1 tick
- format slot 13 of player with iron sword named "&3Sharpness 3" with lore "&bDet koster 1k!" to close then run [make player execute command "/vagtshop sword 2"]
- if player is holding a iron sword of sharpness 3:
- open chest with 3 rows named "&3Upgrade din iron sword" to player
- wait 1 tick
- format slot 13 of player with iron sword named "&3Sharpness 4" with lore "&bDet koster 1k!" to close then run [make player execute command "/vagtshop sword 3"]
- if player is holding a bow:
- open chest with 3 rows named "&3Upgrade din bow" to player
- wait 1 tick
- format slot 13 of player with bow named "&3Power 1" with lore "&bDet koster 1k!" to close then run [make player execute command "/vagtshop bow 0"]
- if player is holding a bow of power 1:
- open chest with 3 rows named "&3Upgrade din bow" to player
- wait 1 tick
- format slot 13 of player with bow named "&3Power 2" with lore "&bDet koster 1k!" to close then run [make player execute command "/vagtshop bow 1"]
- if player is holding a bow of power 2:
- open chest with 3 rows named "&3Upgrade din bow" to player
- wait 1 tick
- format slot 13 of player with bow named "&3Power 3" with lore "&bDet koster 1k!" to close then run [make player execute command "/vagtshop bow 2"]
- if player is holding a bow of power 3:
- open chest with 3 rows named "&3Upgrade din bow" to player
- wait 1 tick
- format slot 13 of player with bow named "&3Power 4" with lore "&bDet koster 1k!" to close then run [make player execute command "/vagtshop bow 3"]
- else:
- message "{@prefix} &3Du har ikke adgang til vagt shoppen!"
- command /armor [<text>]:
- permission: {@permission}
- trigger:
- if arg 1 is "helmet":
- if player's balance >= 1000:
- give player gold helmet named "&3VagtGear"
- remove 1000 from player's balance
- stop
- else:
- message "{@prefix} &3Du har ikke nok penge!"
- if arg 1 is "chestplate":
- if player's balance >= 1000:
- give player iron chestplate named "&3VagtGear"
- remove 1000 from player's balance
- stop
- else:
- message "{@prefix} &3Du har ikke nok penge!"
- if arg 1 is "leggings":
- if player's balance >= 1000:
- give player iron leggings named "&3VagtGear"
- remove 1000 from player's balance
- stop
- else:
- message "{@prefix} &3Du har ikke nok penge!"
- if arg 1 is "boots":
- if player's balance >= 1000:
- give player iron boots named "&3VagtGear"
- remove 1000 from player's balance
- stop
- else:
- message "{@prefix} &3Du har ikke nok penge!"
- if arg 1 is "sword":
- if player's balance >= 1000:
- give player iron sword named "&3VagtGear"
- remove 1000 from player's balance
- stop
- else:
- message "{@prefix} &3Du har ikke nok penge!"
- if arg 1 is "bow":
- if player's balance >= 1000:
- give player bow named "&3VagtGear"
- remove 1000 from player's balance
- stop
- else:
- message "{@prefix} &3Du har ikke nok penge!"
- command /vagtshop [<text>] [<text>]:
- permission: {@permission}
- trigger:
- if arg 1 is "hjelm":
- if arg 2 is "0":
- if player's balance >= 1000:
- remove gold helmet named "&3VagtGear" from player's inventory
- give player gold helmet of protection 1 named "&3VagtGear"
- remove 1000 from player's balance
- else:
- message "{@prefix} &3Du har ikke nok penge!"
- if arg 2 is "1":
- if player's balance >= 1000:
- remove gold helmet named "&3VagtGear" from player's inventory
- give player gold helmet of protection 2 named "&3VagtGear"
- remove 1000 from player's balance
- else:
- message "{@prefix} &3Du har ikke nok penge!"
- if arg 2 is "2":
- if player's balance >= 1000:
- remove gold helmet named "&3VagtGear" from player's inventory
- give player gold helmet of protection 3 named "&3VagtGear"
- remove 1000 from player's balance
- else:
- message "{@prefix} &3Du har ikke nok penge!"
- if arg 2 is "3":
- if player's balance >= 1000:
- remove gold helmet named "&3VagtGear" from player's inventory
- give player gold helmet of protection 4 named "&3VagtGear"
- remove 1000 from player's balance
- else:
- message "{@prefix} &3Du har ikke nok penge!"
- if arg 1 is "chestplate":
- if arg 2 is "0":
- if player's balance >= 1000:
- remove iron chestplate named "&3VagtGear" from player's inventory
- give player iron chestplate of protection 1 named "&3VagtGear"
- remove 1000 from player's balance
- else:
- message "{@prefix} &3Du har ikke nok penge!"
- if arg 2 is "1":
- if player's balance >= 1000:
- remove iron chestplate named "&3VagtGear" from player's inventory
- give player iron chestplate of protection 2 named "&3VagtGear"
- remove 1000 from player's balance
- else:
- message "{@prefix} &3Du har ikke nok penge!"
- if arg 2 is "2":
- if player's balance >= 1000:
- remove iron chestplate named "&3VagtGear" from player's inventory
- give player iron chestplate of protection 3 named "&3VagtGear"
- remove 1000 from player's balance
- else:
- message "{@prefix} &3Du har ikke nok penge!"
- if arg 2 is "3":
- if player's balance >= 1000:
- remove iron chestplate named "&3VagtGear" from player's inventory
- give player iron chestplate of protection 4 named "&3VagtGear"
- remove 1000 from player's balance
- else:
- message "{@prefix} &3Du har ikke nok penge!"
- if arg 1 is "leggings":
- if arg 2 is "0":
- if player's balance >= 1000:
- remove iron leggings named "&3VagtGear" from player's inventory
- give player iron leggings of protection 1 named "&3VagtGear"
- remove 1000 from player's balance
- else:
- message "{@prefix} &3Du har ikke nok penge!"
- if arg 2 is "1":
- if player's balance >= 1000:
- remove iron leggings named "&3VagtGear" from player's inventory
- give player iron leggings of protection 2 named "&3VagtGear"
- remove 1000 from player's balance
- else:
- message "{@prefix} &3Du har ikke nok penge!"
- if arg 2 is "2":
- if player's balance >= 1000:
- remove iron leggings named "&3VagtGear" from player's inventory
- give player iron leggings of protection 3 named "&3VagtGear"
- remove 1000 from player's balance
- else:
- message "{@prefix} &3Du har ikke nok penge!"
- if arg 2 is "3":
- if player's balance >= 1000:
- remove iron leggings named "&3VagtGear" from player's inventory
- give player iron leggings of protection 4 named "&3VagtGear"
- remove 1000 from player's balance
- else:
- message "{@prefix} &3Du har ikke nok penge!"
- if arg 1 is "boots":
- if arg 2 is "0":
- if player's balance >= 1000:
- remove iron boots named "&3VagtGear" from player's inventory
- give player iron boots of protection 1 named "&3VagtGear"
- remove 1000 from player's balance
- else:
- message "{@prefix} &3Du har ikke nok penge!"
- if arg 2 is "1":
- if player's balance >= 1000:
- remove iron boots named "&3VagtGear" from player's inventory
- give player iron boots of protection 2 named "&3VagtGear"
- remove 1000 from player's balance
- else:
- message "{@prefix} &3Du har ikke nok penge!"
- if arg 2 is "2":
- if player's balance >= 1000:
- remove iron boots named "&3VagtGear" from player's inventory
- give player iron boots of protection 3 named "&3VagtGear"
- remove 1000 from player's balance
- else:
- message "{@prefix} &3Du har ikke nok penge!"
- if arg 2 is "3":
- if player's balance >= 1000:
- remove iron boots named "&3VagtGear" from player's inventory
- give player iron boots of protection 4 named "&3VagtGear"
- remove 1000 from player's balance
- else:
- message "{@prefix} &3Du har ikke nok penge!"
- if arg 1 is "sword":
- if arg 2 is "0":
- if player's balance >= 1000:
- remove iron sword named "&3VagtGear" from player's inventory
- give player iron sword of sharpness 1 named "&3VagtGear"
- remove 1000 from player's balance
- else:
- message "{@prefix} &3Du har ikke nok penge!"
- if arg 2 is "1":
- if player's balance >= 1000:
- remove iron sword named "&3VagtGear" from player's inventory
- give player iron sword of sharpness 2 named "&3VagtGear"
- remove 1000 from player's balance
- else:
- message "{@prefix} &3Du har ikke nok penge!"
- if arg 2 is "2":
- if player's balance >= 1000:
- remove iron sword named "&3VagtGear" from player's inventory
- give player iron sword of sharpness 3 named "&3VagtGear"
- remove 1000 from player's balance
- else:
- message "{@prefix} &3Du har ikke nok penge!"
- if arg 2 is "3":
- if player's balance >= 1000:
- remove iron sword named "&3VagtGear" from player's inventory
- give player iron sword of sharpness 4 named "&3VagtGear"
- remove 1000 from player's balance
- else:
- message "{@prefix} &3Du har ikke nok penge!"
- if arg 1 is "bow":
- if arg 2 is "0":
- if player's balance >= 1000:
- remove bow named "&3VagtGear" from player's inventory
- give player bow of power 1 named "&3VagtGear"
- remove 1000 from player's balance
- else:
- message "{@prefix} &3Du har ikke nok penge!"
- if arg 2 is "1":
- if player's balance >= 1000:
- remove bow named "&3VagtGear" from player's inventory
- give player bow of power 2 named "&3VagtGear"
- remove 1000 from player's balance
- else:
- message "{@prefix} &3Du har ikke nok penge!"
- if arg 2 is "2":
- if player's balance >= 1000:
- remove bow named "&3VagtGear" from player's inventory
- give player bow of power 3 named "&3VagtGear"
- remove 1000 from player's balance
- else:
- message "{@prefix} &3Du har ikke nok penge!"
- if arg 2 is "3":
- if player's balance >= 1000:
- remove bow named "&3VagtGear" from player's inventory
- give player bow of power 4 named "&3VagtGear"
- remove 1000 from player's balance
- else:
- message "{@prefix} &3Du har ikke nok penge!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement