Just so you know, we don't know the file format for every file. If it's just a bunch of random characters, it's probably a .zip or .jar.
options:
Prefix: &8» &a&lRespawn &8┃
Version: 2.0.4
on load:
send "{@Prefix} §7Das §a§lRespawn-System §7v§6§l{@Version} §7wurde §aaktiviert§7!" to console
on tab complete of "/respawnkit":
set tab completions for position 1 to "version", "setlevel", "help" and "reset"
if tab arg-1 = "setlevel" or "reset":
set tab completions for position 2 to all players
if tab arg-1 = "setlevel":
tab arg-2 is set
set tab completions for position 3 to "1", "2", "3" and "4"
command /respawnkit [<text>] [<offline player>] [<text>]:
permission: system.owner
permission message: {@Prefix} &7Dafür hast du &ckeine &7Rechte!
trigger:
if arg-1 is "reset":
if arg-2 is set:
send "{@Prefix} &7Das &6Respawn-Kit &7von &e%arg-2% &7wurde &czurückgesetzt&7!" to sender
set {Respawnkit.Level::%arg-2's uuid%} to 1
else:
send "{@Prefix} &7Benutze&8: &c/respawnkit reset &8(&eSpieler&8)" to sender
else if arg-1 is "setlevel":
if arg-2 is set:
if arg-3 is set:
if arg-3.matches("\d+"):
if arg-3 is not "0":
send "{@Prefix} &7Das &6Respawn-Kit &7von &e%arg-2% &7wurde auf Level &6&l%arg-3% &7gesetzt!" to sender
set {Respawnkit.Level::%arg-2's uuid%} to arg-3 parsed as integer
else:
send "{@Prefix} &7Die Zahl &cmuss &7über &6&l0 &7sein!" to sender
else:
send "{@Prefix} &7Das ist &ckeine &7Zahl! &8(&c&l%arg-3%&8)" to sender
else:
send "{@Prefix} &7Benutze&8: &c/respawnkit setlevel &8(&eSpieler&8) &8(&eLevel&8)" to sender
else:
send "{@Prefix} &7Benutze&8: &c/respawnkit setlevel &8(&eSpieler&8) &8(&eLevel&8)" to sender
else if arg-1 is "version":
send "{@Prefix} &7Das &e&lSystem &7ist auf der Version&8: &c&l{@Version}&r" to sender
else if arg-1 is "help":
send "&7&m-----------&a&l Respawn &7&m-----------" to sender
send "§§" to sender
send "&7Plugin Version &8&m<>&7 &c&l{@Version}" to sender
send "§§" to sender
send "&8➢ &7/respawnkit reset &8(&eSpieler&8) &8━ &7Resete das Respawnkit Level von einem Spieler." to sender
send "&8➢ &7/respawnkit setlevel &8(&eSpieler&8) &8(&eLevel&8) &8━ &7Setze das Respawnkit Level von einem Spieler." to sender
send "&8➢ &7/respawnkit version &8━ &7Sehe die System Version." to sender
send "§§" to sender
send "&7&m-----------&a&l Respawn &7&m-----------" to sender
else if arg-1 is not "reset", "setlevel", "version" or "help":
execute sender command "/respawnkit help"
else:
execute sender command "/respawnkit help"
command /respawn-upgrades:
trigger:
set metadata tag "RUGUI" of sender to chest inventory with 5 rows named "&8» &aRespawn Kit"
set slot (0, 1, 7, 8, 9, 17, 27, 35, 36, 37, 43 and 44) of metadata tag "RUGUI" of sender to gray glass pane named "&8&l&o-/-"
set slot (30 and 32) of metadata tag "RUGUI" of sender to red glass pane named "&8&l&o-/-"
set slot 11 of metadata tag "RUGUI" of sender to light gray dye named "&8» &7&lRespawn Kit Level 1" with lore "", "&8➟ &7Freigeschaltet&8: &aJa" and ""
if {Respawnkit.Level::%player's uuid%} is greater than or equal to 2:
set slot 13 of metadata tag "RUGUI" of sender to lime dye named "&8» &a&lRespawn Kit Level 2" with lore "", "&8➟ &7Freigeschaltet&8: &aJa", "&8➟ &7Kosten&8: &a10.000 Münzen" and ""
else:
set slot 13 of metadata tag "RUGUI" of sender to lime dye named "&8» &a&lRespawn Kit Level 2" with lore "", "&8➟ &7Freigeschaltet&8: &cNein", "&8➟ &7Kosten&8: &a10.000 Münzen" and ""
if {Respawnkit.Level::%player's uuid%} is greater than or equal to 3:
set slot 15 of metadata tag "RUGUI" of sender to light blue dye named "&8» &b&lRespawn Kit Level 3" with lore "", "&8➟ &7Freigeschaltet&8: &aJa", "&8➟ &7Kosten&8: &a25.000 Münzen" and ""
else:
set slot 15 of metadata tag "RUGUI" of sender to light blue dye named "&8» &b&lRespawn Kit Level 3" with lore "", "&8➟ &7Freigeschaltet&8: &cNein", "&8➟ &7Kosten&8: &a25.000 Münzen" and ""
if {Respawnkit.Level::%player's uuid%} is greater than or equal to 4:
set slot 31 of metadata tag "RUGUI" of sender to red dye named "&8» &c&lRespawn Kit Level 4" with lore "", "&8➟ &7Freigeschaltet&8: &aJa", "&8➟ &7Kosten&8: &a100.000 Münzen" and ""
else:
set slot 31 of metadata tag "RUGUI" of sender to red dye named "&8» &c&lRespawn Kit Level 4" with lore "", "&8➟ &7Freigeschaltet&8: &cNein", "&8➟ &7Kosten&8: &a100.000 Münzen" and ""
open (metadata tag "RUGUI" of sender) to sender
expression format %string% with commas:
get:
return expr-1.replaceAll("(?<=\d)(?=(\d\d\d)+(?!\d))", ",")
on inventory click:
if event.getView().getTitle() is "&8» &aRespawn Kit":
event.setCancelled(true)
event.getClickedInventory() is not player's inventory
if event.getCurrentItem().getItemMeta().getDisplayName() = "&8» &7&lRespawn Kit Level 1":
send "{@Prefix} &7Du hast dieses Kit &cbereits &7freigeschaltet!"
play sound "ENTITY_VILLAGER_NO" to player
if event.getCurrentItem().getItemMeta().getDisplayName() = "&8» &a&lRespawn Kit Level 2":
if {Respawnkit.Level::%player's uuid%} is greater than or equal to 2:
send "{@Prefix} &7Du hast dieses Kit &cbereits &7freigeschaltet!"
play sound "ENTITY_VILLAGER_NO" to player
else:
if player's balance is greater than or equal to 10000:
remove 10000 from player's balance
set {Respawnkit.Level::%player's uuid%} to 2
send "{@Prefix} &7Du hast dir das &a&lRespawn Kit Level 2 &7gekauft!"
send "{@Prefix} &c- &e10.000 &7Münzen"
play sound "ENTITY_PLAYER_LEVELUP" with volume 100 and pitch 100 to player
else:
set {_anyInts} to 10000-player's balance
set {_anyInts} to format "%{_anyInts}%" with commas
send "{@Prefix} &7Du hast &cnicht &7genug Münzen!"
send "{@Prefix} &7Dir Fehlen&8: &c&l%{_anyInts}% &7Münzen"
play sound "ENTITY_VILLAGER_HURT" to player
if event.getCurrentItem().getItemMeta().getDisplayName() = "&8» &b&lRespawn Kit Level 3":
if {Respawnkit.Level::%player's uuid%} is greater than or equal to 3:
send "{@Prefix} &7Du hast dieses Kit &cbereits &7freigeschaltet!"
play sound "ENTITY_VILLAGER_NO" to player
else:
if {Respawnkit.Level::%player's uuid%} is 2:
if player's balance is greater than or equal to 25000:
remove 25000 from player's balance
set {Respawnkit.Level::%player's uuid%} to 3
send "{@Prefix} &7Du hast dir das &b&lRespawn Kit Level 3 &7gekauft!"
send "{@Prefix} &c- &e25.000 &7Münzen"
play sound "ENTITY_PLAYER_LEVELUP" with volume 100 and pitch 100 to player
else:
set {_anyInts} to 25000-player's balance
set {_anyInts} to format "%{_anyInts}%" with commas
send "{@Prefix} &7Du hast &cnicht &7genug Münzen!"
send "{@Prefix} &7Dir Fehlen&8: &c&l%{_anyInts}% &7Münzen"
play sound "ENTITY_VILLAGER_HURT" to player
else:
send "{@Prefix} &7Du &cmusst &7zuvor das &aRespawn Kit Upgrade &7auf &aLevel 2 &7gekauft haben!"
play sound "ENTITY_VILLAGER_NO" to player
if event.getCurrentItem().getItemMeta().getDisplayName() = "&8» &c&lRespawn Kit Level 4":
if {Respawnkit.Level::%player's uuid%} is greater than or equal to 4:
send "{@Prefix} &7Du hast dieses Kit &cbereits &7freigeschaltet!"
play sound "ENTITY_VILLAGER_NO" to player
else:
if {Respawnkit.Level::%player's uuid%} is 3:
if player's balance is greater than or equal to 100000:
remove 100000 from player's balance
set {Respawnkit.Level::%player's uuid%} to 4
send "{@Prefix} &7Du hast dir das &6&lRespawn Kit Level 4 &7gekauft!"
send "{@Prefix} &c- &e100.000 &7Münzen"
play sound "ENTITY_PLAYER_LEVELUP" with volume 100 and pitch 100 to player
else:
set {_anyInts} to 100000-player's balance
set {_anyInts} to format "%{_anyInts}%" with commas
send "{@Prefix} &7Du hast &cnicht &7genug Münzen!"
send "{@Prefix} &7Dir Fehlen&8: &c&l%{_anyInts}% &7Münzen"
play sound "ENTITY_VILLAGER_HURT" to player
else:
send "{@Prefix} &7Du &cmusst &7zuvor das &bRespawn Kit Upgrade &7auf &bLevel 3 &7gekauft haben!"
play sound "ENTITY_VILLAGER_NO" to player
on join:
if {Respawnkit.Level::%player's uuid%} is not set:
set {Respawnkit.Level::%player's uuid%} to 1
on death of player:
wait 2 ticks
force event-player to respawn
wait 5 ticks
if {Respawnkit.Level::%player's uuid%} is 1:
equip player with leather helmet with nbt "{display:{color:10329495},HideFlags:64}" named "&8» &6&lRespawn Kit &8● &7Lvl &7&l1"
equip player with leather chestplate with nbt "{display:{color:10329495},HideFlags:64}" named "&8» &6&lRespawn Kit &8● &7Lvl &7&l1"
equip player with leather leggings with nbt "{display:{color:10329495},HideFlags:64}" named "&8» &6&lRespawn Kit &8● &7Lvl &7&l1"
equip player with leather boots with nbt "{display:{color:10329495},HideFlags:64}" named "&8» &6&lRespawn Kit &8● &7Lvl &7&l1"
set slot 0 of player to wood sword named "&8» &6&lRespawn Kit &8● &7Lvl &7&l1"
set slot 1 of player to golden apple named "&8» &6&lRespawn Kit &8● &7Lvl &7&l1"
set slot 8 of player to ender pearl named "&8» &6&lRespawn Kit &8● &7Lvl &7&l1"
send "{@Prefix} &7Du hast das &6&lRespawn-Kit &7Level &7&l1 &7bekommen!" to player
play sound "ENTITY_HORSE_ARMOR" with volume 10 and pitch 10 to player
if {Respawnkit.Level::%player's uuid%} is 2:
equip player with leather helmet of protection 1 with nbt "{display:{color:8439583},HideFlags:64}" named "&8» &6&lRespawn Kit &8● &7Lvl &a&l2"
equip player with leather chestplate of protection 1 with nbt "{display:{color:8439583},HideFlags:64}" named "&8» &6&lRespawn Kit &8● &7Lvl &a&l2"
equip player with leather leggings of protection 1 with nbt "{display:{color:8439583},HideFlags:64}" named "&8» &6&lRespawn Kit &8● &7Lvl &a&l2"
equip player with leather boots of protection 1 with nbt "{display:{color:8439583},HideFlags:64}" named "&8» &6&lRespawn Kit &8● &7Lvl &a&l2"
set slot 0 of player to stone sword named "&8» &6&lRespawn Kit &8● &7Lvl &a&l2"
set slot 1 of player to fishing rod named "&8» &6&lRespawn Kit &8● &7Lvl &a&l2"
set slot 2 of player to bow named "&8» &6&lRespawn Kit &8● &7Lvl &a&l2"
set slot 3 of player to 4 of golden apple named "&8» &6&lRespawn Kit &8● &7Lvl &a&l2"
set slot 4 of player to 4 of ender pearl named "&8» &6&lRespawn Kit &8● &7Lvl &a&l2"
set slot 5 of player to 16 of arrow named "&8» &6&lRespawn Kit &8● &7Lvl &a&l2"
send "{@Prefix} &7Du hast das &6&lRespawn-Kit &7Level &a&l2 &7bekommen!" to player
play sound "ENTITY_HORSE_ARMOR" with volume 20 and pitch 20 to player
if {Respawnkit.Level::%player's uuid%} is 3:
equip player with leather helmet of protection 2 with nbt "{display:{color:3847130},HideFlags:64}" named "&8» &6&lRespawn Kit &8● &7Lvl &b&l3"
equip player with leather chestplate of protection 2 with nbt "{display:{color:3847130},HideFlags:64}" named "&8» &6&lRespawn Kit &8● &7Lvl &b&l3"
equip player with leather leggings of protection 2 with nbt "{display:{color:3847130},HideFlags:64}" named "&8» &6&lRespawn Kit &8● &7Lvl &b&l3"
equip player with leather boots of protection 2 with nbt "{display:{color:3847130},HideFlags:64}" named "&8» &6&lRespawn Kit &8● &7Lvl &b&l3"
set slot 0 of player to iron sword named "&8» &6&lRespawn Kit &8● &7Lvl &b&l3"
set slot 1 of player to fishing rod of unbreaking 1 named "&8» &6&lRespawn Kit &8● &7Lvl &b&l3"
set slot 2 of player to bow of punch 1 named "&8» &6&lRespawn Kit &8● &7Lvl &b&l3"
set slot 3 of player to 6 of golden apple named "&8» &6&lRespawn Kit &8● &7Lvl &b&l3"
set slot 4 of player to 6 of ender pearl named "&8» &6&lRespawn Kit &8● &7Lvl &b&l3"
set slot 5 of player to 16 of arrow named "&8» &6&lRespawn Kit &8● &7Lvl &b&l3"
send "{@Prefix} &7Du hast das &6&lRespawn-Kit &7Level &b&l3 &7bekommen!" to player
play sound "ENTITY_HORSE_ARMOR" with volume 30 and pitch 30 to player
if {Respawnkit.Level::%player's uuid%} is greater than or equal to 4:
equip player with leather helmet of protection 4 and unbreaking 1 with nbt "{display:{color:11546150},HideFlags:64}" named "&8» &6&lRespawn Kit &8● &7Lvl &c&l4"
equip player with leather chestplate of protection 4 and unbreaking 1 with nbt "{display:{color:11546150},HideFlags:64}" named "&8» &6&lRespawn Kit &8● &7Lvl &c&l4"
equip player with leather leggings of protection 4 and unbreaking 1 with nbt "{display:{color:11546150},HideFlags:64}" named "&8» &6&lRespawn Kit &8● &7Lvl &c&l4"
equip player with leather boots of protection 4 and unbreaking 1 with nbt "{display:{color:11546150},HideFlags:64}" named "&8» &6&lRespawn Kit &8● &7Lvl &c&l4"
set slot 0 of player to iron sword of sharpness 1 named "&8» &6&lRespawn Kit &8● &7Lvl &c&l4"
set slot 1 of player to fishing rod of unbreaking 3 named "&8» &6&lRespawn Kit &8● &7Lvl &c&l4"
set slot 2 of player to bow of power 1 and punch 1 named "&8» &6&lRespawn Kit &8● &7Lvl &c&l4"
set slot 3 of player to 8 of golden apple named "&8» &6&lRespawn Kit &8● &7Lvl &c&l4"
set slot 4 of player to 8 of ender pearl named "&8» &6&lRespawn Kit &8● &7Lvl &c&l4"
set slot 5 of player to 16 of arrow named "&8» &6&lRespawn Kit &8● &7Lvl &c&l4"
send "{@Prefix} &7Du hast das &6&lRespawn-Kit &7Level &c&l4 &7bekommen!" to player
play sound "ENTITY_HORSE_ARMOR" with volume 40 and pitch 40 to player
on unload:
send "{@Prefix} §7Das §a§lRespawn-System §7v§6§l{@Version} §7wurde §cdeaktiviert§7!" to console