Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- script options:
- $ init com.mysql.jdbc.Driver
- $ db url jdbc:mysql://localhost:3306/Minecraft
- $ db username Minecraft
- $ db password Han9pizu0guertler
- # #########################################################################
- # +------------------------------------------------------+
- # | <~ Gun Game ~> |
- # +------------------------------------------------------+
- # Scripter:
- # lePoker
- # © Copyright by lePoker
- # #######################################################################################
- on load:
- register new shaped recipe for enchanted golden apple named "&6&lOP Apple" with lore "&7Heals you over time" using air, nether star, air, nether star, apple, nether star, air, nether star, air
- register new shaped recipe for name tag named "&4&lFluchtticket" with lore "&7-> &eRechtsklick zum benutzen &7<-" using flint, nether star, flint, nether star, compass, nether star, flint, nether star, flint
- register new shaped recipe for tnt named "&3&lTNT" with lore "&7-> &eRechtsklick zum benutzen &7<-" using air, gunpowder, air, gunpowder, emerald, gunpowder, air, gunpowder, air
- register new shaped recipe for blaze rod named "&6&lFirefly" with lore "&7Zünde deine Gegner an!" using air, nether star, air, nether star, emerald, nether star, air, nether star, air
- on consume:
- if item is enchanted golden apple named "&6&lOP Apple" with lore "&7Heals you over time":
- cancel event
- remove 1 of player's tool from player's tool
- apply absorption 5 to player for 30 seconds
- apply strength 1 to player for 10 seconds
- apply regeneration 5 to player for 30 seconds
- apply fire resistance 2 to player for 30 seconds
- if item is golden apple named "&a&lOP-APFEL" with lore "Notch Apfel":
- cancel event
- remove 1 of player's tool from player's tool
- apply absorption 5 to player for 30 seconds
- apply regeneration 5 to player for 30 seconds
- on craft a diamond hoe or a iron hoe or a wood hoe or a gold hoe:
- cancel event
- on server ping:
- if {Maintenance} is true:
- set motd to "&f[&4&lGun&f-&3&lGame&f] &c&lWartungsarbeiten"
- else:
- set motd to "&f[&4&lGun&f-&3&lGame&f] &b&lJoin Now <3"
- on join:
- send player title "&3Willkommen auf FeelPvP.eu, %player%!" with subtitle "&6Viel Spaß" for 8 seconds
- on first join:
- broadcast "&aDer Spieler %player% ist neu auf Gun-Game.de!"
- if player is in region "FirstJoin":
- teleport player to {spawn}
- # +------------------------------------------------------+
- # | <~ Clear all OP - Shit ~> |
- # +------------------------------------------------------+
- command /itemlist:
- permission: gg.admin
- trigger:
- send "%{items::*}%" to player
- command /resetitemlist:
- permission: gg.admin
- trigger:
- delete {items::*}
- command /additem:
- permission: gg.admin
- trigger:
- add the player's tool to {items::*}
- send "Item added to database" to player
- on inventory open:
- loop {items::*}:
- if helmet of player is loop-value:
- set helmet of player to air
- if chestplate of player is loop-value:
- set chestplate of player to air
- if leggings of player is loop-value:
- set leggings of player to air
- if boots of player is loop-value:
- set boots of player to air
- if player has loop-value:
- remove all loop-value from player
- on inventory close:
- loop {items::*}:
- if helmet of player is loop-value:
- set helmet of player to air
- if chestplate of player is loop-value:
- set chestplate of player to air
- if leggings of player is loop-value:
- set leggings of player to air
- if boots of player is loop-value:
- set boots of player to air
- if player has loop-value:
- remove all loop-value from player
- # +------------------------------------------------------+
- # | <~ ~~~~~~~~ ~> |
- # +------------------------------------------------------+
- on hunger bar change:
- cancel event
- on weather change to rain or thunder:
- cancel event
- on join:
- set join message to ""
- teleport player to {spawn}
- remove player from {GunGame.%{ns_Playing.%player%}%::*}
- delete {ns_Playing.%player%}
- if {ns_tempns_god.%player%} is set:
- delete {ns_tempns_god.%player%}
- send "[&4&lGun&f-&3&lGame&f] Welcome back %player%" to player
- if {mgc} is not 0:
- send "[&4&lGun&f-&3&lGame&f] &aGP werden &l%{mgc}%x &amultipliziert"
- on quit:
- set quit message to ""
- Delete {ns_god.%player%}
- Delete {ns_vanish.%player%}
- Delete {ns_fly.%player%}
- if player is in the region "spawn":
- remove player from {GunGame.%{ns_Playing.%player%}%::*}
- delete {ns_Playing.%player%}
- else:
- remove player from {GunGame.%{ns_Playing.%player%}%::*}
- delete {ns_Playing.%player%}
- kill the player
- on kick:
- remove event-player from {GunGame.%{ns_Playing.%event-player%}%::*}
- delete {ns_Playing.%event-player%}
- on place:
- if player's gamemode is not creative:
- cancel event
- on break:
- If player's gamemode is not creative:
- cancel event
- if line 1 of event-block is "&b[Gun-Game]" or "&bGP-Shop" or "&bGC-Shop":
- cancel event
- on skript start:
- if {mgc} is not set:
- set {mgc} to 0
- set {gaingc} to 2
- on damage:
- if {ns_tempns_god.%attacker%} is set:
- cancel event
- if {ns_tempns_god.%victim%} is set:
- cancel event
- if victim is a player:
- if attacker is a player:
- set {ns_lastkiller.%victim%} to attacker
- if damage cause is fall:
- cancel event
- on respawn:
- wait 5 tick
- if {GunGame.Maps::%{ns_Playing.%player%}%} is set:
- teleport player to {GunGame.Maps::%{ns_Playing.%player%}%}
- else:
- teleport player to {spawn}
- give player wooden sword with lore "&f[&4&lGun&f-&3&lGame&f]"
- on any movement:
- if player is in the region "spawn":
- wait 1 tick
- else:
- if {ns_god.%player%} is not set:
- if block at player is water:
- kill the player
- if {ns_moved.%player%} is "teleporting":
- delete {ns_moved.%player%}
- send "[&4&lGun&f-&3&lGame&f] &cTeleport aborted, don't move while teleporting" to player
- on drop:
- If player's gamemode is not creative:
- cancel event
- on pickup:
- If player's gamemode is not creative:
- cancel event
- # +------------------------------------------------------+
- # | <~ Commands ~> |
- # +------------------------------------------------------+
- command /sv <text>:
- permission: gg.admin
- trigger:
- if arg is not "Shop" or "Repair":
- send "Please just use Shop or Repair" to player
- stop
- if arg is "Shop":
- run player command "summon Villager ~ ~ ~ {CustomName:Shop,CustomNameVisible:1,Profession:1}" as op
- if arg is "Repair":
- run player command "summon Villager ~ ~ ~ {CustomName:Repair Man,CustomNameVisible:1,Profession:3}" as op
- command /bc <text>:
- permission: gg.admin
- usage: /bc <message>
- trigger:
- broadcast "[&4&lGun&f-&3&lGame&f] &f&l%arg%"
- command /server <text>:
- permission: gg.owner
- usage: /server <message>
- trigger:
- broadcast "&f[&4&lCONSOLE&f] &b&l%arg%"
- #command /tpall:
- # permission: gg.admin
- # trigger:
- # loop all players:
- # if {ns_InvStored.%loop-player%} is set:
- # run loop-player command "/storeinv" as op
- # remove loop-player from {GunGame.%{ns_Playing.%loop-player%}%::*}
- # delete {ns_Playing.%loop-player%}
- # teleport loop-player to player
- command /mgp <integer>:
- permission: gg.admin
- trigger:
- set {mgc} to argument
- send "[&4&lGun&f-&3&lGame&f] &aSet MGP to *%{mgc}%" to player
- if {mgc} > 1:
- broadcast "[&4&lGun&f-&3&lGame&f] &aGP werden nun mit %{mgc}% multipliziert"
- else:
- broadcast "[&4&lGun&f-&3&lGame&f] &cGP werden nicht mehr multipliziert"
- command /spawnall:
- executable by: Console
- trigger:
- loop all players:
- if {ns_InvStored.%loop-player%} is set:
- run loop-player command "/storeinv" as op
- remove loop-player from {GunGame.%{ns_Playing.%loop-player%}%::*}
- delete {ns_Playing.%loop-player%}
- teleport loop-player to {spawn}
- delete {ns_moved.%loop-player%}
- send "[&4&lGun&f-&3&lGame&f] &aYou were teleported to the spawn" to loop-player
- make console execute command "effect %loop-player% clear"
- command /spawn:
- trigger:
- if player has permission "gg.mod":
- if {ns_InvStored.%player%} is set:
- run player command "/storeinv" as op
- remove player from {GunGame.%{ns_Playing.%player%}%::*}
- delete {ns_Playing.%player%}
- teleport player to {spawn}
- delete {ns_moved.%player%}
- send "[&4&lGun&f-&3&lGame&f] &aYou were teleported to the spawn" to player
- make console execute command "effect %player% clear"
- else:
- if {ns_moved.%player%} is set:
- send "[&4&lGun&f-&3&lGame&f] &cYou are already teleporting..." to player
- stop
- send "[&4&lGun&f-&3&lGame&f] &aPlease wait 5 seconds and don't move" to player
- set {ns_moved.%player%} to "teleporting"
- wait 5 real seconds
- if {ns_moved.%player%} is "teleporting":
- if {ns_InvStored.%player%} is set:
- run player command "/storeinv" as op
- remove player from {GunGame.%{ns_Playing.%player%}%::*}
- delete {ns_Playing.%player%}
- teleport player to {spawn}
- delete {ns_moved.%player%}
- send "[&4&lGun&f-&3&lGame&f] &aYou were teleported to the spawn" to player
- make console execute command "effect %player% clear"
- command /lobby:
- trigger:
- send "[&4&lGun&f-&3&lGame&f] &4&lBitte nutze &c&l/spawn" to player
- command /kd <offlineplayer> [<int>] [<int>]:
- permission: gg.admin
- usage: /kd <name> <kills> <deaths>
- trigger:
- update "UPDATE GunGame SET kills = %arg-2% WHERE uuid= '%uuid of arg-1%';"
- update "UPDATE GunGame SET deaths = %arg-3% WHERE uuid= '%uuid of arg-1%';"
- send "[&4&lGun&f-&3&lGame&f] &aUpdated the K/D" to player
- # +------------------------------------------------------+
- # | <~ Level System ~> |
- # +------------------------------------------------------+
- on level change:
- if level of player > 0:
- if level of player < 31:
- # Clear the Players Inventory for New Items
- loop all items in the player's inventory:
- if loop-item is loop-item with lore "&f[&4&lGun&f-&3&lGame&f]":
- remove loop-item from player
- # Clear the Players Armor for New Items
- loop items of type iron armor and leather armor and chain armor and gold armor and diamond armor:
- if the player's helmet is loop-item with lore "&f[&4&lGun&f-&3&lGame&f]":
- set the player's helmet to air
- if the player's chestplate is loop-item with lore "&f[&4&lGun&f-&3&lGame&f]":
- set the player's chestplate to air
- if the player's leggings is loop-item with lore "&f[&4&lGun&f-&3&lGame&f]":
- set the player's leggings to air
- if the player's boots is loop-item with lore "&f[&4&lGun&f-&3&lGame&f]":
- set the player's boots to air
- wait 5 ticks
- if level of player is 1:
- give player wooden sword with lore "&f[&4&lGun&f-&3&lGame&f]"
- if level of player is 2:
- if the player's helmet is air:
- equip player with leather tunic with lore "&f[&4&lGun&f-&3&lGame&f]"
- give player 1 wooden sword with lore "&f[&4&lGun&f-&3&lGame&f]"
- give player 1 bow with lore "&f[&4&lGun&f-&3&lGame&f]"
- give player 16 arrow with lore "&f[&4&lGun&f-&3&lGame&f]"
- if level of player is 3:
- give player 1 stone sword with lore "&f[&4&lGun&f-&3&lGame&f]"
- if the player's chestplate is air:
- equip player with leather tunic with lore "&f[&4&lGun&f-&3&lGame&f]"
- if the player's leggings is air:
- equip player with leather leggings with lore "&f[&4&lGun&f-&3&lGame&f]"
- if level of player is 4:
- give player 1 stone sword with lore "&f[&4&lGun&f-&3&lGame&f]"
- if the player's leggings is air:
- equip player with chain leggings with lore "&f[&4&lGun&f-&3&lGame&f]"
- if the player's boots is air:
- equip player with chain boots with lore "&f[&4&lGun&f-&3&lGame&f]"
- if level of player is 5:
- give player 1 stone sword with lore "&f[&4&lGun&f-&3&lGame&f]"
- if the player's boots is air:
- equip player with golden boots with lore "&f[&4&lGun&f-&3&lGame&f]"
- if the player's leggings is air:
- equip player with golden leggings with lore "&f[&4&lGun&f-&3&lGame&f]"
- give player 1 golden apple
- if level of player is 6:
- give player 1 stone sword with lore "&f[&4&lGun&f-&3&lGame&f]"
- if the player's boots is air:
- equip player with golden boots with lore "&f[&4&lGun&f-&3&lGame&f]"
- if the player's leggings is air:
- equip player with golden leggings with lore "&f[&4&lGun&f-&3&lGame&f]"
- if the player's helmet is air:
- equip player with leather helmet with lore "&f[&4&lGun&f-&3&lGame&f]"
- if the player's chestplate is air:
- equip player with golden chestplate with lore "&f[&4&lGun&f-&3&lGame&f]"
- if level of player is 7:
- give player 1 iron sword with lore "&f[&4&lGun&f-&3&lGame&f]"
- if the player's chestplate is air:
- equip player with golden chestplate with lore "&f[&4&lGun&f-&3&lGame&f]"
- if the player's leggings is air:
- equip player with golden leggings with lore "&f[&4&lGun&f-&3&lGame&f]"
- if the player's boots is air:
- equip player with golden boots with lore "&f[&4&lGun&f-&3&lGame&f]"
- if the player's helmet is air:
- equip player with leather helmet with lore "&f[&4&lGun&f-&3&lGame&f]"
- if level of player is 8:
- give player 1 iron sword with lore "&f[&4&lGun&f-&3&lGame&f]"
- if the player's helmet is air:
- equip player with leather helmet with lore "&f[&4&lGun&f-&3&lGame&f]"
- if the player's chestplate is air:
- equip player with chain chestplate with lore "&f[&4&lGun&f-&3&lGame&f]"
- if the player's leggings is air:
- equip player with iron leggings with lore "&f[&4&lGun&f-&3&lGame&f]"
- if the player's boots is air:
- equip player with iron boots with lore "&f[&4&lGun&f-&3&lGame&f]"
- if level of player is 9:
- if the player's helmet is air:
- equip player with leather helmet with lore "&f[&4&lGun&f-&3&lGame&f]"
- give player 1 iron sword with lore "&f[&4&lGun&f-&3&lGame&f]"
- if the player's chestplate is air:
- equip player with iron chestplate with lore "&f[&4&lGun&f-&3&lGame&f]"
- if the player's leggings is air:
- equip player with golden leggings with lore "&f[&4&lGun&f-&3&lGame&f]"
- if the player's boots is air:
- equip player with iron boots with lore "&f[&4&lGun&f-&3&lGame&f]"
- if level of player is 10:
- give player 1 iron sword with lore "&f[&4&lGun&f-&3&lGame&f]"
- if the player's helmet is air:
- equip player with leather helmet with lore "&f[&4&lGun&f-&3&lGame&f]"
- if the player's chestplate is air:
- equip player with iron chestplate with lore "&f[&4&lGun&f-&3&lGame&f]"
- if the player's leggings is air:
- equip player with iron leggings with lore "&f[&4&lGun&f-&3&lGame&f]"
- if the player's boots is air:
- equip player with golden boots with lore "&f[&4&lGun&f-&3&lGame&f]"
- if level of player is 11:
- give player 1 iron sword with lore "&f[&4&lGun&f-&3&lGame&f]"
- give player 1 healing potion
- if the player's helmet is air:
- equip player with gold helmet with lore "&f[&4&lGun&f-&3&lGame&f]"
- if the player's chestplate is air:
- equip player with iron chestplate with lore "&f[&4&lGun&f-&3&lGame&f]"
- if the player's leggings is air:
- equip player with iron leggings with lore "&f[&4&lGun&f-&3&lGame&f]"
- if the player's boots is air:
- equip player with iron boots with lore "&f[&4&lGun&f-&3&lGame&f]"
- if level of player is 12:
- give player 1 iron sword with lore "&f[&4&lGun&f-&3&lGame&f]"
- if the player's helmet is air:
- equip player with gold helmet with lore "&f[&4&lGun&f-&3&lGame&f]"
- if the player's chestplate is air:
- equip player with iron chestplate with lore "&f[&4&lGun&f-&3&lGame&f]"
- if the player's leggings is air:
- equip player with iron leggings with lore "&f[&4&lGun&f-&3&lGame&f]"
- if the player's boots is air:
- equip player with gold boots with lore "&f[&4&lGun&f-&3&lGame&f]"
- if level of player is 13:
- give player 1 iron sword with lore "&f[&4&lGun&f-&3&lGame&f]"
- if the player's helmet is air:
- equip player with gold helmet with lore "&f[&4&lGun&f-&3&lGame&f]"
- if the player's chestplate is air:
- equip player with iron chestplate with lore "&f[&4&lGun&f-&3&lGame&f]"
- if the player's leggings is air:
- equip player with iron leggings with lore "&f[&4&lGun&f-&3&lGame&f]"
- if the player's boots is air:
- equip player with iron boots with lore "&f[&4&lGun&f-&3&lGame&f]"
- if level of player is 14:
- give player 1 iron sword of sharpness 1 with lore "&f[&4&lGun&f-&3&lGame&f]"
- if the player's helmet is air:
- equip player with gold helmet with lore "&f[&4&lGun&f-&3&lGame&f]"
- if the player's chestplate is air:
- equip player with iron chestplate with lore "&f[&4&lGun&f-&3&lGame&f]"
- if the player's leggings is air:
- equip player with iron leggings with lore "&f[&4&lGun&f-&3&lGame&f]"
- if the player's boots is air:
- equip player with gold boots with lore "&f[&4&lGun&f-&3&lGame&f]"
- if level of player is 15:
- give player 1 iron sword of sharpness 1 with lore "&f[&4&lGun&f-&3&lGame&f]"
- give player 1 iron hoe named "&eIron Shooter" with lore "&f[&4&lGun&f-&3&lGame&f]"
- if the player's helmet is air:
- equip player with gold helmet with lore "&f[&4&lGun&f-&3&lGame&f]"
- if the player's chestplate is air:
- equip player with iron chestplate with lore "&f[&4&lGun&f-&3&lGame&f]"
- if the player's leggings is air:
- equip player with iron leggings with lore "&f[&4&lGun&f-&3&lGame&f]"
- if the player's boots is air:
- equip player with gold boots with lore "&f[&4&lGun&f-&3&lGame&f]"
- if level of player is 16:
- give player 1 iron sword of sharpness 1 with lore "&f[&4&lGun&f-&3&lGame&f]"
- give player 1 splash potion of healing with lore "&f[&4&lGun&f-&3&lGame&f]"
- if the player's helmet is air:
- equip player with iron helmet with lore "&f[&4&lGun&f-&3&lGame&f]"
- if the player's chestplate is air:
- equip player with iron chestplate of protection 1 with lore "&f[&4&lGun&f-&3&lGame&f]"
- if the player's leggings is air:
- equip player with iron leggings with lore "&f[&4&lGun&f-&3&lGame&f]"
- if the player's boots is air:
- equip player with gold boots with lore "&f[&4&lGun&f-&3&lGame&f]"
- if level of player is 17:
- give player 1 iron sword of sharpness 1 with lore "&f[&4&lGun&f-&3&lGame&f]"
- if the player's helmet is air:
- equip player with diamond helmet with lore "&f[&4&lGun&f-&3&lGame&f]"
- if the player's chestplate is air:
- equip player with iron chestplate of protection 1 with lore "&f[&4&lGun&f-&3&lGame&f]"
- if the player's leggings is air:
- equip player with iron leggings with lore "&f[&4&lGun&f-&3&lGame&f]"
- if the player's boots is air:
- equip player with iron boots of fire protection 1 with lore "&f[&4&lGun&f-&3&lGame&f]"
- if level of player is 18:
- give player 1 iron sword of sharpness 1 and knockback 2 with lore "&f[&4&lGun&f-&3&lGame&f]"
- if the player's helmet is air:
- equip player with iron helmet with lore "&f[&4&lGun&f-&3&lGame&f]"
- if the player's chestplate is air:
- equip player with iron chestplate of protection 2 with lore "&f[&4&lGun&f-&3&lGame&f]"
- if the player's leggings is air:
- equip player with iron leggings of protection 1 with lore "&f[&4&lGun&f-&3&lGame&f]"
- if the player's boots is air:
- equip player with iron boots of fire protection 1 with lore "&f[&4&lGun&f-&3&lGame&f]"
- if level of player is 19:
- give player 1 iron sword of sharpness 1 and knockback 1 with lore "&f[&4&lGun&f-&3&lGame&f]"
- if the player's helmet is air:
- equip player with iron helmet with lore "&f[&4&lGun&f-&3&lGame&f]"
- if the player's chestplate is air:
- equip player with iron chestplate of protection 2 with lore "&f[&4&lGun&f-&3&lGame&f]"
- if the player's leggings is air:
- equip player with iron leggings of fire protection 2 with lore "&f[&4&lGun&f-&3&lGame&f]"
- if the player's boots is air:
- equip player with iron boots of fire protection 2 with lore "&f[&4&lGun&f-&3&lGame&f]"
- if level of player is 20:
- give player 1 iron sword of sharpness 1 and knockback 2 with lore "&f[&4&lGun&f-&3&lGame&f]"
- give player 1 iron hoe named "&eIron Shooter" with lore "&f[&4&lGun&f-&3&lGame&f]"
- give player 1 ghast tear named "&ePusher" with lore "&f[&4&lGun&f-&3&lGame&f]"
- if the player's helmet is air:
- equip player with iron helmet of protection 1 with lore "&f[&4&lGun&f-&3&lGame&f]"
- if the player's chestplate is air:
- equip player with iron chestplate of protection 2 and fire protection 1 with lore "&f[&4&lGun&f-&3&lGame&f]"
- if the player's leggings is air:
- equip player with iron leggings of protection 1 with lore "&f[&4&lGun&f-&3&lGame&f]"
- if the player's boots is air:
- equip player with gold boots of fire protection 2 with lore "&f[&4&lGun&f-&3&lGame&f]"
- if level of player is 21:
- give player 1 iron sword of sharpness 1 and knockback 2 with lore "&f[&4&lGun&f-&3&lGame&f]"
- give player 1 healing potion with lore "&f[&4&lGun&f-&3&lGame&f]"
- if the player's helmet is air:
- equip player with diamond helmet with lore "&f[&4&lGun&f-&3&lGame&f]"
- if the player's chestplate is air:
- equip player with iron chestplate of protection 2 and fire protection 1 with lore "&f[&4&lGun&f-&3&lGame&f]"
- if the player's leggings is air:
- equip player with iron leggings of protection 1 with lore "&f[&4&lGun&f-&3&lGame&f]"
- if the player's boots is air:
- equip player with gold boots of protection 1 with lore "&f[&4&lGun&f-&3&lGame&f]"
- if level of player is 22:
- apply speed 1 to player for 20 seconds
- give player 1 iron sword of sharpness 2 and knockback 2 with lore "&f[&4&lGun&f-&3&lGame&f]"
- give player 1 golden apple
- if the player's helmet is air:
- equip player with diamond helmet with lore "&f[&4&lGun&f-&3&lGame&f]"
- if the player's chestplate is air:
- equip player with iron chestplate of protection 2 and fire protection 1 with lore "&f[&4&lGun&f-&3&lGame&f]"
- if the player's leggings is air:
- equip player with iron leggings of protection 1 with lore "&f[&4&lGun&f-&3&lGame&f]"
- if the player's boots is air:
- equip player with gold boots of protection 1 with lore "&f[&4&lGun&f-&3&lGame&f]"
- if level of player is 23:
- give player 1 iron sword of sharpness 1 and knockback 2 with lore "&f[&4&lGun&f-&3&lGame&f]"
- if the player's helmet is air:
- equip player with diamond helmet with lore "&f[&4&lGun&f-&3&lGame&f]"
- if the player's chestplate is air:
- equip player with iron chestplate of protection 2 and fire protection 1 with lore "&f[&4&lGun&f-&3&lGame&f]"
- if the player's leggings is air:
- equip player with iron leggings of protection 2 with lore "&f[&4&lGun&f-&3&lGame&f]"
- if the player's boots is air:
- equip player with iron boots of protection 1 and fire protection 1 with lore "&f[&4&lGun&f-&3&lGame&f]"
- if level of player is 24:
- give player 1 iron sword of sharpness 2 and knockback 2 with lore "&f[&4&lGun&f-&3&lGame&f]"
- if the player's helmet is air:
- equip player with diamond helmet with lore "&f[&4&lGun&f-&3&lGame&f]"
- if the player's chestplate is air:
- equip player with iron chestplate of protection 2 and fire protection 1 with lore "&f[&4&lGun&f-&3&lGame&f]"
- if the player's leggings is air:
- equip player with iron leggings of protection 1 with lore "&f[&4&lGun&f-&3&lGame&f]"
- if the player's boots is air:
- equip player with iron boots of protection 1 with lore "&f[&4&lGun&f-&3&lGame&f]"
- if level of player is 25:
- apply regeneration 1 to player for 5 seconds
- apply speed 1 to player for 25 seconds
- give player 1 iron sword of sharpness 1 and knockback 2 with lore "&f[&4&lGun&f-&3&lGame&f]"
- if the player's helmet is air:
- equip player with diamond helmet with lore "&f[&4&lGun&f-&3&lGame&f]"
- if the player's chestplate is air:
- equip player with iron chestplate of protection 2 and fire protection 1 with lore "&f[&4&lGun&f-&3&lGame&f]"
- if the player's leggings is air:
- equip player with iron leggings of protection 1 with lore "&f[&4&lGun&f-&3&lGame&f]"
- if the player's boots is air:
- equip player with iron boots of protection 1 and fire protection 1 with lore "&f[&4&lGun&f-&3&lGame&f]"
- if level of player is 26:
- give player 1 iron sword of sharpness 2 and knockback 2 with lore "&f[&4&lGun&f-&3&lGame&f]"
- give player iron hoe named "&eIron Shooter" with lore "&f[&4&lGun&f-&3&lGame&f]"
- give player 1 splash potion of healing 2 with lore "&f[&4&lGun&f-&3&lGame&f]"
- if the player's helmet is air:
- equip player with diamond helmet with lore "&f[&4&lGun&f-&3&lGame&f]"
- if the player's chestplate is air:
- equip player with iron chestplate of protection 2 and fire protection 2 with lore "&f[&4&lGun&f-&3&lGame&f]"
- if the player's leggings is air:
- equip player with iron leggings of protection 2 with lore "&f[&4&lGun&f-&3&lGame&f]"
- if the player's boots is air:
- equip player with iron boots of protection 1 and fire protection 1 with lore "&f[&4&lGun&f-&3&lGame&f]"
- if level of player is 27:
- give player 1 iron sword of sharpness 2 and knockback 2 with lore "&f[&4&lGun&f-&3&lGame&f]"
- give player 1 bow of power 1 with lore "&f[&4&lGun&f-&3&lGame&f]"
- if the player's helmet is air:
- equip player with diamond helmet of protection 1 with lore "&f[&4&lGun&f-&3&lGame&f]"
- if the player's chestplate is air:
- equip player with iron chestplate of protection 2 and fire protection 2 with lore "&f[&4&lGun&f-&3&lGame&f]"
- if the player's leggings is air:
- equip player with iron leggings of protection 2 with lore "&f[&4&lGun&f-&3&lGame&f]"
- if the player's boots is air:
- equip player with iron boots of protection 1 and fire protection 2 with lore "&f[&4&lGun&f-&3&lGame&f]"
- if level of player is 28:
- give player 1 iron sword of sharpness 2 and knockback 2 with lore "&f[&4&lGun&f-&3&lGame&f]"
- give player 1 golden apple with lore "&f[&4&lGun&f-&3&lGame&f]"
- give player 1 bow of power 2 with lore "&f[&4&lGun&f-&3&lGame&f]"
- if the player's helmet is air:
- equip player with diamond helmet of protection 1 with lore "&f[&4&lGun&f-&3&lGame&f]"
- if the player's chestplate is air:
- equip player with iron chestplate of protection 2 and fire protection 2 with lore "&f[&4&lGun&f-&3&lGame&f]"
- if the player's leggings is air:
- equip player with iron leggings of protection 2 with lore "&f[&4&lGun&f-&3&lGame&f]"
- if the player's boots is air:
- equip player with iron boots of protection 3 and fire protection 3 with lore "&f[&4&lGun&f-&3&lGame&f]"
- if level of player is 29:
- give player 1 iron sword of sharpness 2 and knockback 2 with lore "&f[&4&lGun&f-&3&lGame&f]"
- give player 1 bow of power 2 with lore "&f[&4&lGun&f-&3&lGame&f]"
- if the player's helmet is air:
- equip player with diamond helmet of protection 1 with lore "&f[&4&lGun&f-&3&lGame&f]"
- if the player's chestplate is air:
- equip player with iron chestplate of protection 2 and fire protection 2 with lore "&f[&4&lGun&f-&3&lGame&f]"
- if the player's leggings is air:
- equip player with iron leggings of protection 3 with lore "&f[&4&lGun&f-&3&lGame&f]"
- if the player's boots is air:
- equip player with iron boots of protection 3 and fire protection 3 with lore "&f[&4&lGun&f-&3&lGame&f]"
- if level of player is 30:
- give player 1 iron sword of sharpness 2 and knockback 2 with lore "&f[&4&lGun&f-&3&lGame&f]"
- give player 1 bow of power 2 with lore "&f[&4&lGun&f-&3&lGame&f]"
- give player 1 healing potion 2
- give player 1 golden apple
- apply speed 1 to player for 30 seconds
- apply regeneration 1 to player for 7 seconds
- give player 1 ghast tear named "&ePusher" with lore "&f[&4&lGun&f-&3&lGame&f]"
- if the player's helmet is air:
- equip player with diamond helmet of protection 1 with lore "&f[&4&lGun&f-&3&lGame&f]"
- if the player's chestplate is air:
- equip player with iron chestplate of protection 2 and fire protection 2 with lore "&f[&4&lGun&f-&3&lGame&f]"
- if the player's leggings is air:
- equip player with iron leggings of protection 3 with lore "&f[&4&lGun&f-&3&lGame&f]"
- if the player's boots is air:
- equip player with iron boots of protection 3 and fire protection 3 with lore "&f[&4&lGun&f-&3&lGame&f]"
- give player 16 arrow with lore "&f[&4&lGun&f-&3&lGame&f]"
- if level of player < 30:
- give player bow with lore "&f[&4&lGun&f-&3&lGame&f]"
- send "[&4&lGun&f-&3&lGame&f] &6&lYou are now level &c%level of player%" to player
- on death:
- # Other Stuff
- clear drops
- set death message to ""
- //play "GHAST_FIREBALL" to {ns_lastkiller.%victim%} at volume 1
- # Attacker Stuff
- if attacker is victim:
- stop
- if {mgc} is 0:
- if {ns_lastkiller.%victim%} is set:
- set {gaingc} to level of victim+2
- make console execute command "gp add %{ns_lastkiller.%victim%}% %{gaingc}%"
- send "[&4&lGun&f-&3&lGame&f] &aYou received %{gaingc}% GP" to {ns_lastkiller.%victim%}
- send "[&4&lGun&f-&3&lGame&f] &aYou killed: &e%victim%" to {ns_lastkiller.%victim%}
- apply regeneration 5 to attacker for 2 seconds
- else:
- set {gaingc} to level of victim+2*{mgc}
- #set {gaingc} to 2*{mgc}
- if {ns_lastkiller.%victim%} is set:
- make console execute command "gp add %{ns_lastkiller.%victim%}% %{gaingc}%"
- send "[&4&lGun&f-&3&lGame&f] &aYou received %{gaingc}% GP" to {ns_lastkiller.%victim%}
- send "[&4&lGun&f-&3&lGame&f] &aYou killed: &e%victim%" to {ns_lastkiller.%victim%}
- apply regeneration 5 to attacker for 2 seconds
- if victim is a player:
- if {ns_lastkiller.%victim%} is set:
- increase the attacker's level by 1
- set {ns_Deaths.%{ns_lastkiller.%victim%}%} to the first element out of objects in column "deaths" from result of query "SELECT `deaths` FROM `GunGame` WHERE `uuid` = ""%uuid of {ns_lastkiller.%victim%}%""" and close
- set {ns_Kills.%{ns_lastkiller.%victim%}%} to the first element out of objects in column "kills" from result of query "SELECT `kills` FROM `GunGame` WHERE `uuid` = ""%uuid of {ns_lastkiller.%victim%}%""" and close
- increase {ns_Kills.%{ns_lastkiller.%victim%}%} by 1
- make console execute command "kd %{ns_lastkiller.%victim%}% %{ns_Kills.%{ns_lastkiller.%victim%}%}% %{ns_Deaths.%{ns_lastkiller.%victim%}%}%"
- delete {ns_Deaths.%{ns_lastkiller.%victim%}%}
- delete {ns_Kills.%{ns_lastkiller.%victim%}%}
- # Victim Stuff
- send "[&4&lGun&f-&3&lGame&f] &cYou lost 1 GP" to victim
- send "[&4&lGun&f-&3&lGame&f] &cYou got killed by: &e%{ns_lastkiller.%victim%}%" to victim
- make console execute command "gp remove %victim% 1"
- set {ns_Deaths.%victim%} to the first element out of objects in column "deaths" from result of query "SELECT `deaths` FROM `GunGame` WHERE `uuid` = ""%uuid of victim%""" and close
- set {ns_Kills.%victim%} to the first element out of objects in column "kills" from result of query "SELECT `kills` FROM `GunGame` WHERE `uuid` = ""%uuid of victim%""" and close
- increase {ns_Deaths.%victim%} by 1
- make console execute command "kd %victim% %{ns_Kills.%victim%}% %{ns_Deaths.%victim%}%"
- delete {ns_Deaths.%victim%}
- delete {ns_Kills.%victim%}
- delete {ns_spawnedwolf.%victim%}
- # Wolf stuff
- if victim is wolf:
- loop all players:
- if name of victim is "%name of loop-player%'s Wolf":
- remove 1 from {ns_spawnedwolf.%loop-player%}
- delete {ns_lastkiller.%victim%}
- # +------------------------------------------------------+
- # | <~ Map System ~> |
- # +------------------------------------------------------+
- command /map <text> [<text>]:
- permission: gg.admin
- usage: /map <close/open> <map name>
- trigger:
- if argument-1 is "close":
- if argument-2 is set:
- loop {GG.%arg-2%::*}:
- remove loop-value from {GG.%{ns_Playing.%loop-value%}%::*}
- delete {ns_Playing.%loop-value%}
- teleport loop-value to {spawn}
- delete {GG.%arg-2%::*}
- set line 4 of block at {GG::locs::%argument-2%} to "&4|Closed|"
- send "[&4&lGun&f-&3&lGame&f] &cMap %arg-2% closed" to player
- stop
- if argument-1 is "open":
- if argument-2 is set:
- loop {GG.%arg-2%::*}:
- remove loop-value from {GG.%{ns_Playing.%loop-value%}%::*}
- delete {ns_Playing.%loop-value%}
- teleport loop-value to {spawn}
- delete {GG.%arg-2%::*}
- set line 4 of block at {GG::locs::%argument-2%} to "&a:Bereit:"
- send "[&4&lGun&f-&3&lGame&f] &aMap %arg-2% openned" to player
- stop
- if argument-1 is "NoDia":
- if argument-2 is set:
- loop {GG.%arg-2%::*}:
- remove loop-value from {GG.%{ns_Playing.%loop-value%}%::*}
- delete {ns_Playing.%loop-value%}
- teleport loop-value to {spawn}
- delete {GG.%arg-2%::*}
- set line 4 of block at {GG::locs::%argument-2%} to "&a:NoDia:"
- send "[&4&lGun&f-&3&lGame&f] &aMap %arg-2% redefined" to player
- stop
- if argument-1 is "OP-War":
- if argument-2 is set:
- loop {GG.%arg-2%::*}:
- remove loop-value from {GG.%{ns_Playing.%loop-value%}%::*}
- delete {ns_Playing.%loop-value%}
- teleport loop-value to {spawn}
- delete {GG.%arg-2%::*}
- set line 4 of block at {GG::locs::%argument-2%} to "&a:OP-War:"
- send "[&4&lGun&f-&3&lGame&f] &aMap %arg-2% redefined" to player
- stop
- command /delsign <text>:
- permission: gg.admin
- trigger:
- set block at {GG::locs::%argument%} to air
- delete {GG::locs::%argument%}
- send "[&4&lGun&f-&3&lGame&f] &cSign deleted" to player
- command /setsign <text>:
- permission: gg.admin
- trigger:
- set {GG::locs::%argument%} to location of target block
- set line 1 of target block to "&b[Gun-Game]"
- set line 2 of target block to "%Argument%"
- send "[&4&lGun&f-&3&lGame&f] &aSign created" to player
- command /tpmap <text>:
- permission: gg.mod
- trigger:
- teleport player to {GG.Maps::%argument%}
- command /setmspawn <text>:
- permission: gg.admin
- description: Sets an spawn for an map
- usage: /setmspawn <mapname>
- trigger:
- set {GG.Maps::%argument 1%} to location of player
- send "Spawn set" to player
- command /delmspawn <text>:
- permission: gg.admin
- trigger:
- delete {GG.Maps::%argument 1%}
- send "MapSpawn deleted" to player
- command /clearmap <text>:
- permission: gg.admin
- trigger:
- if arg is "all":
- loop {maplist::*}:
- loop {GG.%loop-value%::*}:
- remove loop-value-2 from {GG.%{ns_Playing.%loop-value-2%}%::*}
- delete {ns_Playing.%loop-value-2%}
- teleport loop-value-2 to {spawn}
- delete {GG.%loop-value-1%::*}
- send "[&4&lGun&f-&3&lGame&f] &aMap cleared"
- stop
- loop {GG.%arg%::*}:
- remove loop-value from {GG.%{ns_Playing.%loop-value%}%::*}
- delete {ns_Playing.%loop-value%}
- teleport loop-value to {spawn}
- delete {GG.%arg%::*}
- send "[&4&lGun&f-&3&lGame&f] &aMap cleared"
- command /adddia:
- permission: gg.owner
- trigger:
- add player's tool to {DiaList::*}
- send "Added" to player
- on right click on sign:
- if {ns_tempns_god.%player%} is set:
- delete {ns_tempns_god.%player%}
- if line 1 is "&b[Gun-Game]":
- if line 4 is "&4|Closed|":
- if player has permission "gg.supp":
- send "[&4&lGun&f-&3&lGame&f] &cThis map is closed for players..." to player
- teleport player to {GG.Maps::%line 2%}
- add player to {GG.%line 2%::*}
- set {ns_Playing.%player%} to line 2
- else:
- send "[&4&lGun&f-&3&lGame&f] &cThis map is closed for players..." to player
- stop
- if line 4 is "&a:NoDia:":
- # Check if player has Diamond Items
- if player has a diamond sword or diamond shovel or diamond pickaxe or diamond axe or diamond hoe or diamond helmet or diamond chestplate or diamond leggings or diamond boots or diamond:
- send "[&4&lGun&f-&3&lGame&f] &cAuf dieser map sind keine Dia-Sachen erlaubt"
- stop
- if helmet of player is diamond helmet:
- send "[&4&lGun&f-&3&lGame&f] &cAuf dieser map sind keine Dia-Sachen erlaubt"
- stop
- if chestplate of player is diamond chestplate:
- send "[&4&lGun&f-&3&lGame&f] &cAuf dieser map sind keine Dia-Sachen erlaubt"
- stop
- if leggings of player is diamond leggings:
- send "[&4&lGun&f-&3&lGame&f] &cAuf dieser map sind keine Dia-Sachen erlaubt"
- stop
- if boots of player is diamond boots:
- send "[&4&lGun&f-&3&lGame&f] &cAuf dieser map sind keine Dia-Sachen erlaubt"
- stop
- # Send Player to the map
- # if player has permission "gg.supp":
- # send "[&4&lGun&f-&3&lGame&f] &cDieser Modus ist für normale Spieler gesperrt" to player
- #else:
- # send "[&4&lGun&f-&3&lGame&f] &cDieser Modus wird noch aufgebaut" to player
- # stop
- if line 4 is "&a:OP-War:":
- if player has permission "gg.supp":
- send "[&4&lGun&f-&3&lGame&f] &cDieser Modus ist für normale Spieler gesperrt" to player
- if {ns_InvStored.%player%} is not set:
- run player command "/storeinv" as op
- else:
- send "[&4&lGun&f-&3&lGame&f] &cDieser Modus wird noch aufgebaut" to player
- stop
- if line 2 is set:
- if line 3 is "&f16 / 16":
- send "[&4&lGun&f-&3&lGame&f] &cThis map is full" to player
- else:
- teleport player to {GG.Maps::%line 2%}
- add player to {GG.%line 2%::*}
- set {ns_Playing.%player%} to line 2
- every 1 seconds:
- loop {GG::locs::*}:
- set line 3 of block at loop-value to "&f%size of {GG.%loop-index%::*}% / 16"
- if line 3 of block at loop-value is "16 / 16":
- if line 4 of block at loop-value is not "&c|Closed|":
- set line 4 of block at loop-value to "&c:Full:"
- else:
- if line 4 of block at loop-value is "&c:Full:":
- set line 4 of block at loop-value to "&a:Bereit:"
- # +------------------------------------------------------+
- # | <~ Items ~> |
- # +------------------------------------------------------+
- on projectile hit:
- projectile is arrow:
- delete entity
- on place tnt:
- cancel event
- command /wolf <player>:
- trigger:
- if {ns_spawnedwolf.%argument%} is 10:
- send "[&4&lGun&f-&3&lGame&f] &cYou cant spawn more..." to argument
- stop
- spawn wolf at location of the argument
- set the owner of spawned entity to argument
- set name of spawned entity to "%name of argument%'s Wolf"
- show mob spawner flames at the argument
- remove 1 bone from argument
- play raw sound "mob.wolf.bark" at argument with pitch 1 volume 100
- add 1 to {ns_spawnedwolf.%argument%}
- on shoot:
- shooter is player:
- shooter is holding a golden hoe:
- ignite the projectile
- on right click:
- if player is in the region "spawn":
- if player is holding a name tag or iron hoe or golden hoe or diamond hoe or bone or ghast tear or wooden hoe or tnt or blaze rod:
- send "[&4&lGun&f-&3&lGame&f] &cDu kannst das Item hier nicht nutzen!" to player
- stop
- if player is in the region "schachbrett_spawn":
- if player is holding a name tag or iron hoe or golden hoe or diamond hoe or bone or ghast tear or wooden hoe or tnt or blaze rod:
- send "[&4&lGun&f-&3&lGame&f] &cDu kannst das Item hier nicht nutzen!" to player
- stop
- if player is in the region "ameisenfarm_spawn":
- if player is holding a name tag or iron hoe or golden hoe or diamond hoe or bone or ghast tear or wooden hoe or tnt or blaze rod:
- send "[&4&lGun&f-&3&lGame&f] &cDu kannst das Item hier nicht nutzen!" to player
- stop
- if player is in the region "jahreszeiten_spawn":
- if player is holding a name tag or iron hoe or golden hoe or diamond hoe or bone or ghast tear or wooden hoe or tnt or blaze rod:
- send "[&4&lGun&f-&3&lGame&f] &cDu kannst das Item hier nicht nutzen!" to player
- stop
- if player is in the region "kreuzung_spawn":
- if player is holding a name tag or iron hoe or golden hoe or diamond hoe or bone or ghast tear or wooden hoe or tnt or blaze rod:
- send "[&4&lGun&f-&3&lGame&f] &cDu kannst das Item hier nicht nutzen!" to player
- stop
- if player is in the region "flauschi_spawn":
- if player is holding a name tag or iron hoe or golden hoe or diamond hoe or bone or ghast tear or wooden hoe or tnt or blaze rod:
- send "[&4&lGun&f-&3&lGame&f] &cDu kannst das Item hier nicht nutzen!" to player
- stop
- if player is in the region "bauschi_spawn":
- if player is holding a name tag or iron hoe or golden hoe or diamond hoe or bone or ghast tear or wooden hoe or tnt or blaze rod:
- send "[&4&lGun&f-&3&lGame&f] &cDu kannst das Item hier nicht nutzen!" to player
- stop
- if player is in the region "krauschi_spawn":
- if player is holding a name tag or iron hoe or golden hoe or diamond hoe or bone or ghast tear or wooden hoe or tnt or blaze rod:
- send "[&4&lGun&f-&3&lGame&f] &cDu kannst das Item hier nicht nutzen!" to player
- stop
- if player is in the region "villagespawn":
- if player is holding a name tag or iron hoe or golden hoe or diamond hoe or bone or ghast tear or wooden hoe or tnt or blaze rod:
- send "[&4&lGun&f-&3&lGame&f] &cDu kannst das Item hier nicht nutzen!" to player
- stop
- if player is in the region "woolwars_spawn":
- if player is holding a name tag or iron hoe or golden hoe or diamond hoe or bone or ghast tear or wooden hoe or tnt or blaze rod:
- send "[&4&lGun&f-&3&lGame&f] &cDu kannst das Item hier nicht nutzen!" to player
- stop
- if player is in the region "woodan_spawn":
- if player is holding a name tag or iron hoe or golden hoe or diamond hoe or bone or ghast tear or wooden hoe or tnt or blaze rod:
- send "[&4&lGun&f-&3&lGame&f] &cDu kannst das Item hier nicht nutzen!" to player
- stop
- if player is in the region "kleinerhafen_spawn":
- if player is holding a name tag or iron hoe or golden hoe or diamond hoe or bone or ghast tear or wooden hoe or tnt or blaze rod:
- send "[&4&lGun&f-&3&lGame&f] &cDu kannst das Item hier nicht nutzen!" to player
- stop
- if player is in the region "mars_spawn":
- if player is holding a name tag or iron hoe or golden hoe or diamond hoe or bone or ghast tear or wooden hoe or tnt or blaze rod:
- send "[&4&lGun&f-&3&lGame&f] &cDu kannst das Item hier nicht nutzen!" to player
- stop
- if player is holding a name tag:
- play raw sound "mob.endermen.portal" at player with pitch 1 volume 100
- remove player from {GunGame.%{ns_Playing.%player%}%::*}
- delete {ns_Playing.%player%}
- teleport player to {spawn}
- set {ns_tempns_god.%player%} to true
- extinguish the player
- heal the player
- make console execute command "effect %player% clear"
- remove 1 name tag from player
- wait 5 seconds
- delete {ns_tempns_god.%player%}
- if player is holding a iron hoe:
- if player has arrow:
- show mob spawner flames at the player
- play raw sound "random.break" at player with pitch 2 volume 100
- shoot arrow from the player at speed 5
- damage tool of player by 10
- remove 1 arrow from player
- if player is holding a golden hoe:
- if player has arrow:
- show mob spawner flames at the player
- play raw sound "random.break" at player with pitch 2 volume 100
- shoot arrow from the player at speed 5
- damage tool of player by 3
- remove 1 arrow from player
- if player is holding a wooden hoe:
- if player has arrow:
- show mob spawner flames at the player
- play raw sound "random.break" at player with pitch 2 volume 100
- shoot arrow from the player at speed 7
- damage tool of player by 10
- remove 1 arrow from player
- if player is holding a diamond hoe:
- remove 1 diamond hoe from player
- play raw sound "random.break" at player with pitch 1 volume 100
- damage the target by 10
- loop 2 times:
- strike lightning effect at the target
- if player is holding a bone:
- make console execute command "wolf %player%"
- if player is holding a ghast tear:
- push all entities within radius 10 of player 1 up
- remove 1 ghast tear from player
- play raw sound "mob.endermen.portal" at player with pitch 1 volume 100
- wait 3 seconds
- if player is holding a tnt named "&3&lTNT" with lore "&7-> &eRechtsklick zum benutzen &7<-":
- create a fake explosion at the target
- remove 1 tnt from player
- damage the target by 4
- wait 3 seconds
- play raw sound "EXPLODE" at player with pitch 1 volume 100
- if player is holding a blaze rod named "&6&lFirefly" with lore "&7Zünde deine Gegner an!":
- ignite the target for 10 seconds
- remove 1 blaze rod from player
- damage the target by 2
- wait 3 seconds
- play "CLICK" to player at volume 0.2
- # +------------------------------------------------------+
- # | <~ Kits ~> |
- # +------------------------------------------------------+
- command /kit <text> [<player>]:
- description: Gives you an premium kit
- usage: /kit <kit>
- #permission: gg.premium
- trigger:
- if argument 2 is not set:
- if argument 1 is "vip":
- if player has permission "gg.admin":
- give player 1 iron sword of sharpness 1 named "&d&lVIP Schwert"
- give player 1 iron boots of protection 1 named "&d&lVIP Schuhe"
- give player 1 iron leggings of protection 1 named "&d&lVIP Hose"
- give player 1 iron chestplate of protection 1 named "&d&lVIP Harnisch"
- give player 1 iron helmet named "&d&lVIP Helm"
- give player 8 experience bottle named "&3&lXP"
- give player 1 sugar named "&3&lZucker"
- stop
- if {kit.%player%.VIPUsed} was less than a day ago:
- send "[&4&lGun&f-&3&lGame&f] &cYou can use this only once a day..." to player
- stop
- if player doesn't have permission "gg.vip":
- send "[&4&lGun&f-&3&lGame&f] &cDu bist leider kein VIP Spieler" to player
- stop
- set {kit.%player%.VIPUsed} to now
- give player 1 iron sword of sharpness 2 named "&d&lVIP Schwert"
- give player 1 iron boots of protection 2 named "&d&lVIP Schuhe"
- give player 1 iron leggings of protection 2 named "&d&lVIP Hose"
- give player 1 iron chestplate of protection 2 named "&d&lVIP Harnisch"
- give player 1 iron helmet of protection 1 named "&d&lVIP Helm"
- give player 8 experience bottle named "&3&lXP"
- give player 1 sugar named "&3&lZucker"
- if argument 1 is "elite":
- if player has permission "gg.admin":
- give player 1 iron sword of sharpness 2 named "&5&lElite Schwert"
- give player 1 iron boots of protection 2 named "&5&lElite Schuhe"
- give player 1 iron leggings of protection 2 named "&5&lElite Hose"
- give player 1 iron chestplate of protection 2 named "&5&lElite Harnisch"
- give player 1 iron helmet of protection 1 named "&5&lElite Helm"
- give player 16 experience bottle named "&3&lXP"
- give player 1 sugar named "&3&lZucker"
- give player 1 iron hoe named "&5&lEisen Hoe"
- stop
- if {kit.%player%.EliteUsed} was less than a day ago:
- send "[&4&lGun&f-&3&lGame&f] &cYou can use this only once a day..." to player
- stop
- if player doesn't have permission "gg.elite":
- send "[&4&lGun&f-&3&lGame&f] &cDu bist leider kein Elite Spieler" to player
- stop
- set {kit.%player%.EliteUsed} to now
- give player 1 iron sword of sharpness 2 named "&5&lElite Schwert"
- give player 1 iron boots of protection 2 named "&5&lElite Schuhe"
- give player 1 iron leggings of protection 2 named "&5&lElite Hose"
- give player 1 iron chestplate of protection 2 named "&5&lElite Harnisch"
- give player 1 iron helmet of protection 1 named "&5&lElite Helm"
- give player 16 experience bottle named "&3&lXP"
- give player 1 sugar named "&3&lZucker"
- give player 1 iron hoe named "&5&lEisen Hoe"
- if argument 1 is "titan":
- if player has permission "gg.admin":
- give player 1 iron sword of sharpness 3 named "&e&lTitan Schwert"
- give player 1 iron boots of protection 3 named "&e&lTitan Schuhe"
- give player 1 iron leggings of protection 3 named "&e&lTitan Hose"
- give player 1 iron chestplate of protection 3 named "&e&lTitan Harnisch"
- give player 1 iron helmet of protection 2 named "&e&lTitan Helm"
- give player 20 experience bottle named "&3&lXP"
- give player 1 sugar named "&3&lZucker"
- give player 1 iron hoe named "&5&lEisen hoe"
- stop
- if {kit.%player%.TitanUsed} was less than a day ago:
- send "[&4&lGun&f-&3&lGame&f] &cYou can use this only once a day..." to player
- stop
- if player doesn't have permission "gg.titan":
- send "[&4&lGun&f-&3&lGame&f] &cDu bist leider kein Titan Spieler" to player
- stop
- set {kit.%player%.TitanUsed} to now
- give player 1 iron sword of sharpness 3 named "&e&lTitan Schwert"
- give player 1 iron boots of protection 3 named "&e&lTitan Schuhe"
- give player 1 iron leggings of protection 3 named "&e&lTitan Hose"
- give player 1 iron chestplate of protection 3 named "&e&lTitan Harnisch"
- give player 1 iron helmet of protection 2 named "&e&lTitan Helm"
- give player 32 experience bottle named "&3&lXP"
- give player 1 sugar named "&3&lZucker"
- give player 1 iron hoe named "&5&lEisen hoe"
- #if argument 1 is "platin":
- # if player has permission "gg.admin":
- # give player 1 iron sword of sharpness 2 named "&3&lPlatin Sword"
- # give player 1 iron boots of protection 3 named "&3&lPlatin Boots"
- # give player 1 iron leggings of protection 3 named "&3&lPlatin Leggings"
- # give player 1 iron chestplate of protection 3 named "&3&lPlatin Chestplate"
- # give player 1 diamond helmet of protection 1 named "&3&lPlatin Helmet"
- # give player 1 stick of knockback 2 named "&3&lPlatin Stick"
- # give player 1 splash potion of healing 2 named "&3&lPlatin Heal"
- # give player 32 experience bottle named "&3&lPlatin XP"
- # give player 1 diamond named "&3&lDiamant"
- # give player 1 splash potion of speed 1 named "&3&lPlatin Speed"
- # give player 1 sugar named "&3&lZucker"
- # give player 1 enchanted golden apple named "&6&lOP Apple" with lore "&7Heals you over time"
- # stop
- # if {kit.%player%.lastused} was less than a day ago:
- # send "[&4&lGun&f-&3&lGame&f] &cYou can use this only once a day..." to player
- # stop
- # if player doesn't have permission "gg.premium":
- # send "[&4&lGun&f-&3&lGame&f] &cDu bist leider kein Platin Spieler" to player
- # stop
- # set {kit.%player%.lastused} to now
- # give player 1 iron sword of sharpness 2 named "&3&lPlatin Sword"
- # give player 1 iron boots of protection 3 named "&3&lPlatin Boots"
- # give player 1 iron leggings of protection 3 named "&3&lPlatin Leggings"
- # give player 1 iron chestplate of protection 2 named "&3&lPlatin Chestplate"
- # give player 1 diamond helmet of protection 1 named "&3&lPlatin Helmet"
- # give player 1 stick of knockback 2 named "&3&lPlatin Stick"
- # give player 1 splash potion of healing 2 named "&3&lPlatin Heal"
- # give player 32 experience bottle named "&3&l XP"
- # give player 1 diamond named "&3&lDiamant"
- # give player 1 splash potion of speed 1 named "&3&lPlatin Speed"
- # give player 2 sugar named "&3&lZucker"
- # give player 1 enchanted golden apple named "&6&lOP Apple" with lore "&7Heals you over time"
- else:
- if argument 1 is "platin":
- if player has permission "gg.admin":
- give arg-2 1 iron sword of sharpness 2 named "&3&lPlatin Sword"
- give arg-2 1 iron boots of protection 3 named "&3&lPlatin Boots"
- give arg-2 1 iron leggings of protection 3 named "&3&lPlatin Leggings"
- give arg-2 1 iron chestplate of protection 2 named "&3&lPlatin Chestplate"
- give arg-2 1 diamond helmet of protection 1 named "&3&lPlatin Helmet"
- give arg-2 1 stick of knockback 2 named "&3&lPlatin Stick"
- give arg-2 1 splash potion of healing 2 named "&3&lPlatin Heal"
- give arg-2 32 experience bottle named "&3&lXP"
- give arg-2 1 diamond named "&3&lDiamant"
- give arg-2 1 splash potion of speed 1 named "&3&lPlatin Speed"
- give arg-2 2 sugar named "&3&lZucker"
- give arg-2 1 enchanted golden apple named "&6&lOP Apple" with lore "&7Heals you over time"
- send "[&4&lGun&f-&3&lGame&f] &aDu hast dein Kit zu %arg-2% gesendet!" to player
- send "[&4&lGun&f-&3&lGame&f] &a%player% hat dir ein Kit gesendet!" to arg-2
- stop
- if {kit.%player%.lastused} was less than a day ago:
- send "[&4&lGun&f-&3&lGame&f] &cYou can use this only once a day..." to player
- stop
- if player doesn't have permission "gg.premium":
- send "[&4&lGun&f-&3&lGame&f] &cDu bist leider kein Platin Spieler" to player
- stop
- set {kit.%player%.lastused} to now
- give arg-2 1 iron sword of sharpness 2 named "&3&lPlatin Sword"
- give arg-2 1 iron boots of protection 3 named "&3&lPlatin Boots"
- give arg-2 1 iron leggings of protection 3 named "&3&lPlatin Leggings"
- give arg-2 1 iron chestplate of protection 2 named "&3&lPlatin Chestplate"
- give arg-2 1 diamond helmet of protection 1 named "&3&lPlatin Helmet"
- give arg-2 1 stick of knockback 2 named "&3&lPlatin Stick"
- give arg-2 1 splash potion of healing 2 named "&3&lPlatin Heal"
- give arg-2 32 experience bottle named "&3&lXP"
- give arg-2 1 diamond named "&3&lDiamant"
- give arg-2 1 splash potion of speed 1 named "&3&lPlatin Speed"
- give arg-2 2 sugar named "&3&lZucker"
- give arg-2 1 enchanted golden apple named "&6&lOP Apple" with lore "&7Heals you over time"
- send "[&4&lGun&f-&3&lGame&f] &aDu hast dein Kit zu %arg-2% gesendet!" to player
- send "[&4&lGun&f-&3&lGame&f] &a%player% hat dir ein Kit gesendet!" to arg-2
- if argument 1 is "titan":
- if player has permission "gg.admin":
- give arg-2 1 iron sword of sharpness 3 named "&e&lTitan Schwert"
- give arg-2 1 iron boots of protection 3 named "&e&lTitan Schuhe"
- give arg-2 1 iron leggings of protection 3 named "&e&lTitan Hose"
- give arg-2 1 iron chestplate of protection 3 named "&e&lTitan Harnisch"
- give arg-2 1 iron helmet of protection 2 named "&e&lTitan Helm"
- stop
- if {kit.%player%.TitanUsed} was less than a day ago:
- send "[&4&lGun&f-&3&lGame&f] &cYou can use this only once a day..." to arg-2
- stop
- if player doesn't have permission "gg.titan":
- send "[&4&lGun&f-&3&lGame&f] &cDu bist leider kein Titan Spieler" to player
- stop
- set {kit.%player%.TitanUsed} to now
- give arg-2 1 iron sword of sharpness 3 named "&e&lTitan Schwert"
- give arg-2 1 iron boots of protection 3 named "&e&lTitan Schuhe"
- give arg-2 1 iron leggings of protection 3 named "&e&lTitan Hose"
- give arg-2 1 iron chestplate of protection 3 named "&e&lTitan Harnisch"
- give arg-2 1 iron helmet of protection 2 named "&e&lTitan Helm"
- send "[&4&lGun&f-&3&lGame&f] &aSended your kit to %arg-2%" to player
- send "[&4&lGun&f-&3&lGame&f] &a%player% sended you a kit..." to arg-2
- if argument 1 is "elite":
- if player has permission "gg.admin":
- give arg-2 1 iron sword of sharpness 2 named "&5&lElite Schwert"
- give arg-2 1 iron boots of protection 2 named "&5&lElite Schuhe"
- give arg-2 1 iron leggings of protection 2 named "&5&lElite Hose"
- give arg-2 1 iron chestplate of protection 2 named "&5&lElite Harnisch"
- give arg-2 1 iron helmet of protection 1 named "&5&lElite Helm"
- stop
- if {kit.%player%.EliteUsed} was less than a day ago:
- send "[&4&lGun&f-&3&lGame&f] &cYou can use this only once a day..." to arg-2
- stop
- if player doesn't have permission "gg.elite":
- send "[&4&lGun&f-&3&lGame&f] &cDu bist leider kein Elite Spieler" to player
- stop
- set {kit.%player%.EliteUsed} to now
- give arg-2 1 iron sword of sharpness 2 named "&5&lElite Schwert"
- give arg-2 1 iron boots of protection 2 named "&5&lElite Schuhe"
- give arg-2 1 iron leggings of protection 2 named "&5&lElite Hose"
- give arg-2 1 iron chestplate of protection 2 named "&5&lElite Harnisch"
- give arg-2 1 iron helmet of protection 1 named "&5&lElite Helm"
- send "[&4&lGun&f-&3&lGame&f] &aDu hast dein Kit zu %arg-2% gesendet!" to player
- send "[&4&lGun&f-&3&lGame&f] &a%player% hat dir ein Kit gesendet!" to arg-2
- if argument 1 is "VIP":
- if player has permission "gg.admin":
- give arg-2 1 iron sword of sharpness 2 named "&b&lVIP Schwert"
- give arg-2 1 iron boots of protection 2 named "&b&lVIP Schuhe"
- give arg-2 1 iron leggings of protection 2 named "&b&lVIP Hose"
- give arg-2 1 iron chestplate of protection 2 named "&b&lVIP Harnisch"
- give arg-2 1 iron helmet of protection 1 named "&b&lVIP Helm"
- stop
- if {kit.%player%.VIPUsed} was less than a day ago:
- send "[&4&lGun&f-&3&lGame&f] &cYou can use this only once a day..." to arg-2
- stop
- if player doesn't have permission "gg.vip":
- send "[&4&lGun&f-&3&lGame&f] &cDu bist leider kein VIP Spieler" to player
- stop
- set {kit.%player%.VIPUsed} to now
- give arg-2 1 iron sword of sharpness 2 named "&b&lVIP Schwert"
- give arg-2 1 iron boots of protection 2 named "&b&lVIP Schuhe"
- give arg-2 1 iron leggings of protection 2 named "&b&lVIP Hose"
- give arg-2 1 iron chestplate of protection 2 named "&b&lVIP Harnisch"
- give arg-2 1 iron helmet of protection 1 named "&b&lVIP Helm"
- send "[&4&lGun&f-&3&lGame&f] &aDu hast dein Kit zu %arg-2% gesendet!" to player
- send "[&4&lGun&f-&3&lGame&f] &a%player% hat dir ein Kit gesendet!" to arg-2
- # +------------------------------------------------------+
- # | <~ Old GG ~> |
- # +------------------------------------------------------+
- command /giveall [<text>] [<int>]:
- permission: gg.admin
- trigger:
- if argument-1 is "LVL":
- broadcast "&f[&4&lGun&f-&3&lGame&f] &b%player% &bhat &a%argument-2% &bLevel an alle Spieler verteilt!"
- loop all players:
- increase the loop-player's level by argument-2
- stop
- broadcast "&f[&4&lGun&f-&3&lGame&f] &b%player% &bhat &a%tool of player% &ban alle Spieler verteilt!"
- set {ns_GiveAllItem} to tool of player
- wait 1 second
- loop all players:
- give loop-player {ns_GiveAllItem}
- command /gutschein <text> <integer>:
- permission: gg.admin
- usage: /gutschein <gc / gp> <amount>
- trigger:
- if argument-1 is not "GC" or "GP":
- send "[&4&lGun&f-&3&lGame&f] &cPlease use GC or GP" to player
- stop
- if argument-1 is "GC":
- give player lead named "&7[&bGC&7-&aGutschein&7]" with lore "&7%arg-2% GC||&7Rechtsklick zum benutzen!"
- send "[&4&lGun&f-&3&lGame&f] &aDu hast ein GC Gutschein erstellt!" to player
- stop
- if argument-1 is "GP":
- give player lead named "&7[&aGP&7-&bGutschein&7]" with lore "&7%arg-2% GP||&7Rechtsklick zum benutzen!"
- send "[&4&lGun&f-&3&lGame&f] &aDu hast ein GP Gutschein erstellt!" to player
- on right click holding lead:
- set {ns_Give} to line 1 of the lore of player's tool
- if {ns_Give} contains "GC":
- if line 1 of the lore of player's tool is "%{ns_Give}%":
- replace "&aGives you " with "" in {ns_Give}
- replace " GP" with "" in {ns_Give}
- replace " GC" with "" in {ns_Give}
- replace "&7Rechtsklick zum benutzen!" with "" in {ns_Give}
- send "[&4&lGun&f-&3&lGame&f] &aDu hast: &6%{ns_Give}% GC bekommen" to player
- make console execute command "gc add %player% %{ns_Give}%"
- remove 1 of player's tool from player
- if {ns_Give} contains "GP":
- if line 1 of the lore of player's tool is "%{ns_Give}%":
- replace "&aGives you " with "" in {ns_Give}
- replace " GP" with "" in {ns_Give}
- replace " GC" with "" in {ns_Give}
- replace "&7Rechtsklick zum benutzen!" with "" in {ns_Give}
- send "[&4&lGun&f-&3&lGame&f] &aDu hast: &6%{ns_Give}% GP bekommen" to player
- make console execute command "gp add %player% %{ns_Give}%"
- remove 1 of player's tool from player
- # +------------------------------------------------------+
- # | <~ Shop ~> |
- # +------------------------------------------------------+
- command /repair <int> <text>:
- permission: gg.admin
- usage: /repair price GP/GC
- trigger:
- set line 1 of target block to "&bRepair"
- set line 2 of target block to "&a%argument-2%"
- set line 3 of target block to "&6%argument-1%"
- set line 4 of target block to "&a| Repair |"
- command /ggshop <text> [<text>] [<int>] [<text>]:
- permission: gg.admin
- usage: /ggshop <create/remove/close/open> <item> <price> <gp/gc>
- trigger:
- if target block is sign:
- if argument-1 is not "create" or "remove" or "close" or "open":
- send "Please use <create/remove/close/open>" to player
- stop
- if argument-1 is "remove":
- if line 1 of target block is "&bGP-Shop" or "&bGC-Shop":
- set target block to air
- stop
- if argument-1 is "close":
- if line 1 of target block is "&bGP-Shop" or "&bGC-Shop":
- set line 4 of target block to "&c| Closed |"
- stop
- if argument-1 is "open":
- if line 1 of target block is "&bGP-Shop" or "&bGC-Shop":
- set line 4 of target block to "&a| Purchase |"
- stop
- if argument-4 is not "gp" or "gc":
- send "Please use GP or GC" to player
- stop
- set line 1 of target block to "&b%argument-4%-Shop"
- set line 2 of target block to "&a%argument-2%"
- set line 3 of target block to "&6%argument-3%"
- set line 4 of target block to "&a| Purchase |"
- on rightclick on sign:
- if line 1 is "&bRepair":
- if line 2 is "&aGP":
- set {_GP} to the first element out of objects in column "gp" from result of query "SELECT `gp` FROM `GunGame` WHERE `uuid` = ""%uuid of player%""" and close
- set {ns_line 3.%player%} to line 3
- replace "&6" with "" in {ns_line 3.%player%}
- set {ns_line 3.%player%} to {ns_line 3.%player%} parsed as number
- if {_GP} < {ns_line 3.%player%}:
- send "[&4&lGun&f-&3&lGame&f] &cDu hast nicht genügend GP... [%{_GP}%/%{ns_line 3.%player%}%]" to player
- stop
- if tool of player is air or enchanted golden apple named "&6&lOP Apple" with lore "&7Heals you over time":
- send "[&4&lGun&f-&3&lGame&f] &cDu kannst deine Hand nicht reparieren..." to player
- stop
- make console execute command "gp remove %player% %{ns_line 3.%player%}%"
- repair tool of the player
- send "[&4&lGun&f-&3&lGame&f] &aDein Item wurde repariert..." to player
- delete {ns_line 3.%player%}
- stop
- if line 2 is "&aGC":
- set {_GC} to the first element out of objects in column "gc" from result of query "SELECT `gc` FROM `GunGame` WHERE `uuid` = ""%uuid of player%""" and close
- set {ns_line 3.%player%} to line 3
- replace "&6" with "" in {ns_line 3.%player%}
- set {ns_line 3.%player%} to {ns_line 3.%player%} parsed as number
- if {_GC} < {ns_line 3.%player%}:
- send "[&4&lGun&f-&3&lGame&f] &cDu hast nicht genügend GC... [%{_GC}%/%{ns_line 3.%player%}%]" to player
- stop
- if tool of player is air:
- send "[&4&lGun&f-&3&lGame&f] &cDu kannst deine Hand nicht reparieren..." to player
- stop
- make console execute command "gc remove %player% %{ns_line 3.%player%}%"
- repair tool of the player
- send "[&4&lGun&f-&3&lGame&f] &aDein Item wurde repariert..." to player
- delete {ns_line 3.%player%}
- stop
- if line 1 is "&bGP-Shop":
- if line 4 is "&a| Purchase |":
- set {_GP} to the first element out of objects in column "gp" from result of query "SELECT `gp` FROM `GunGame` WHERE `uuid` = ""%uuid of player%""" and close
- set {ns_line 2.%player%} to line 2
- set {ns_line 3.%player%} to line 3
- replace "&a" with "" in {ns_line 2.%player%}
- replace "_" with " " in {ns_line 2.%player%}
- replace "&6" with "" in {ns_line 3.%player%}
- set {ns_line 3.%player%} to {ns_line 3.%player%} parsed as number
- if {_GP} < {ns_line 3.%player%}:
- send "[&4&lGun&f-&3&lGame&f] &cYou don't have enough GP... [%{_GP}%/%{ns_line 3.%player%}%]" to player
- stop
- make console execute command "gp remove %player% %{ns_line 3.%player%}%"
- #make console execute command "give %player% %{ns_line 2.%player%}%"
- run player command "/item %player% %{ns_line 2.%player%}%" as op
- delete {ns_line 2.%player%}
- delete {ns_line 3.%player%}
- stop
- if line 1 is "&bGC-Shop":
- if line 4 is "&a| Purchase |":
- set {_GC} to the first element out of objects in column "gc" from result of query "SELECT `gc` FROM `GunGame` WHERE `uuid` = ""%uuid of player%""" and close
- set {ns_line 2.%player%} to line 2
- set {ns_line 3.%player%} to line 3
- replace "&a" with "" in {ns_line 2.%player%}
- replace "_" with " " in {ns_line 2.%player%}
- replace "&6" with "" in {ns_line 3.%player%}
- set {ns_line 3.%player%} to {ns_line 3.%player%} parsed as number
- if {_GC} < {ns_line 3.%player%}:
- send "[&4&lGun&f-&3&lGame&f] &cYou don't have enough GC... [%{_GC}%/%{ns_line 3.%player%}%]" to player
- stop
- run player command "/item %player% %{ns_line 2.%player%}%" as op
- make console execute command "gc remove %player% %{ns_line 3.%player%}%"
- delete {ns_line 2.%player%}
- delete {ns_line 3.%player%}
- stop
- command /item <player> <item>:
- description: Give someone an item
- permission: gg.admin
- trigger:
- give argument-1 argument-2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement