Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- variables:
- {GGLevel.%player%} = 0
- {GunGame.kills.%player%} = 0
- {GunGame.tode.%player%} = 0
- {GunPoints.%player%} = 0
- options:
- prefix: &7&l❘ &9&lGunGame &8► &7
- keinerechte: &7&l❘ &9&lGunGame &8► &7Keine Rechte
- GunGameWelt: GunGame
- command /GG [<text>] [<number>] [<text>]:
- trigger:
- if arg 1 is not set:
- if player has the permission "GunGame.Spieler":
- wait 0.2 seconds
- open chest with 2 row named "&b&l❘ &9&lGunGame &b&l❘" to player
- wait 0.1 second
- format slot 1 of player with diamond sword named "&aGG Beitreten" to close then run "ggsudo %player% gg beitreten"
- format slot 3 of player with end portal frame named "&cGG Verlassen" to close then run "ggsudo %player% gg verlassen"
- format slot 5 of player with chest named "&9Shop" to close then run "ggsudo %player% gg shop"
- format slot 7 of player with book named "&4Stats" to close then run "ggsudo %player% gg stats"
- format slot 10 of player with lava bucket named "&4Resetlevel" with lore "&cDamit Löschst du dein aktuelles Level!" to close then run "ggsudo %player% gg resetlevel"
- format slot 12 of player with tnt named "&4Resetstats" with lore "&cDamit Löschst du deine Stats!" to close then run "ggsudo %player% gg resetstats"
- format slot 14 of player with dispenser named "&9Aufruf" with lore "&fHiermit machst du einen Aufruf!" to close then run "ggsudo %player% gg aufruf"
- format slot 16 of player with clock named "&7&k!!!&4Admin&7&k!!!" with lore "&4Zu den Admin Befehlen!" to close then run "ggsudo %player% gg Admin"
- if arg 1 is set:
- if arg 1 is "Admin":
- if player has the permission "GunGame.Admin":
- message " &b&l❘ &9&lGunGame &b&l❘"
- message "&9/GG Setspawn &7- Damit Setzt du den Join und Respawn Punkt"
- message "&9/GG Setleave &7- Damit Setzt du den Leave Punkt"
- message "&9/GG Reload &7- Damit Ladest du das Skript Neu"
- message "&9/GG Setlevel [Das zu Setzende Level] &7- Mit diesem Befehl kannst du das Inventar von den Leveln 1-50 setzen"
- message "&9/GG bearbeiten [Das zu Bearbeitende Level] &7- Mit diesem Befehl kannst du das Inventar von den Leveln 1-50 bearbeiten"
- message "&9/GG levelup [Das zu Setzende Level] [<Spieler>] &7- Damit Kannst du dein GunGame Level Setzen"
- message "&9/GG getGunPoints [Die Anzahl an GunPoints] &7- Damit Kannst du dein GunGame Level Setzen"
- message " &b&l❘ &9GunGame &b&l❘"
- else:
- message "{@keinerechte}"
- if arg 1 is "setspawn":
- if player has the permission "GunGame.Admin":
- set {GunGame.Spawn} to player's location
- message "{@prefix}Du hast Erfolgreich den GunGame Join und Respawn Punkt gesetzt!"
- else:
- message "{@keinerechte}"
- if arg 1 is "setleave":
- if player has the permission "GunGame.Admin":
- set {GunGame.Leave} to player's location
- message "{@prefix}Du hast Erfolgreich den GunGame Leave Punkt gesetzt!"
- else:
- message "{@keinerechte}"
- if arg 1 is "setlevel":
- if player has the permission "GunGame.Admin":
- if arg 2 is not set:
- message "{@prefix}Bitte wähle ein Level"
- if arg 2 is set:
- if num arg is greater than 50:
- message "{@prefix}Du kannst nur bis Level 50 das Inventar Speichern!"
- else:
- set {_count} to 0
- loop 36 times:
- set {Inv.GunGame.%{_count}%.%arg 2%} to slot {_count} of player's inventory
- message "{@prefix}Gespeichert wurde auf Slot %{Inv.GunGame.%{_count}%.%arg 2%}%"
- add 1 to {_count}
- set {Inv.GunGame.helmet.%arg 2%} to player's helmet
- set {Inv.GunGame.chest.%arg 2%} to player's chestplate
- set {Inv.GunGame.legs.%arg 2%} to player's leggings
- set {Inv.GunGame.feet.%arg 2%} to player's boots
- else:
- message "{@keinerechte}"
- if arg 1 is "bearbeiten":
- if player has the permission "GunGame.Admin":
- if arg 2 is not set:
- message "{@prefix}Bitte wähle ein Level!"
- if arg 2 is set:
- set {_count} to 0
- loop 36 times:
- set slot {_count} of player's inventory to {Inv.GunGame.%{_count}%.%arg 2%}
- add 1 to {_count}
- set the helmet of player to {Inv.GunGame.helmet.%arg 2%}
- set the chestplate of player to {Inv.GunGame.chest.%arg 2%}
- set the leggings of player to {Inv.GunGame.legs.%arg 2%}
- set the boots of player to {Inv.GunGame.feet.%arg 2%}
- else:
- message "{@keinerechte}"
- if arg 1 is "beitreten":
- if player has the permission "GunGame.Spieler":
- if {GunGame.true.%player%} is not set:
- teleport player to {GunGame.Spawn}
- add 1 to {GG.AZ}
- execute console command "/god %player% off"
- execute console command "/fly %player% off"
- set gamemode of player to adventure
- set player's health to 10
- set the player's food level to 10
- message "{@prefix}Du hast GunGame betreten!"
- set the player's level to {GGLevel.%player%}
- set {GunGame.true.%player%} to 1
- set {_count.%player%} to 0
- loop 36 times:
- set slot {_count.%player%} of player's inventory to {Inv.GunGame.%{_count.%player%}%.%{GGLevel.%player%}%}
- add 1 to {_count.%player%}
- set the helmet of player to {Inv.GunGame.helmet.%{GGLevel.%player%}%}
- set the chestplate of player to {Inv.GunGame.chest.%{GGLevel.%player%}%}
- set the leggings of player to {Inv.GunGame.legs.%{GGLevel.%player%}%}
- set the boots of player to {Inv.GunGame.feet.%{GGLevel.%player%}%}
- else:
- message "{@prefix}Du bist bereits in GunGame!"
- else:
- message "{@keinerechte}"
- if arg 1 is "verlassen":
- if player has the permission "GunGame.Spieler":
- if {GunGame.true.%player%} is set:
- remove 1 from {GG.AZ}
- clear player's inventory
- teleport player to {GunGame.Leave}
- set {GGLevel.%player%} to 0
- wait 1 tick
- message "{@prefix}Du hast GunGame verlassen"
- clear {GunGame.true.%player%}
- else:
- message "{@prefix}Du bist momentan nicht in GunGame!"
- if arg 1 is "leave":
- if player has the permission "GunGame.Spieler":
- if {GunGame.true.%player%} is set:
- remove 1 from {GG.AZ}
- clear player's inventory
- teleport player to {GunGame.Leave}
- set {GGLevel.%player%} to 0
- wait 1 tick
- message "{@prefix}Du hast GunGame verlassen"
- clear {GunGame.true.%player%}
- else:
- message "{@prefix}Du bist momentan nicht in GunGame!"
- else:
- message "{@keinerechte}"
- if arg 1 is "stats":
- if player has the permission "GunGame.Spieler":
- wait 0.1 second
- open chest with 1 row named "&b&l❘ &9&lGunGame-Stats &b&l❘" to player
- wait 0.1 second
- format slot 0 of player with diamond sword named "&1Deine Kills:" with lore "&a%{GunGame.kills.%player%}%" to be unstealable
- format slot 2 of player with mob head item named "&4Deine Tode:" with lore "&c%{GunGame.tode.%player%}%" to be unstealable
- format slot 4 of player with book named "&9Deine K/D:" with lore "&c%{GunGame.kills.%player%}/{GunGame.tode.%player%}%" to be unstealable
- format slot 6 of player with bottle o' enchanting named "&9Dein Level:" with lore "&a%{GGLevel.%player%}%" to be unstealable
- format slot 8 of player with nether star named "&1GunPoints:" with lore "&f%{GunPoints.%player%}%" to be unstealable
- if arg 1 is "reload":
- if player has the permission "GunGame.Admin":
- make player execute command "/sk reload GunGame"
- message "{@prefix}GunGame wurde erfolgreich neu Geladen!"
- else:
- message "{@keinerechte}"
- if arg 1 is "resetstats":
- if player has the permission "GunGame.Spieler":
- message "{@prefix}Du hast erfolgreich deine GG Stats Gelöscht!"
- set the player's level to 0
- set {GGLevel.%player%} to 0
- set {GunGame.kills.%player%} to 0
- set {GunGame.tode.%player%} to 0
- else:
- message "{@keinerechte}"
- if arg 1 is "resetlevel":
- if player has the permission "GunGame.Spieler":
- message "{@prefix}Du hast erfolgreich dein GG Level Gelöscht!"
- set the player's level to 0
- set {GGLevel.%player%} to 0
- else:
- message "{@keinerechte}"
- if arg 1 is "levelup":
- if player has the permission "GunGame.Admin":
- if player has the permission "GunGame.Admin":
- if arg 3 is set:
- set {GGLevel.%arg 3%} to arg 2
- else:
- set {GGLevel.%player%} to arg 2
- else:
- message "{@prefix}Du bist zu NOOBIG"
- else:
- message "{@keinerechte}"
- if arg 1 is "aufruf":
- if player has the permission "GunGame.Spieler":
- broadcast ""
- broadcast "{@prefix}&c%player% &3fordert euch auf ins &cGunGame &3zu joinen!"
- broadcast "{@prefix}&3Joine jetzt mit &c/gg beitreten&3!"
- else:
- message "{@keinerechte}"
- if arg 1 is "Shop":
- if player has the permission "GunGame.Spieler":
- if player is in world "{@GunGameWelt}":
- wait 0.2 seconds
- open chest with 1 row named "&b&l❘ &9&lGunGame-Shop &b&l❘" to player
- wait 0.5 second
- format slot 1 of player with potion of:8201 named "&6Stärke Trank &7(3Minuten)" with lore "&a3200 GunPoints" to close then run "ggkaufen %player% staerke"
- format slot 7 of player with potion of:8194 named "&6Schnelligkeit's Trank &7(3Minuten)" with lore "&a2900 GunPoints" to close then run "ggkaufen %player% speed"
- wait 0.5 second
- format slot 3 of player with potion of:8257 named "&6Regeneration's Trank &7(2Minuten)" with lore "&a3700 GunPoints" to close then run "ggkaufen %player% regen"
- format slot 5 of player with potion of:8229 named "&6Direktheilung's Trank" with lore "&a3250 GunPoints" to close then run "ggkaufen %player% direkth"
- else:
- message "{@prefix}Du musst in der GunGame Welt sein um den Shop Benutzen zu können!"
- if arg 1 is "getGunPoints":
- if player has the permission "GunGame.Admin":
- set {GunPoints.%player%} to arg 2
- else:
- message "{@keinerechte}"
- command /ggkaufen <player> <text>:
- executable by: console
- trigger:
- if arg 2 is "staerke":
- if {GunPoints.%arg 1%} is greater than or equal to 3200:
- send "{@prefix}Du hast dir 1 Stärke Trank gekauft." to arg 1
- send "{@prefix}Du musst den Trank trinken bevor du angreifst sonst wird er gelöscht.Keine Rückerstattung" to arg 1
- remove 3200 from {GunPoints.%arg 1%}
- give 1 potion of:8201 to player argument
- else:
- send "{@prefix}Du hast zu wenig GunPoints. &e%{GunPoints.%arg 1%}%&f/&e3200" to arg 1
- if arg 2 is "regen":
- if {GunPoints.%arg 1%} is greater than or equal to 3700:
- send "{@prefix}Du hast dir 1 Regeneration's Trank gekauft." to arg 1
- send "{@prefix}Du musst den Trank trinken bevor du angreifst sonst wird er gelöscht.Keine Rückerstattung" to arg 1
- remove 3700 from {GunPoints.%arg 1%}
- give 1 potion of:8257 to player argument
- else:
- send "{@prefix}Du hast zu wenig GunPoints. &e%{GunPoints.%arg 1%}%&f/&e3700" to arg 1
- if arg 2 is "direkth":
- if {GunPoints.%arg 1%} is greater than or equal to 3250:
- send "{@prefix}Du hast dir 1 Direktheilung's Trank gekauft." to arg 1
- send "{@prefix}Du musst den Trank trinken bevor du angreifst sonst wird er gelöscht.Keine Rückerstattung" to arg 1
- remove 3250 from {GunPoints.%arg 1%}
- give 1 potion of:8229 to player argument
- else:
- send "{@prefix}Du hast zu wenig GunPoints. &e%{GunPoints.%arg 1%}%&f/&e3250" to arg 1
- if arg 2 is "speed":
- if {GunPoints.%arg 1%} is greater than or equal to 2900:
- send "{@prefix}Du hast dir 1 Schnelligkeit's Trank gekauft." to arg 1
- send "{@prefix}Du musst den Trank trinken bevor du angreifst sonst wird er gelöscht.Keine Rückerstattung" to arg 1
- remove 2900 from {GunPoints.%arg 1%}
- give 1 potion of:8194 to player argument
- else:
- send "{@prefix}Du hast zu wenig GunPoints. &e%{GunPoints.%arg 1%}%&f/&e2900" to arg 1
- #Level Behalten bei Leave? Ja
- #on: Befehle
- on first join:
- set {GGLevel.%player%} to 0
- set {GunGame.kills.%player%} to 0
- set {GunGame.tode.%player%} to 0
- on quit:
- if {GunGame.true.%player%} is set:
- clear {GunGame.true.%player%}
- set {GGLevel.%player%} to 0
- remove 1 from {GG.AZ}
- on death:
- if {GunGame.true.%attacker%} is set:
- if {GGLevel.%attacker%} is 50:
- loop all players:
- loop 15 times:
- if loop-player is in world "{@GunGameWelt}":
- set action bar of loop-player to "&8&l[&a&l%{GunGame.kills.%attacker%}%:K&8&l|&c&lD:%{GunGame.tode.%attacker%}%&8&l]&a&l%attacker%&8&l[&5&lL:%{GGLevel.%attacker%}%&8&l] &c&l>>>>&r &8&l[&a&l%{GunGame.kills.%player%}%:K&8&l|&c&lD:%{GunGame.tode.%player%}%&8&l]&c&l%player%&8&l[&5&lL:%{GGLevel.%player%}%&8&l]"
- add 1 to {GunGame.tode.%player%}
- add 1 to {GunGame.kills.%attacker%}
- add 20 to {GunPoints.%attacker%}
- message "{@prefix}Du hast &c20 GunPoints &3für den Kill von &a%victim% &3bekommen!" to attacker
- if {GunPoints.%victim%} is higher than or equal to 10:
- remove 10 from {GunPoints.%victim%}
- stop
- else:
- attacker is a player
- loop all players:
- loop 15 times:
- if loop-player is in world "{@GunGameWelt}":
- set action bar of loop-player to "&8&l[&a&l%{GunGame.kills.%attacker%}%:K&8&l|&c&lD:%{GunGame.tode.%attacker%}%&8&l]&a&l%attacker%&8&l[&5&lL:%{GGLevel.%attacker%}%&8&l] &c&l>>>>&r &8&l[&a&l%{GunGame.kills.%player%}%:K&8&l|&c&lD:%{GunGame.tode.%player%}%&8&l]&c&l%player%&8&l[&5&lL:%{GGLevel.%player%}%&8&l]"
- add 1 to {GunGame.kills.%attacker%}
- add 1 to {GunGame.tode.%player%}
- add 1 to {GGLevel.%attacker%}
- add 20 to {GunPoints.%attacker%}
- message "{@prefix}Du hast &c20 GunPoints &3für den Kill von &a%victim% &3bekommen!" to attacker
- heal attacker
- message "{@prefix}Du bist nun Level &c%{GGLevel.%attacker%}%" to attacker
- wait 2 ticks
- set the attacker's level to {GGLevel.%attacker%}
- wait 1 tick
- clear attacker's inventory
- set {_count.%attacker%} to 0
- loop 36 times:
- set slot {_count.%attacker%} of attacker's inventory to {Inv.GunGame.%{_count.%attacker%}%.%{GGLevel.%attacker%}%}
- add 1 to {_count.%attacker%}
- set the helmet of attacker to {Inv.GunGame.helmet.%{GGLevel.%attacker%}%}
- set the chestplate of attacker to {Inv.GunGame.chest.%{GGLevel.%attacker%}%}
- set the leggings of attacker to {Inv.GunGame.legs.%{GGLevel.%attacker%}%}
- set the boots of attacker to {Inv.GunGame.feet.%{GGLevel.%attacker%}%}
- on respawn:
- if {GunGame.true.%player%} is set:
- if {GGLevel.%player%} is not 1 or 3 or 5 or 7 or 9 or 11 or 13 or 15 or 17 or 19 or 21 or 23 or 25 or 27 or 29 or 31 or 33 or 35 or 37 or 39 or 41 or 43 or 45 or 47 or 49:
- wait 5 ticks
- teleport player to {GunGame.Spawn}
- remove {GGLevel.%player%}/2 from {GGLevel.%player%}
- wait 2 ticks
- set the player's level to {GGLevel.%player%}
- wait 1 tick
- clear player's inventory
- wait 0.5 seconds
- set {_count.%player%} to 0
- loop 36 times:
- set slot {_count.%player%} of player's inventory to {Inv.GunGame.%{_count.%player%}%.%{GGLevel.%player%}%}
- add 1 to {_count.%player%}
- set the helmet of player to {Inv.GunGame.helmet.%{GGLevel.%player%}%}
- set the chestplate of player to {Inv.GunGame.chest.%{GGLevel.%player%}%}
- set the leggings of player to {Inv.GunGame.legs.%{GGLevel.%player%}%}
- set the boots of player to {Inv.GunGame.feet.%{GGLevel.%player%}%}
- else:
- wait 5 ticks
- teleport player to {GunGame.Spawn}
- remove 1 from {GGLevel.%player%}
- wait 1 tick
- remove {GGLevel.%player%}/2 from {GGLevel.%player%}
- wait 2 ticks
- set the player's level to {GGLevel.%player%}
- wait 1 tick
- clear player's inventory
- wait 0.5 seconds
- set {_count.%player%} to 0
- loop 36 times:
- set slot {_count.%player%} of player's inventory to {Inv.GunGame.%{_count.%player%}%.%{GGLevel.%player%}%}
- add 1 to {_count.%player%}
- set the helmet of player to {Inv.GunGame.helmet.%{GGLevel.%player%}%}
- set the chestplate of player to {Inv.GunGame.chest.%{GGLevel.%player%}%}
- set the leggings of player to {Inv.GunGame.legs.%{GGLevel.%player%}%}
- set the boots of player to {Inv.GunGame.feet.%{GGLevel.%player%}%}
- on command:
- if {gungame.true.%player%} is set:
- command is not "gungame" or "sk" or "gg" or "ban" or "kick" or "mute" or "tempban" or "warn" or "at" or "ct" or "qt" or "msg" or "support" or "r" or "Login" or "bw"
- send "{@prefix}Du darfst hier keine Befehle ausführen."
- send "{@prefix}&cNutze /gg verlassen, um zu leaven."
- cancel event
- on food level change:
- player is in "{@GunGameWelt}":
- set the player's hunger bar to 10
- cancel event
- on drop:
- if {GunGame.true.%player%} is set:
- cancel event
- on pickup:
- if {GunGame.true.%player%} is set:
- cancel event
- on join:
- if player is in world "{@GunGameWelt}":
- teleport player to {Lobby}
- on damage:
- if {GunGame.true.%attacker%} is set:
- if attacker's gamemode is creative:
- cancel event
- on walk on water:
- if player is in world "{@GunGameWelt}":
- kill player
- #GUNSHOP
- command ggsudo <player> <text>:
- permission: GG.Sudo
- trigger:
- make arg 1 execute command "%arg 2%"
- command votegunpoints <player> <num>:
- permission: Vote.GG
- trigger:
- add num-argument to {GunPoints.%player-argument%}
- every second in "GunGame":
- loop all players:
- if loop-player is in "GunGame":
- if {GunGame.true.%loop-player%} is not set:
- teleport loop-player to {GunGame.Leave}
- send "{@prefix}&cWie Bist du Ins &9GunGame &cgekommen?" to loop-player
- stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement