options: name: tAddons version: 0.1 author: Torwik variables: {addons} = true command /addons []: aliases: tAddons trigger: send player title "&8/u2022 &7tAddons &8/u2022" with subtitle "&c{@name} v{@version}. by {@author}" for 1 second if arg 1 is "on" or "off": if player has permissions "addons.admin": if arg 1 is "on": set {addons} to true send "&aWlaczono addonsy!" stop if arg 1 is "off": set {addons} to false send "&cWylaczono addonsy!" stop if player doesn't have permissions "addons.admin": send "&4Blad: &cNie masz uprawnien do tej komendy! &8[&faddons.admin&8]" stop if arg 1 is not "on" or "off": stop command /addons-commands []: aliases: tAddons-commands trigger: if {addons} is true: send "&7Dostepne komendy&8:" send "&a" stop if {addons} is false: send "&4Blad: &cAddonsy sa wylaczone!" stop # SPAWN # variables: {addons.spawntp.%player%} = 0 {addons.nieruszajsie1.%player%} = false command /setspawn []: trigger: if {addons} is true: if player has permissions "spawn.cmd": set {addons.spawn} to location of the player send "&aUstawiono lokalizacje &2SPAWN&a." stop if player doesn't have permissions "spawn.cmd": send "&4Blad: &cNie masz uprawnien do tej komendy! &8[&fspawn.cmd&8]" stop if {addons} is false: send "&4Blad: &cAddonsy sa wylaczone!" stop command /spawn []: trigger: if {addons} is true: if player has permissions "spawn.fasttp": teleport player to {addons.spawn} send "&aZostales przeteleportowany na &2SPAWN &abez czekania poniewaz masz permissje &8[&fspawn.fasttp&8]" stop if player doesn't have permissions "spawn.fasttp": set {addons.spawntp.%player%} to 3 set {addons.nieruszajsie1.%player%} to true send "&aZa 3 sekundy zostaniesz przeteleportowany na &2SPAWN&a!" wait 1 second if {addons.nieruszajsie1.%player%} is true: set {addons.spawntp.%player%} to 2 wait 1 second if {addons.nieruszajsie1.%player%} is true: set {addons.spawntp.%player%} to 1 wait 1 second if {addons.nieruszajsie1.%player%} is true: set {addons.spawntp.%player%} to 0 teleport player to {addons.spawn} send "&aZostales przeteleportowany na &2SPAWN&a!" stop else: set {addons.spawntp.%player%} to 0 set {addons.nieruszajsie1.%player%} to false stop else: set {addons.spawntp.%player%} to 0 set {addons.nieruszajsie1.%player%} to false stop else: set {addons.spawntp.%player%} to 0 set {addons.nieruszajsie1.%player%} to false stop on any move: if {addons} is true: if {addons.nieruszajsie1.%player%} is true: set {addons.nieruszajsie1.%player%} to false send "&cRuszyles sie, teleport anulowany!" stop