Guest User

Untitled

a guest
Mar 14th, 2014
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 193.08 KB | None | 0 0
  1. #=====================================# # UltimateClans by Dzikoysk # # Version: 2.0 # # Skript: 2.0.2 # # WildSkript: Latest # #=====================================# #=====================================# # Licencja | UltimateClans # # by Dzikoysk # #-------------------------------------# # # # All Rights Reserved # # # #-------------------------------------# # Osoby korzystjace ze skryptu # # moga wprowadzac zmiany tylko # # w jego konfiguracji # #=====================================# # -- Manage options -- # options: version: 2.0 # -- Console Version Alert -- # on script load: set {_ver} to skript version set {_need} to "2.0.2" if {_ver} is {_need}: send "&eUltimateClans&8 wymaga Skript %{_need}% ... Na serwerze znajduje sie poprawna wersja!" to the console if {_ver} is not {_need}: send "&eUltimateClans&c wymaga Skript %{_need}% ... Na serwerze znajduje sie inna wersja pluginu Skript (%{_ver}%)!" to the console # -- End of Console Version Alert -- # # -- Config Create -- # if folder in "scripts" is not exists: generate folder named "scripts" if folder in "scripts/UltimateClans" is not exists: generate folder named "scripts/UltimateClans" send "&6[UltimateClans] &aData folder generated successfully!" to console if file in "scripts/UltimateClans/config.yml" is not exists: download from "http://www.dzikoysk.net/projects/ultimateclans/connect/stream/configs/{@version}/config" to file "scripts/UltimateClans/config.yml" send "&6[UltimateClans] &aConfig file generated successfully!" to console if file in "scripts/UltimateClans/messages.yml" is not exists: download from "http://www.dzikoysk.net/projects/ultimateclans/connect/stream/configs/{@version}/messages" to file "scripts/UltimateClans/messages.yml" send "&6[UltimateClans] &aMessages file generated successfully!" to console loop 2 times: # -- get Config --# set {ultimateclans.NoTag.enable} to value "NoTag" get of "scripts/UltimateClans/config.yml" parsed as boolean set {ultimateclans.getConfig.world} to value "world" get of "scripts/UltimateClans/config.yml" set {ultimateclans.getConfig.disable} to value "disable" get of "scripts/UltimateClans/config.yml" set {ultimateclans.getConfig.clans.number} to value "clans-number" get of "scripts/UltimateClans/config.yml" parsed as integer set {ultimateclans.getConfig.members.number} to value "members-number" get of "scripts/UltimateClans/config.yml" parsed as integer set {ultimateclans.getConfig.author} to value "author" get of "scripts/UltimateClans/config.yml" parsed as boolean wait 0.1 seconds set {ultimateclans.getConfig.ultimatechat.default} to value "ultimatechat-default" get of "scripts/UltimateClans/config.yml" parsed as text set {ultimateclans.getConfig.ultimatechat.group.1} to value "ultimatechat-group-1" get of "scripts/UltimateClans/config.yml" parsed as text set {ultimateclans.getConfig.ultimatechat.group.2} to value "ultimatechat-group-2" get of "scripts/UltimateClans/config.yml" parsed as text set {ultimateclans.getConfig.ultimatechat.enable} to value "ultimatechat-enable" get of "scripts/UltimateClans/config.yml" parsed as boolean wait 0.1 seconds set {ultimateclans.ultimatechat.tag} to {ultimateclans.getConfig.ultimatechat.tag} set {ultimateclans.getConfig.level.create} to value "level-create" get of "scripts/UltimateClans/config.yml" parsed as integer set {ultimateclans.getConfig.level.take} to value "level-take" get of "scripts/UltimateClans/config.yml" parsed as boolean wait 0.1 seconds set {ultimateclans.getConfig.paymoney.enable} to value "paymoney-enable" get of "scripts/UltimateClans/config.yml" parsed as boolean set {ultimateclans.getConfig.paymoney.create.cost} to value "paymoney-create-cost" get of "scripts/UltimateClans/config.yml" parsed as integer set {ultimateclans.getConfig.paymoney.invite} to value "paymoney-invite-enable" get of "scripts/UltimateClans/config.yml" parsed as boolean wait 0.1 seconds set {ultimateclans.getConfig.paymoney.invite.cost} to value "paymoney-invite-cost" get of "scripts/UltimateClans/config.yml" parsed as integer set {ultimateclans.getConfig.payitem} to value "payitem-enable" get of "scripts/UltimateClans/config.yml" parsed as boolean wait 0.1 seconds set {ultimateclans.getConfig.payitem.slot.1} to value "payitem-slot-1" get of "scripts/UltimateClans/config.yml" parsed as item type set {ultimateclans.getConfig.payitem.slot.2} to value "payitem-slot-2" get of "scripts/UltimateClans/config.yml" parsed as item type set {ultimateclans.getConfig.payitem.slot.3} to value "payitem-slot-3" get of "scripts/UltimateClans/config.yml" parsed as item type set {ultimateclans.getConfig.payitem.slot.4} to value "payitem-slot-4" get of "scripts/UltimateClans/config.yml" parsed as item type set {ultimateclans.getConfig.payitem.slot.5} to value "payitem-slot-5" get of "scripts/UltimateClans/config.yml" parsed as item type wait 0.1 seconds set {ultimateclans.getConfig.payitem.slot.6} to value "payitem-slot-6" get of "scripts/UltimateClans/config.yml" parsed as item type set {ultimateclans.getConfig.payitem.slot.7} to value "payitem-slot-7" get of "scripts/UltimateClans/config.yml" parsed as item type wait 0.1 second set {ultimateclans.getConfig.payitem.slot.8} to value "payitem-slot-8" get of "scripts/UltimateClans/config.yml" parsed as item type set {ultimateclans.getConfig.payitem.slot.9} to value "payitem-slot-9" get of "scripts/UltimateClans/config.yml" parsed as item type set {ultimateclans.getConfig.payitem.slot.10} to value "payitem-slot-10" get of "scripts/UltimateClans/config.yml" parsed as item type wait 0.1 seconds set {ultimateclans.getConfig.payitem.slot.11} to value "payitem-slot-11" get of "scripts/UltimateClans/config.yml" parsed as item type set {ultimateclans.getConfig.payitem.slot.12} to value "payitem-slot-12" get of "scripts/UltimateClans/config.yml" parsed as item type set {ultimateclans.getConfig.payitem.invite} to value "payitem-invite" get of "scripts/UltimateClans/config.yml" parsed as boolean set {ultimateclans.getConfig.payitem.invite.cost} to value "payitem-invite-cost" get of "scripts/UltimateClans/config.yml" parsed as item type wait 0.1 seconds set {ultimateclans.region.method} to value "region-method" get of "scripts/UltimateClans/config.yml" set {ultimateclans.autoregion.enable} to value "auto-region" get of "scripts/UltimateClans/config.yml" parsed as boolean wait 0.1 seconds set {ultimateclans.getConfig.spawn.distance} to value "spawn-distance" get of "scripts/UltimateClans/config.yml" parsed as integer set {ultimateclans.getConfig.region.setblock} to value "region-setblock-enable" get of "scripts/UltimateClans/config.yml" parsed as boolean set {ultimateclans.getConfig.region.setblock.type} to value "region-setblock-type" get of "scripts/UltimateClans/config.yml" parsed as item type wait 0.1 seconds set {ultimateclans.getConfig.region.size} to value "region-size" get of "scripts/UltimateClans/config.yml" parsed as integer set {ultimateclans.getConfig.region.sg.up} to value "region-sg-up-enable" get of "scripts/UltimateClans/config.yml" parsed as boolean set {ultimateclans.getConfig.region.sg.size} to value "region-sg-up-size" get of "scripts/UltimateClans/config.yml" parsed as integer set {ultimateclans.getConfig.region.sg.lvl} to value "region-sg-up-lvl" get of "scripts/UltimateClans/config.yml" parsed as integer wait 0.1 seconds set {ultimateclans.getConfig.region.sg.lvl-1} to value "region-sg-up-lvl-1" get of "scripts/UltimateClans/config.yml" parsed as item type set {ultimateclans.getConfig.region.sg.lvl-2} to value "region-sg-up-lvl-2" get of "scripts/UltimateClans/config.yml" parsed as item type set {ultimateclans.getConfig.region.sg.lvl-3} to value "region-sg-up-lvl-3" get of "scripts/UltimateClans/config.yml" parsed as item type set {ultimateclans.getConfig.region.sg.lvl-4} to value "region-sg-up-lvl-4" get of "scripts/UltimateClans/config.yml" parsed as item type wait 0.1 seconds set {ultimateclans.getConfig.region.sg.lvl-5} to value "region-sg-up-lvl-5" get of "scripts/UltimateClans/config.yml" parsed as item type set {ultimateclans.getConfig.region.sg.lvl-6} to value "region-sg-up-lvl-6" get of "scripts/UltimateClans/config.yml" parsed as item type set {ultimateclans.getConfig.region.sg.lvl-7} to value "region-sg-up-lvl-7" get of "scripts/UltimateClans/config.yml" parsed as item type wait 0.1 seconds set {ultimateclans.getConfig.region.sg.lvl-8} to value "region-sg-up-lvl-8" get of "scripts/UltimateClans/config.yml" parsed as item type set {ultimateclans.getConfig.region.sg.lvl-9} to value "region-sg-up-lvl-9" get of "scripts/UltimateClans/config.yml" parsed as item type set {ultimateclans.getConfig.region.sg.lvl-10} to value "region-sg-up-lvl-10" get of "scripts/UltimateClans/config.yml" parsed as item type wait 0.1 seconds set {ultimateclans.getConfig.region.sg.break} to value "region-sg-break" get of "scripts/UltimateClans/config.yml" parsed as boolean set {ultimateclans.getConfig.region.sg.place} to value "region-sg-place" get of "scripts/UltimateClans/config.yml" parsed as boolean set {ultimateclans.getConfig.region.sg.greeting} to value "region-sg-greeting" get of "scripts/UltimateClans/config.yml" parsed as boolean set {ultimateclans.getConfig.region.sg.farewell} to value "region-sg-farewell" get of "scripts/UltimateClans/config.yml" parsed as boolean set {ultimateclans.getConfig.region.sg.greeting} to value "region-sg-greeting" get of "scripts/UltimateClans/config.yml" parsed as boolean set {ultimateclans.getConfig.region.sg.chest} to value "region-sg-chest" get of "scripts/UltimateClans/config.yml" parsed as boolean wait 0.1 seconds set {ultimateclans.getConfig.region.sg.furnace} to value "region-sg-furnace" get of "scripts/UltimateClans/config.yml" parsed as boolean set {ultimateclans.getConfig.region.sg.bed} to value "region-sg-bed" get of "scripts/UltimateClans/config.yml" parsed as boolean set {ultimateclans.getConfig.region.sg.bucket-fill} to value "region-sg-bucket-fill" get of "scripts/UltimateClans/config.yml" parsed as boolean wait 0.1 seconds set {ultimateclans.getConfig.region.sg.bucket-empty} to value "region-sg-bucket-empty" get of "scripts/UltimateClans/config.yml" parsed as boolean set {ultimateclans.getConfig.region.sg.lighter} to value "region-sg-lighter" get of "scripts/UltimateClans/config.yml" parsed as boolean set {ultimateclans.getConfig.region.sg.leftclick} to value "region-sg-greeting" get of "scripts/UltimateClans/config.yml" parsed as boolean set {ultimateclans.getConfig.region.sg.rightclick} to value "region-sg-greeting" get of "scripts/UltimateClans/config.yml" parsed as boolean wait 0.1 seconds set {ultimateclans.getConfig.region.wg.greeting} to value "region-wg-greeting" get of "scripts/UltimateClans/config.yml" parsed as boolean set {ultimateclans.getConfig.region.wg.farewell} to value "region-wg-farewell" get of "scripts/UltimateClans/config.yml" parsed as boolean set {ultimateclans.getConfig.region.wg.chest} to value "region-wg-chest" get of "scripts/UltimateClans/config.yml" parsed as boolean set {ultimateclans.getConfig.region.sethome} to value "region-sethome" get of "scripts/UltimateClans/config.yml" parsed as boolean wait 0.1 seconds set {ultimateclans.getConfig.prefix} to value "prefix" get of "scripts/UltimateClans/config.yml" set {ultimateclans.getConfig.b.prefix} to value "b-prefix" get of "scripts/UltimateClans/config.yml" set {ultimateclans.getConfig.tp.cooldown} to value "tp-cooldown" get of "scripts/UltimateClans/config.yml" parsed as boolean set {ultimateclans.getConfig.items} to value "items" get of "scripts/UltimateClans/config.yml" parsed as boolean wait 0.1 seconds set {ultimateclans.tag} to value "tag-enable" get of "scripts/UltimateClans/config.yml" parsed as boolean set {ultimateclans.tab} to value "tab-enable" get of "scripts/UltimateClans/config.yml" parsed as boolean set {ultimateclans.getConfig.tag.design} to value "tag-design" get of "scripts/UltimateClans/config.yml" set {ultimateclans.getConfig.pvp} to value "pvp-enable" get of "scripts/UltimateClans/config.yml" parsed as boolean set {ultimateclans.getConfig.pvp.alliance} to value "pvp-alliance" get of "scripts/UltimateClans/config.yml" parsed as boolean wait 0.1 seconds set {ultimateclans.arg.first} to value "arg-first" get of "scripts/UltimateClans/config.yml" set {ultimateclans.command.lista} to value "command-lista" get of "scripts/UltimateClans/config.yml" parsed as boolean set {ultimateclans.command.stworz} to value "command-stworz" get of "scripts/UltimateClans/config.yml" parsed as boolean wait 0.1 seconds set {ultimateclans.command.usun} to value "command-usun" get of "scripts/UltimateClans/config.yml" parsed as boolean set {ultimateclans.command.zabezpiecz} to value "command-zabezpiecz" get of "scripts/UltimateClans/config.yml" parsed as boolean set {ultimateclans.command.powieksz} to value "command-powieksz" get of "scripts/UltimateClans/config.yml" parsed as boolean set {ultimateclans.command.anuluj} to value "command-anuluj" get of "scripts/UltimateClans/config.yml" parsed as boolean wait 0.1 seconds set {ultimateclans.command.zapros} to value "command-zapros" get of "scripts/UltimateClans/config.yml" parsed as boolean set {ultimateclans.command.dolacz} to value "command-dolacz" get of "scripts/UltimateClans/config.yml" parsed as boolean set {ultimateclans.command.odrzuc} to value "command-odrzuc" get of "scripts/UltimateClans/config.yml" parsed as boolean set {ultimateclans.command.opusc} to value "command-opusc" get of "scripts/UltimateClans/config.yml" parsed as boolean wait 0.1 seconds set {ultimateclans.command.wyrzuc} to value "command-wyrzuc" get of "scripts/UltimateClans/config.yml" parsed as boolean set {ultimateclans.command.gsetspawn} to value "command-gsetspawn" get of "scripts/UltimateClans/config.yml" parsed as boolean set {ultimateclans.command.moderator} to value "command-moderator" get of "scripts/UltimateClans/config.yml" parsed as boolean set {ultimateclans.command.sojusz} to value "command-sojusz" get of "scripts/UltimateClans/config.yml" parsed as boolean wait 0.1 seconds set {ultimateclans.command.sojusze} to value "command-sojusze" get of "scripts/UltimateClans/config.yml" parsed as boolean set {ultimateclans.command.rozwiaz} to value "command-rozwiaz" get of "scripts/UltimateClans/config.yml" parsed as boolean set {ultimateclans.command.wojna} to value "command-wojna" get of "scripts/UltimateClans/config.yml" parsed as boolean wait 0.1 seconds set {ultimateclans.command.wojnay} to value "command-wojnay" get of "scripts/UltimateClans/config.yml" parsed as boolean set {ultimateclans.command.rozejm} to value "command-rozejm" get of "scripts/UltimateClans/config.yml" parsed as boolean set {ultimateclans.command.profil} to value "command-profil" get of "scripts/UltimateClans/config.yml" parsed as boolean wait 0.1 seconds set {ultimateclans.getConfig.ranks.enable} to value "ranks-enable" get of "scripts/UltimateClans/config.yml" parsed as boolean set {ultimateclans.getConfig.tag.ranks} to value "tag-ranks" get of "scripts/UltimateClans/config.yml" set {ultimateclans.ranks.message} to value "ranks-message" get of "scripts/UltimateClans/config.yml" parsed as boolean set {ultimateclans.getConfig.broadcast.create} to value "broadcast-create" get of "scripts/UltimateClans/config.yml" parsed as boolean set {ultimateclans.getConfig.broadcast.delete} to value "broadcast-delete" get of "scripts/UltimateClans/config.yml" parsed as boolean set {ultimateclans.getConfig.broadcast.join} to value "broadcast-join" get of "scripts/UltimateClans/config.yml" parsed as boolean wait 0.1 seconds set {ultimateclans.getConfig.broadcast.leave} to value "broadcast-leave" get of "scripts/UltimateClans/config.yml" parsed as boolean set {ultimateclans.getConfig.broadcast.war} to value "broadcast-war" get of "scripts/UltimateClans/config.yml" parsed as boolean set {ultimateclans.getConfig.broadcast.war-win} to value "broadcast-war-win" get of "scripts/UltimateClans/config.yml" parsed as boolean wait 0.1 seconds set {ultimateclans.getConfig.broadcast.war-leave} to value "broadcast-war-leave" get of "scripts/UltimateClans/config.yml" parsed as boolean set {ultimateclans.getConfig.broadcast.pact} to value "broadcast-pact" get of "scripts/UltimateClans/config.yml" parsed as boolean set {ultimateclans.getConfig.broadcast.pact-leave} to value "broadcast-pact-leave" get of "scripts/UltimateClans/config.yml" parsed as boolean wait 0.1 seconds set {ultimateclans.getConfig.wars.deathmatch.kills} to value "wars-deathmatch-kills" get of "scripts/UltimateClans/config.yml" parsed as integer set {ultimateclans.getConfig.wars.deathmatch.points.enable} to value "wars-deathmatch-points-enable" get of "scripts/UltimateClans/config.yml" parsed as boolean set {ultimateclans.getConfig.wars.deathmatch.point.win} to value "wars-deathmatch-points-win" get of "scripts/UltimateClans/config.yml" parsed as integer set {ultimateclans.getConfig.wars.deathmatch.point.lose} to value "wars-deathmatch-points-lose" get of "scripts/UltimateClans/config.yml" parsed as integer set {ultimateclans.getConfig.wars.enable} to value "wars-enable" get of "scripts/UltimateClans/config.yml" parsed as boolean set {ultimateclans.getConfig.wars.type} to value "wars-type" get of "scripts/UltimateClans/config.yml" wait 0.1 seconds set {ultimateclans.getConfig.wars.takeover.enable} to value "wars-takeover-enable" get of "scripts/UltimateClans/config.yml" parsed as boolean set {ultimateclans.getConfig.wars.takeover.block} to value "wars-takeover-block" get of "scripts/UltimateClans/config.yml" parsed as item type set {ultimateclans.getConfig.wars.takeover.to} to value "wars-takeover-to" get of "scripts/UltimateClans/config.yml" parsed as integer set {ultimateclans.getConfig.wars.takeover.time} to value "wars-takeover-time" get of "scripts/UltimateClans/config.yml" parsed as integer set {ultimateclans.getConfig.wars.takeover.int} to value "wars-takeover-int" get of "scripts/UltimateClans/config.yml" parsed as integer wait 0.1 seconds set {ultimateclans.getConfig.wars.takeover.lose} to value "wars-takeover-lose" get of "scripts/UltimateClans/config.yml" parsed as boolean set {ultimateclans.getConfig.wars.takeover.lose.i1} to value "wars-takeover-lose-i1" get of "scripts/UltimateClans/config.yml" parsed as item type set {ultimateclans.getConfig.wars.takeover.lose.i2} to value "wars-takeover-lose-i2" get of "scripts/UltimateClans/config.yml" parsed as item type set {ultimateclans.getConfig.wars.takeover.lose.i3} to value "wars-takeover-lose-i3" get of "scripts/UltimateClans/config.yml" parsed as item type wait 0.1 seconds set {ultimateclans.getConfig.wars.takeover.lose.i4} to value "wars-takeover-lose-i4" get of "scripts/UltimateClans/config.yml" parsed as item type set {ultimateclans.getConfig.wars.takeover.lose.i5} to value "wars-takeover-lose-i5" get of "scripts/UltimateClans/config.yml" parsed as item type set {ultimateclans.getConfig.wars.takeover.lose.i6} to value "wars-takeover-lose-i6" get of "scripts/UltimateClans/config.yml" parsed as item type # -- get Messages --# set {ultimateclans.getMessage.permission} to value "permission" get of "scripts/UltimateClans/messages.yml" set {ultimateclans.getMessage.unknown-command} to value "unknown-command" get of "scripts/UltimateClans/messages.yml" wait 0.1 seconds # -- Default player variables -- # on join: if {ultimateclans.%player%.owner} is not set: set {ultimateclans.%player%.owner} to false if {ultimateclans.%player%.member} is not set: set {ultimateclans.%player%.member} to false if {ultimateclans.%player%.mod} is not set: set {ultimateclans.%player%.mod} to false if {ultimateclans.%player%.delete.confirm} is not set: set {ultimateclans.%player%.delete.confirm} to false if {ultimateclans.%player%.invite.true} is not set: set {ultimateclans.%player%.invite.true} to false # -- Manage options -- # options: aliases: clans, gildia, klan, gildie, klany, f, g, faction, factions commands.list.1: "" or "rozwiaz" or "solve" or "setinfo" or "sojusz" or "autor" or "Moderator" or "Mod" or "pakt" or "pakty" or "covenant" or "relation" or "relations" or "lista" or "1" or "2" or "3" or "p" or "wersja" or "version" or "tworca" or "author" or "ultimateclans" or "clans" or "donate" or "dzikoysk" or "admin" commands.list.2: "zwroc" or "cennik" or "pricelist" or "returnitem" or "author" or "dzikoysk" or "ultimateclans" or "donate" or "tworca" or "mailbox" or "skrzynkapocztowa" or "list" or "info" or "help" or "pomoc" or "mail" or "poczta" or "msg" or "message" or "zarzadzaj" or "manage" or "setspawn" or "odejdz" or "leave" or "dolacz" or "join" or "create" or "stworz" or "delete" or "usun" or "region" or "zabezpiecz" or "unregion" or "odbezpiecz" or "profil" or "profile" or "gracz" or "player" or "odrzuc" or "deny" or "zapros" or "invite" or "reload" or "przeladuj" or "anuluj" or "cancel" or "potwierdz" or "confirm" or "home" or "dom" or "zarzadzaj" or "manage" or "porzuc" or "wyrzuc" or "kick" # -- End of Manage options -- # # -- Config load / Variables load - Script Start -- # on script load: set {ultimateclans.NoTag.enable} to {ultimateclans.getConfig.NoTag.enable} if {ultimateclans.NoTag.enable} is true: set {ultimateclans.getConfig.prefix} to "%{ultimateclans.getConfig.prefix}%" if {ultimateclans.NoTag.enable} is not true: set {ultimateclans.getConfig.prefix} to "" set {ultimateclans.setblock} to {ultimateclans.getConfig.region.setblock} set {ultimateclans.worldguard.size} to {ultimateclans.getConfig.region.size} set {ultimateclans.setnamecolor} to {ultimateclans.getConfig.set.name.color} set {ultimateclans.pvp} to {ultimateclans.getConfig.pvp} set {ultimateclans.tp.cooldown} to {ultimateclans.getConfig.tp.cooldown} set {ultimateclans.pvp.ownerset} to {ultimateclans.getConfig.pvp.owner.cfg} set {ultimateclans.ultimatechat} to {ultimateclans.getConfig.ultimatechat.enable} set {ultimateclans.paymoney.cost} to {ultimateclans.getConfig.paymoney.create.cost} set {ultimateclans.paymoney.enable} to {ultimateclans.getConfig.paymoney.enable} set {ultimateclans.paymoney.invite} to {ultimateclans.getConfig.paymoney.invite} set {ultimateclans.paymoney.invite.cost} to {ultimateclans.getConfig.paymoney.invite.cost} set {ultimateclans.payitem.invite} to {ultimateclans.getConfig.payitem.invite} set {ultimateclans.payitem.invite.cost} to "%{ultimateclans.getConfig.payitem.invite.cost}%" set {ultimateclans.region.wg.farewell} to {ultimateclans.getConfig.region.wg.farewell} set {ultimateclans.region.wg.greeting} to {ultimateclans.getConfig.region.wg.greeting} set {_chest} to {ultimateclans.getConfig.region.wg.chest} set {ultimateclans.cliam.sethome} to {ultimateclans.getConfig.region.sethome} set {ultimateclans.level.take} to {ultimateclans.getConfig.level.take} set {ultimateclans.broadcast} to {ultimateclans.getConfig.broadcast.enable} set {ultimateclans.broadcast.time} to {ultimateclans.getConfig.broadcast.time} wait 1 tick if {_chest} is true: set {ultimateclans.wg.chest} to false if {_chest} is false: set {ultimateclans.wg.chest} to true set {color.1} to value "color-1" get of "scripts/UltimateClans/config.yml" if {color.1} doesn't contain "§": set {color.1} to "&a" set {color.2} to value "color-2" get of "scripts/UltimateClans/config.yml" if {color.2} doesn't contain "§": set {color.2} to "&6" set {color1w} to value "color-error-1" get of "scripts/UltimateClans/config.yml" if {color1w} doesn't contain "§": set {color1w} to "&c" set {color2w} to value "color-error-2" get of "scripts/UltimateClans/config.yml" if {color2w} doesn't contain "§": set {color2w} to "&7" wait 1 tick set {broadcast.timmer} to 0 stop on Skript start: set {ultimateclans.NoTag.enable} to {ultimateclans.getConfig.NoTag.enable} set {ultimateclans.setblock} to {ultimateclans.getConfig.region.setblock} set {ultimateclans.worldguard.size} to {ultimateclans.getConfig.region.size} set {ultimateclans.setnamecolor} to {ultimateclans.getConfig.set.name.color} set {ultimateclans.pvp} to {ultimateclans.getConfig.pvp} set {ultimateclans.tp.cooldown} to {ultimateclans.getConfig.tp.cooldown} set {ultimateclans.pvp.ownerset} to {ultimateclans.getConfig.pvp.owner.cfg} set {ultimateclans.ultimatechat} to {ultimateclans.getConfig.ultimatechat.enable} set {ultimateclans.paymoney.cost} to {ultimateclans.getConfig.paymoney.create.cost} set {ultimateclans.paymoney.enable} to {ultimateclans.getConfig.paymoney.enable} set {ultimateclans.paymoney.invite} to {ultimateclans.getConfig.paymoney.invite} set {ultimateclans.paymoney.invite.cost} to {ultimateclans.getConfig.paymoney.invite.cost} set {ultimateclans.payitem.invite} to {ultimateclans.getConfig.payitem.invite} set {ultimateclans.payitem.invite.cost} to "%{ultimateclans.getConfig.payitem.invite.cost}%" set {ultimateclans.region.wg.farewell} to {ultimateclans.getConfig.region.wg.farewell} set {ultimateclans.region.wg.greeting} to {ultimateclans.getConfig.region.wg.greeting} set {_chest} to {ultimateclans.getConfig.region.wg.chest} set {ultimateclans.cliam.sethome} to {ultimateclans.getConfig.region.sethome} set {ultimateclans.level.take} to {ultimateclans.getConfig.level.take} set {ultimateclans.broadcast} to {ultimateclans.getConfig.broadcast.enable} set {ultimateclans.broadcast.time} to {ultimateclans.getConfig.broadcast.time} wait 1 tick if {_chest} is true: set {ultimateclans.wg.chest} to false if {_chest} is false: set {ultimateclans.wg.chest} to true set {color.1} to value "color-1" get of "scripts/UltimateClans/config.yml" if {color.1} doesn't contain "§": set {color.1} to "&a" set {color.2} to value "color-2" get of "scripts/UltimateClans/config.yml" if {color.2} doesn't contain "§": set {color.2} to "&6" set {color1w} to value "color-error-1" get of "scripts/UltimateClans/config.yml" if {color1w} doesn't contain "§": set {color1w} to "&c" set {color2w} to value "color-error-2" get of "scripts/UltimateClans/config.yml" if {color2w} doesn't contain "§": set {color2w} to "&7" wait 1 tick set {broadcast.timmer} to 0 stop # -- End of Save -- # #-----------------------------------------------# # # # NoTag Command Executor # # # #-----------------------------------------------# # -- Clans List Command --- # command /lista: trigger: if {ultimateclans.NoTag.enable} is false: send "%{ultimateclans.getMessage.unknown-command}%" stop if {ultimateclans.command.lista} is false: send "%{ultimateclans.getMessage.unknown-command}%" stop if player has permission "ultimateclans.list": if {ultimateclans.clanlist::*} is set: send "&aLista gildii: &6%{ultimateclans.clanlist::*}%" stop send "&cNie ma jeszcze zadnych gildii na serwerze!" stop else: send "%{ultimateclans.getMessage.permission}%" stop # -- Clan's home command -- # command /gdom: aliases: ghome trigger: if {ultimateclans.NoTag.enable} is false: send "%{ultimateclans.getMessage.unknown-command}%" stop if {ultimateclans.command.gdom} is false: send "%{ultimateclans.getMessage.unknown-command}%" stop if player has permission "ultimateclans.home": if {ultimateclans.%name of player%.member} is true: set {_rg} to {ultimateclans.clan.%{ultimateclans.%name of player%.clan.name}%.region.point} set {_a} to true if {ultimateclans.clan.%{ultimateclans.%name of player%.clan.name}%.region.point.home} is set: set {_rg} to {ultimateclans.clan.%{ultimateclans.%name of player%.clan.name}%.region.point.home} if {ultimateclans.%name of player%.owner} is true: set {_rg} to {ultimateclans.clan.%{ultimateclans.%name of player%.owner.clanname}%.region.point} set {_a} to true if {ultimateclans.clan.%{ultimateclans.%name of player%.owner.clanname}%.region.point} is set: set {_rg} to {ultimateclans.clan.%{ultimateclans.%name of player%.owner.clanname}%.region.point.home} if {_a} is true: if {_rg} is set: if {ultimateclans.tp.cooldown} is true: set {_pos} to "%x-location of player%, %y-location of player%, %z-location of player%" send "&7Czekaj &65 sekund&7, nie wolno Ci sie ruszyc!" if {_pos} isn't "%x-location of player%, %y-location of player%, %z-location of player%": send "&cWykryto ruch, teleportacja anulowana!" stop wait 1 second if {_pos} isn't "%x-location of player%, %y-location of player%, %z-location of player%": send "&cWykryto ruch, teleportacja anulowana!" stop wait 1 second if {_pos} isn't "%x-location of player%, %y-location of player%, %z-location of player%": send "&cWykryto ruch, teleportacja anulowana!" stop wait 1 second if {_pos} isn't "%x-location of player%, %y-location of player%, %z-location of player%": send "&cWykryto ruch, teleportacja anulowana!" stop wait 1 second if {_pos} isn't "%x-location of player%, %y-location of player%, %z-location of player%": send "&cWykryto ruch, teleportacja anulowana!" stop wait 1 second # ' if {_pos} is "%x-location of player%, %y-location of player%, %z-location of player%": teleport player to {_rg} send "&7Teleportacja..." stop else: send "&cWykryto ruch, teleportacja anulowana!" stop else: teleport player to {_rg} send "&7Teleportacja..." stop else: send "&cGildia nie posiada swojego terenu!" stop else: send "&cNie jestes w gildii!" stop else: send "%{ultimateclans.getMessage.permission}%" stop # -- Create Clan Command -- # command /stworz [] [] [] []: aliases: zaloz, create trigger: if {ultimateclans.NoTag.enable} is false: send "%{ultimateclans.getMessage.unknown-command}%" stop if {ultimateclans.command.stworz} is false: send "%{ultimateclans.getMessage.unknown-command}%" stop if player's world is "%{ultimateclans.getConfig.disable}%": send "&cNa tym swiecie nie mozna zalozyc gildii!" stop if player doesn't have permission "ultimateclans.create": send "%{ultimateclans.getMessage.permission}%" stop if {ultimateclans.getConfig.clans.number} is set: set {ultimateclans.getConfig.clans.number} to {ultimateclans.getConfig.clans.number} parsed as integer if {ultimateclans.getConfig.clans.number} is not 0: set {_x} to size of {ultimateclans.clanlist::*} if {_x} is {ultimateclans.getConfig.clans.number}: send "&cNie mozna zalozyc gildii! Maksymalna ilosc gildii to: &6%{ultimateclans.getConfig.clans.number}%" stop set {_f} to {ultimateclans.getConfig.arg.first} if {_f} is not set: if arg 1 is not set: send "&cNie podano nazwy gildii!" stop if arg 2 is not set: send "&cNie podano tagu gildi!" stop set {_f} to "Full" set {_a1} to arg 1 set {_a2} to arg 2 if {_f} is "Full": if arg 1 is not set: send "&cNie podano nazwy gildii!" stop if arg 2 is not set: send "&cNie podano tagu gildi!" stop set {_a1} to arg 1 set {_a2} to arg 2 if {_f} is "Tag": if arg 1 is not set: send "&cNie podano tagu gildii!" stop if arg 2 is not set: send "&cNie podano nazwy gildi!" stop set {_a1} to arg 2 set {_a2} to arg 1 if {ultimateclans.%name of player%.member} is true: send "&cJestes juz w gildii!" stop trigger if {ultimateclans.%name of player%.owner} is true: send "&cMasz juz gildie!" stop trigger if {ultimateclans.clan.%{_a1}%.tag} is set: send "&cJest juz gildia z taka nazwa!" stop trigger if {ultimateclans.clan.%{_a2}%.tagauth} is set: send "&cJest juz gildia z taka nazwa!" stop trigger if {_f} is "Full": set {_ver} to {_a2} replace all "1" with "1" in {_ver} replace all "0" with "1" in {_ver} replace all "2" with "1" in {_ver} replace all "3" with "1" in {_ver} replace all "4" with "1" in {_ver} replace all "5" with "1" in {_ver} replace all "6" with "1" in {_ver} replace all "7" with "1" in {_ver} replace all "8" with "1" in {_ver} replace all "9" with "1" in {_ver} replace all "j" with "1" in {_ver} replace all "q" with "1" in {_ver} replace all "w" with "1" in {_ver} replace all "e" with "1" in {_ver} replace all "r" with "1" in {_ver} replace all "t" with "1" in {_ver} replace all "y" with "1" in {_ver} replace all "u" with "1" in {_ver} replace all "i" with "1" in {_ver} replace all "o" with "1" in {_ver} replace all "p" with "1" in {_ver} replace all "a" with "1" in {_ver} replace all "s" with "1" in {_ver} replace all "d" with "1" in {_ver} replace all "f" with "1" in {_ver} replace all "g" with "1" in {_ver} replace all "h" with "1" in {_ver} replace all "j" with "1" in {_ver} replace all "k" with "1" in {_ver} replace all "l" with "1" in {_ver} replace all "z" with "1" in {_ver} replace all "x" with "1" in {_ver} replace all "c" with "1" in {_ver} replace all "v" with "1" in {_ver} replace all "b" with "1" in {_ver} replace all "n" with "1" in {_ver} replace all "m" with "1" in {_ver} if {_ver} is not "1" or "11" or "111" or "1111" or "1111" or "11111": send "&cTag jest zbyt dlugi lub zawiera niewlasciwe znaki!" stop set {_ver2} to {_a1} replace all "1" with "1" in {_ver2} replace all "0" with "1" in {_ver2} replace all "2" with "1" in {_ver2} replace all "3" with "1" in {_ver2} replace all "4" with "1" in {_ver2} replace all "5" with "1" in {_ver2} replace all "6" with "1" in {_ver2} replace all "7" with "1" in {_ver2} replace all "8" with "1" in {_ver2} replace all "9" with "1" in {_ver2} replace all "j" with "1" in {_ver2} replace all "q" with "1" in {_ver2} replace all "w" with "1" in {_ver2} replace all "e" with "1" in {_ver2} replace all "r" with "1" in {_ver2} replace all "t" with "1" in {_ver2} replace all "y" with "1" in {_ver2} replace all "u" with "1" in {_ver2} replace all "i" with "1" in {_ver2} replace all "o" with "1" in {_ver2} replace all "p" with "1" in {_ver2} replace all "a" with "1" in {_ver2} replace all "s" with "1" in {_ver2} replace all "d" with "1" in {_ver2} replace all "f" with "1" in {_ver2} replace all "g" with "1" in {_ver2} replace all "h" with "1" in {_ver2} replace all "j" with "1" in {_ver2} replace all "k" with "1" in {_ver2} replace all "l" with "1" in {_ver2} replace all "z" with "1" in {_ver2} replace all "x" with "1" in {_ver2} replace all "c" with "1" in {_ver2} replace all "v" with "1" in {_ver2} replace all "b" with "1" in {_ver2} replace all "n" with "1" in {_ver2} replace all "m" with "1" in {_ver2} set {_ver2} to {_ver2} parsed as integer if {_ver2} is not integer: send "&cNazwa zawiera niewlasciwe znaki!" stop if {_f} is "Tag": set {_ver} to {_a1} replace all "1" with "1" in {_ver} replace all "0" with "1" in {_ver} replace all "2" with "1" in {_ver} replace all "3" with "1" in {_ver} replace all "4" with "1" in {_ver} replace all "5" with "1" in {_ver} replace all "6" with "1" in {_ver} replace all "7" with "1" in {_ver} replace all "8" with "1" in {_ver} replace all "9" with "1" in {_ver} replace all "j" with "1" in {_ver} replace all "q" with "1" in {_ver} replace all "w" with "1" in {_ver} replace all "e" with "1" in {_ver} replace all "r" with "1" in {_ver} replace all "t" with "1" in {_ver} replace all "y" with "1" in {_ver} replace all "u" with "1" in {_ver} replace all "i" with "1" in {_ver} replace all "o" with "1" in {_ver} replace all "p" with "1" in {_ver} replace all "a" with "1" in {_ver} replace all "s" with "1" in {_ver} replace all "d" with "1" in {_ver} replace all "f" with "1" in {_ver} replace all "g" with "1" in {_ver} replace all "h" with "1" in {_ver} replace all "j" with "1" in {_ver} replace all "k" with "1" in {_ver} replace all "l" with "1" in {_ver} replace all "z" with "1" in {_ver} replace all "x" with "1" in {_ver} replace all "c" with "1" in {_ver} replace all "v" with "1" in {_ver} replace all "b" with "1" in {_ver} replace all "n" with "1" in {_ver} replace all "m" with "1" in {_ver} if {_ver} is not "1" or "11" or "111" or "1111" or "1111" or "11111": send "&cTag jest zbyt dlugi lub zawiera niewlasciwe znaki!" stop set {_ver2} to {_a2} replace all "1" with "1" in {_ver2} replace all "0" with "1" in {_ver2} replace all "2" with "1" in {_ver2} replace all "3" with "1" in {_ver2} replace all "4" with "1" in {_ver2} replace all "5" with "1" in {_ver2} replace all "6" with "1" in {_ver2} replace all "7" with "1" in {_ver2} replace all "8" with "1" in {_ver2} replace all "9" with "1" in {_ver2} replace all "j" with "1" in {_ver2} replace all "q" with "1" in {_ver2} replace all "w" with "1" in {_ver2} replace all "e" with "1" in {_ver2} replace all "r" with "1" in {_ver2} replace all "t" with "1" in {_ver2} replace all "y" with "1" in {_ver2} replace all "u" with "1" in {_ver2} replace all "i" with "1" in {_ver2} replace all "o" with "1" in {_ver2} replace all "p" with "1" in {_ver2} replace all "a" with "1" in {_ver2} replace all "s" with "1" in {_ver2} replace all "d" with "1" in {_ver2} replace all "f" with "1" in {_ver2} replace all "g" with "1" in {_ver2} replace all "h" with "1" in {_ver2} replace all "j" with "1" in {_ver2} replace all "k" with "1" in {_ver2} replace all "l" with "1" in {_ver2} replace all "z" with "1" in {_ver2} replace all "x" with "1" in {_ver2} replace all "c" with "1" in {_ver2} replace all "v" with "1" in {_ver2} replace all "b" with "1" in {_ver2} replace all "n" with "1" in {_ver2} replace all "m" with "1" in {_ver2} set {_ver2} to {_ver2} parsed as integer if {_ver2} is not integer: send "&cNazwa zawiera niewlasciwe znaki!" stop if {ultimateclans.getConfig.payitem} is true: wait 1 tick if player's gamemode is not creative: if player has permission "ultimateclans.create-vip": if player doesn't have {ultimateclans.getConfig.payitem.slot-vip.1}: add {ultimateclans.getConfig.payitem.slot-vip.1} to {_req::*} if player doesn't have {ultimateclans.getConfig.payitem.slot-vip.2}: add {ultimateclans.getConfig.payitem.slot-vip.2} to {_req::*} if player doesn't have {ultimateclans.getConfig.payitem.slot-vip.3}: add {ultimateclans.getConfig.payitem.slot-vip.3} to {_req::*} if player doesn't have {ultimateclans.getConfig.payitem.slot-vip.4}: add {ultimateclans.getConfig.payitem.slot-vip.4} to {_req::*} if player doesn't have {ultimateclans.getConfig.payitem.slot-vip.5}: add {ultimateclans.getConfig.payitem.slot-vip.5} to {_req::*} if player doesn't have {ultimateclans.getConfig.payitem.slot-vip.6}: add {ultimateclans.getConfig.payitem.slot-vip.6} to {_req::*} if player doesn't have {ultimateclans.getConfig.payitem.slot-vip.7}: add {ultimateclans.getConfig.payitem.slot-vip.7} to {_req::*} if player doesn't have {ultimateclans.getConfig.payitem.slot-vip.8}: add {ultimateclans.getConfig.payitem.slot-vip.8} to {_req::*} if player doesn't have {ultimateclans.getConfig.payitem.slot-vip.9}: add {ultimateclans.getConfig.payitem.slot-vip.9} to {_req::*} if player doesn't have {ultimateclans.getConfig.payitem.slot-vip.10}: add {ultimateclans.getConfig.payitem.slot-vip.10} to {_req::*} if player doesn't have {ultimateclans.getConfig.payitem.slot-vip.11}: add {ultimateclans.getConfig.payitem.slot-vip.11} to {_req::*} if player doesn't have {ultimateclans.getConfig.payitem.slot-vip.12}: add {ultimateclans.getConfig.payitem.slot-vip.12} to {_req::*} if {_req::*} is set: send "&cNie masz wszystkich wymaganych przedmiotow! Obecnie brakuje Ci: &7%{_req::*}%" stop set {_take.i} to true set {_take.vip} to true else: if player doesn't have {ultimateclans.getConfig.payitem.slot.1}: add {ultimateclans.getConfig.payitem.slot.1} to {_req::*} if player doesn't have {ultimateclans.getConfig.payitem.slot.2}: add {ultimateclans.getConfig.payitem.slot.2} to {_req::*} if player doesn't have {ultimateclans.getConfig.payitem.slot.3}: add {ultimateclans.getConfig.payitem.slot.3} to {_req::*} if player doesn't have {ultimateclans.getConfig.payitem.slot.4}: add {ultimateclans.getConfig.payitem.slot.4} to {_req::*} if player doesn't have {ultimateclans.getConfig.payitem.slot.5}: add {ultimateclans.getConfig.payitem.slot.5} to {_req::*} if player doesn't have {ultimateclans.getConfig.payitem.slot.6}: add {ultimateclans.getConfig.payitem.slot.6} to {_req::*} if player doesn't have {ultimateclans.getConfig.payitem.slot.7}: add {ultimateclans.getConfig.payitem.slot.7} to {_req::*} if player doesn't have {ultimateclans.getConfig.payitem.slot.8}: add {ultimateclans.getConfig.payitem.slot.8} to {_req::*} if player doesn't have {ultimateclans.getConfig.payitem.slot.9}: add {ultimateclans.getConfig.payitem.slot.9} to {_req::*} if player doesn't have {ultimateclans.getConfig.payitem.slot.10}: add {ultimateclans.getConfig.payitem.slot.10} to {_req::*} if player doesn't have {ultimateclans.getConfig.payitem.slot.11}: add {ultimateclans.getConfig.payitem.slot.11} to {_req::*} if player doesn't have {ultimateclans.getConfig.payitem.slot.12}: add {ultimateclans.getConfig.payitem.slot.12} to {_req::*} if {_req::*} is set: send "&cNie masz wszystkich wymaganych przedmiotow! Obecnie brakuje Ci: &7%{_req::*}%" stop set {_take.i} to true if {ultimateclans.paymoney.enable} is true: set {_money} to player's money if {_money} is smaller than {ultimateclans.getConfig.paymoney.create.cost}: send "&cNie masz wystarczajacej ilosci pieniedzy! Wymagana ilos to: &6%{ultimateclans.getConfig.paymoney.create.cost}%" stop #' set {_take.m} to true if {ultimateclans.autoregion.enable} is true: if {ultimateclans.spawn.%world%} is not set: send "&cBlad! &8-&c Nieustawiono spawnpoint'u. Skontaktuj sie z administratorem!" if player is op: send "&6[UltimateClans] &cTa wiadomos widzisz tylko Ty, jako &7Operator&c. Abu ustawic spawnpoint wpisz &7/clans setspawn &cna spawnie serwera" stop stop if {ultimateclans.getConfig.spawn.distance} is not number: set {ultimateclans.getConfig.spawn.distance} to 100 if distance between {ultimateclans.spawn.%world%} and location of player is smaller than {ultimateclans.getConfig.spawn.distance}: send "&cJestes zbyt blisko spawnu!" stop if {ultimateclans.region.method} is "wg" or "WG" or "Wg" or "WorldGuard" or "worldguard" or "Worldguard": if distance between {ultimateclans.spawn.%world%} and location of player is smaller than {ultimateclans.getConfig.spawn.distance}+{ultimateclans.getConfig.region.size}/2: send "&cJestes zbyt blisko spawnu!" stop player cannot build at block under player: send "&cW tym miejscu nie wolno zalozyc gildii, poniewaz teren w poblizu posiada juz inna gildia!" stop player cannot build at block {ultimateclans.worldguard.size} meters northwest: send "&cW tym miejscu nie wolno zalozyc gildii, poniewaz teren w poblizu posiada juz inna gildia!" stop player cannot build at block {ultimatechat.worldguard.size} meters north: send "&cW tym miejscu nie wolno zalozyc gildii, poniewaz teren w poblizu posiada juz inna gildia!" stop player cannot build at block {ultimateclans.worldguard.size} meters northeast: send "&cW tym miejscu nie wolno zalozyc gildii, poniewaz teren w poblizu posiada juz inna gildia!" stop player cannot build at block {ultimateclans.worldguard.size} meters west: send "&cW tym miejscu nie wolno zalozyc gildii, poniewaz teren w poblizu posiada juz inna gildia!" stop player cannot build at block {ultimateclans.worldguard.size} meters east: send "&cW tym miejscu nie wolno zalozyc gildii, poniewaz teren w poblizu posiada juz inna gildia!" stop player cannot build at block {ultimateclans.worldguard.size} meters southwest: send "&cW tym miejscu nie wolno zalozyc gildii, poniewaz teren w poblizu posiada juz inna gildia!" stop player cannot build at block {ultimateclans.worldguard.size} meters south: send "&cW tym miejscu nie wolno zalozyc gildii, poniewaz teren w poblizu posiada juz inna gildia!" stop player cannot build at block {ultimateclans.worldguard.size} meters southeast: send "&cW tym miejscu nie wolno zalozyc gildii, poniewaz teren w poblizu posiada juz inna gildia!" stop run player command "//pos1" as op run player command "//pos2" as op wait 1 tick run player command "//expand %{ultimateclans.worldguard.size}% n" as op run player command "//expand %{ultimateclans.worldguard.size}% s" as op run player command "//expand %{ultimateclans.worldguard.size}% w" as op run player command "//expand %{ultimateclans.worldguard.size}% e" as op run player command "//expand vert" as op wait 1 tick run player command "/rg define clans-%{_a1}%" as op make console execute command "rg addowner -w %world of player% clans-%{_a1}% %name of player%" make console execute command "rg setpriority -w %world of player% clans-%{_a1}% 1" if {ultimateclans.region.wg.greeting} is true: make console execute command "rg flag -w %world of player% clans-%{_a1}% greeting &7Obecny teren nalezy do gildii: &f[&g%{_a1}%&f]" if {ultimateclans.region.wg.farewell} is true: make console execute command "rg flag -w %world of player% clans-%{_a1}% farewell &7Opuszczono teren gildii: &f[&g%{_a1}%&f]" if {ultimateclans.region.wg.chest} is true: make console execute command "rg flag -w %world of player% clans-%{_a1}% chest-access deny" if {ultimateclans.region.wg.chest} is false: make console execute command "rg flag -w %world of player% clans-%{_a1}% chest-access allow" set {ultimateclans.clan.%{_a1}%.region.point} to location of player if {ultimateclans.region.method} is "sk" or "skript" or "sg" or "SkriptGuard": loop {uc.cuboid.list::*}: set {_s} to {ultimateclans.getConfig.region.size}/2 set {_s2} to {ultimateclans.getConfig.region.sg.up.lvl}*{ultimateclans.getConfig.region.sg.up.size} set {_s3} to {_s}+{_s2}+1 set {_s4} to {_s3}*2 set {_sp} to {ultimateclans.getConfig.spawn.distance}+{_s3} if distance between {ultimateclans.spawn.%world%} and location of player is smaller than {_sp}: send "&cJestes zbyt blisko spawnu!" stop if distance between player and {uc.cuboid.loc.%loop-value%} is smaller than {_s4}: send "&cW tym miejscu nie mozna zalozyc gildii, poniewaz w poblizu znajduje sie teren innej gildii!" stop set {uc.cuboid.loc.%{_a1}%} to location of player set {uc.cuboid.name.%{_a1}%} to {_a1} add {_a1} to {uc.cuboid.names.%{_a1}%::*} set {uc.cuboid.size.%{_a1}%} to {ultimateclans.getConfig.region.size}/2 add player to {uc.cuboid.members.%{_a1}%::*} add {_a1} to {uc.cuboid.list::*} set {ultimateclans.clan.%{_a1}%.region.point} to location of player if {_take.m} is true: if player doesn't have the permission "ultimateclans.create-vip": subtract {ultimateclans.getConfig.paymoney.create.cost} from player's money if {_take.i} is true: if {_take.vip} is true: remove {ultimateclans.getConfig.payitem.slot-vip.1} from player remove {ultimateclans.getConfig.payitem.slot-vip.2} from player remove {ultimateclans.getConfig.payitem.slot-vip.3} from player remove {ultimateclans.getConfig.payitem.slot-vip.4} from player remove {ultimateclans.getConfig.payitem.slot-vip.5} from player remove {ultimateclans.getConfig.payitem.slot-vip.6} from player remove {ultimateclans.getConfig.payitem.slot-vip.7} from player remove {ultimateclans.getConfig.payitem.slot-vip.8} from player remove {ultimateclans.getConfig.payitem.slot-vip.9} from player remove {ultimateclans.getConfig.payitem.slot-vip.10} from player remove {ultimateclans.getConfig.payitem.slot-vip.11} from player remove {ultimateclans.getConfig.payitem.slot-vip.12} from player else: remove {ultimateclans.getConfig.payitem.slot.1} from player remove {ultimateclans.getConfig.payitem.slot.2} from player remove {ultimateclans.getConfig.payitem.slot.3} from player remove {ultimateclans.getConfig.payitem.slot.4} from player remove {ultimateclans.getConfig.payitem.slot.5} from player remove {ultimateclans.getConfig.payitem.slot.6} from player remove {ultimateclans.getConfig.payitem.slot.7} from player remove {ultimateclans.getConfig.payitem.slot.8} from player remove {ultimateclans.getConfig.payitem.slot.9} from player remove {ultimateclans.getConfig.payitem.slot.10} from player remove {ultimateclans.getConfig.payitem.slot.11} from player remove {ultimateclans.getConfig.payitem.slot.12} from player #if {ultimateclans.level.take} is true: # if player doesn't have the permission "ultimateclans.create-vip": # reduce player's level by {ultimateclans.getConfig.level.create} set {_p} to player if {ultimateclans.tag} is true: set {_tag} to {ultimateclans.getConfig.tag.design} if {_f} is "Tag": replace all "{TAG}" with "%{_a1}%" in {_tag} replace all "{FULL}" with "%{_a2}%" in {_tag} if {_f} is "Full": replace all "{TAG}" with "%{_a2}%" in {_tag} replace all "{FULL}" with "%{_a1}%" in {_tag} edit tag of player to "%{_tag}%" if {ultimateclans.tab} is true: if {ultimateclans.tag} is not true: set {_tag} to {ultimateclans.getConfig.tag.design} if {_f} is "Tag": replace all "{TAG}" with "%{_a1}%" in {_tag} replace all "{FULL}" with "%{_a2}%" in {_tag} if {_f} is "Full": replace all "{TAG}" with "%{_a2}%" in {_tag} replace all "{FULL}" with "%{_a1}%" in {_tag} set the player's tablist name to "%{_tag}%%{_p}%" #' add {_a1} to {ultimateclans.clanlist::*} set {ultimateclans.%name of player%.owner.clanname} to {_a1} add {_a2} to {ultimateclans.tagclanlist::*} set {ultimateclans.%name of player%.owner.tag} to {_a2} set {ultimateclans.%name of player%.owner} to true set {ultimateclans.%name of player%.owner.name} to player set {ultimateclans.clan.%{_a1}%.tag} to {_a2} set {ultimateclans.clan.%{_a1}%.name} to {_a1} set {ultimateclans.clan.%{_a2}%.tag.fullname} to {_a1} set {ultimateclans.clan.%{_a2}%.tagauth} to {_a2} set {ultimateclans.ranks.list::%{_a1}%} to 0 set {ultimateclans.clan.%{_a1}%.pvp} to {ultimateclans.getConfig.pvp} set {ultimateclans.%{_a1}%.member-number} to 0 set {ultimateclans.clan.%{_a1}%.ownername} to player add 1 to {ultimateclans.%{_a1}%.member-number} add player to {ultimateclans.%{_a1}%.members::*} set {ultimateclans.clan.%{_a1}%.kill} to 0 set {ultimateclans.clan.%{_a1}%.death} to 0 set {ultimateclans.ranks.list::%{_a1}%} to 0 set {ultimateclans.clan.%{_a1}%.regionset} to true send "&aStworzono gildie o nazwie: &6%{_a1}%&a i tagu: &6%{_a2}%&a!" if {ultimateclans.autoregion.enable} is true: if {ultimateclans.getConfig.region.setblock} is true: if {ultimateclans.getConfig.region.setblock.type} is not set: set {ultimateclans.getConfig.region.setblock.type} to bedrock set block under player to {ultimateclans.getConfig.region.setblock.type} send "&aTwoja gildia otrzymala teren!" if {ultimateclans.getConfig.broadcast.create} is true: broadcast "&a&6%name of player% &astworzyl gildie o nazwie &6%{_a1}% &ai tagu &6%{_a2}%" stop stop # -- Delete -- # command /usun: trigger: if {ultimateclans.NoTag.enable} is false: send "%{ultimateclans.getMessage.unknown-command}%" stop if {ultimateclans.command.usun} is false: send "%{ultimateclans.getMessage.unknown-command}%" stop if player has permission "ultimateclans.default": if {ultimateclans.%name of player%.owner} is true: set {ultimateclans.%name of player%.delete.confirm} to true send "&cUwaga! &7Wlaczono procedure usuwania gildii. Aby ostatecznie rozwiazac gildie wpisz &c/potwierdz&7, aby anulowac uzyj &c/anuluj" stop else: send "&cNie jestes zalozycielem zadnej gildii!" else: send "%{ultimateclans.getMessage.permission}%" stop # -- Confirm Delete -- # command /potwierdz: trigger: if {ultimateclans.NoTag.enable} is false: send "%{ultimateclans.getMessage.unknown-command}%" stop if {ultimateclans.command.potwierdz} is false: send "%{ultimateclans.getMessage.unknown-command}%" stop if player has permission "ultimateclans.default": if {ultimateclans.%name of player%.delete.confirm} is true: set {ultimateclans.%name of player%.delete.confirm} to false set {_clan} to {ultimateclans.%name of player%.owner.clanname} if {ultimateclans.region.method} is "wg" or "WG" or "Wg" or "WorldGuard" or "worldguard" or "Worldguard": if player has permission "ultimateclans.default": make console execute command "rg remove -w %world of player% Clans-%{_clan}%" set {ultimateclans.clan.%{_clan}%.regionset} to false if player has permission "ultimateclans.admin": make console execute command "rg remove -w %world of player% Clans-%{_clan}%" set {ultimateclans.clan.%{_clan}%.regionset} to false if {ultimateclans.region.method} is "sk" or "skript" or "sg" or "SkriptGuard": #" loop {uc.cuboid.names.%{_clan}%::*}: set {uc.cuboid.loc.%loop-value%} to "" delete {uc.cuboid.loc.%loop-value%} set {uc.cuboid.name.%loop-value%} to "" set {uc.cuboid.size.%loop-value%} to "" set {uc.cuboid.members.%loop-value%::*} to "" clear {uc.cuboid.name.%loop-value%} clear {uc.cuboid.size.%loop-value%} clear {uc.cuboid.members.%loop-value%::*} remove loop-value from {uc.cuboid.list::*} remove loop-value from {uc.cuboid.names.%{_clan}%::*} delete {uc.cuboid.names.%{_clan}%::*} remove {_clan} from {ultimateclans.clanlist::*} remove {ultimateclans.%name of player%.owner.tag} from {ultimateclans.tagclanlist::*} wait 1 tick set {ultimateclans.%name of player%.owner} to false clear {ultimateclans.clan.%{_clan}%.tag} clear {ultimateclans.clan.%{_clan}%.name} if {ultimateclans.setblock} is true: set block under {ultimateclans.clan.%{_clan}%.region.point} to air clear {ultimateclans.clan.%{_clan}%.region.point} clear {ultimateclans.clan.%{ultimateclans.%name of player%.owner.tag}%.tagauth} clear {ultimateclans.clan.%{ultimateclans.%name of player%.owner.tag}%.tag.fullname} clear {ultimateclans.clan.%{ultimateclans.%name of player%.owner.tag}%.ownername} clear {ultimateclans.%{_clan}%.member-number} clear {ultimateclans.clan.%{_clan}%.regionset} loop {ultimateclans.%{_clan}%.members::*}: set {ultimateclans.%loop-value%.loop-value} to true set {ultimateclans.%name of player%.loop-value} to false set {ultimateclans.%loop-value%.member} to false delete {ultimateclans.%loop-value%.clan.tag} delete {ultimateclans.%loop-value%.ownername} delete {ultimateclans.%loop-value%.clan.name} edit tag of loop-value to "" if {ultimateclans.tag} is true: edit tag of player to "" delete {ultimateclans.%{_clan}%.members::*} delete {ultimateclans.%{_clan}%.member-number} wait 2 tick clear {ultimateclans.%name of player%.owner.tag} clear {ultimateclans.%name of player%.owner.clanname} delete {ultimateclans.clan.%{_clan}%::*} send "&aPomyslnie usunieto gildie!" if {ultimateclans.getConfig.broadcast.create} is true: broadcast "&7Gildia &c%{_clan}% &7zostala rozwiazana!" stop else: send "&cNie ma zadnych dzialan do potwierdzenia!" stop else: send "%{ultimateclans.getMessage.permission}%" stop # -- region region command -- # command /zabezpiecz: aliases: teren, claim trigger: if {ultimateclans.NoTag.enable} is false: send "%{ultimateclans.getMessage.unknown-command}%" stop if {ultimateclans.command.zabezpiecz} is false: send "%{ultimateclans.getMessage.unknown-command}%" stop if player doesn't have permission "ultimateclans.default": #' send "%{ultimateclans.getMessage.permission}%" stop if {ultimateclans.%name of player%.owner} is not true: send "&cAby zajac teren musisz byc zalozycielem!" stop if {ultimateclans.clan.%{ultimateclans.%name of player%.owner.clanname}%.regionset} is true: send "&cTwoja gildia posiada juz region!" stop if {ultimateclans.autoregion.enable} is false: send "&cTeren dla gildii jest automatycznie przydzielany po jej zalozeniu!" stop if {ultimateclans.spawn.%world%} is not set: send "&cBlad! &8-&7 Skontaktuj sie z administratorem! Nieustawiono spawnpoint'u" if player is op: send "&cTa wiadomos widzisz tylko Ty, jako &7Operator&c. Abu ustawic spawnpoint wpisz &7/clans setspawn &cna spawnie serwera" stop if {ultimateclans.region.method} is "wg" or "worldguard": if distance between {ultimateclans.spawn.%world%} and location of player is smaller than {ultimateclans.getConfig.spawn.distance}+{ultimateclans.getConfig.region.size}/2: send "&cJestes zbyt blisko spawnu!" stop player cannot build at block under player: send "&cNie mozna tutaj stworzyc terenu gildii! Teren pod Toba jest juz zabezpieczony" stop player cannot build at block {ultimateclans.worldguard.size} meters northwest: send "&cNie mozna tutaj stworzyc terenu gildii! Teren na polnocny-zachod stad jest juz zabezpieczony" stop player cannot build at block {ultimateclans.worldguard.size} meters north: send "&cNie mozna tutaj stworzyc terenu gildii! Teren na polnoc stad jest juz zabezpieczony" stop player cannot build at block {ultimateclans.worldguard.size} meters northeast: send "&cNie mozna tutaj stworzyc terenu gildii! Teren na polnocny-wschod stad jest juz zajety" stop player cannot build at block {ultimateclans.worldguard.size} meters west: send "&cNie mozna tutaj stworzyc terenu gildii! Teren na zachod stad jest juz zajety" stop player cannot build at block {ultimateclans.worldguard.size} meters east: send "&cNie mozna tutaj stworzyc terenu gildii! Teren na wschod stad jest juz zajety" stop player cannot build at block {ultimateclans.worldguard.size} meters southwest: send "&cNie mozna tutaj stworzyc terenu gildii! Teren na poludniowy-zachod stad jest juz zajety" stop player cannot build at block {ultimateclans.worldguard.size} meters south: send "&cNie mozna tutaj stworzyc terenu gildii! Teren na poludnie stad jest juz zajety" stop player cannot build at block {ultimateclans.worldguard.size} meters southeast: send "&cNie mozna tutaj stworzyc terenu gildii! Teren na poludniowy-wschod stad jest juz zajety" stop set {_clan} to {ultimateclans.%name of player%.owner.clanname} set {_player} to name of player send "Zabezpieczenie &8- &aTworzenie ..." wait 1 tick run player command "//pos1" as op run player command "//pos2" as op wait 1 tick run player command "//expand %{ultimateclans.worldguard.size}% n" as op run player command "//expand %{ultimateclans.worldguard.size}% s" as op run player command "//expand %{ultimateclans.worldguard.size}% w" as op run player command "//expand %{ultimateclans.worldguard.size}% e" as op run player command "//expand vert" as op wait 1 tick run player command "/rg define clans-%{_clan}%" as op wait 1 tick make console execute command "rg addowner -w %world of player% clans-%{_clan}% %name of player%" loop {ultimateclans.%{_clan}%.members::*}: make console execute command "rg addmember -w %world of player% clans-%{_clan}% %loop-value%" make console execute command "rg setpriority -w %world of player% clans-%{_clan}% 1" if {ultimateclans.region.wg.greeting} is true: make console execute command "rg flag -w %world of player% clans-%{_clan}% greeting &7Obecny teren nalezy do gildii: &f[&g%{ultimateclans.%name of player%.owner.clanname}%&f]" if {ultimateclans.region.wg.farewell} is true: make console execute command "rg flag -w %world of player% clans-%{_clan}% farewell &7Opuszczono teren gildii: &f[&g%{ultimateclans.%name of player%.owner.clanname}%&f]" if {ultimateclans.region.wg.chest} is true: make console execute command "rg flag -w %world of player% clans-%{_clan}% chest-access deny" if {ultimateclans.region.wg.chest} is false: make console execute command "rg flag -w %world of player% clans-%{_clan}% chest-access allow" loop 100 times: send "" if {ultimateclans.region.method} is "sk" or "skript" or "sg" or "SkriptGuard": loop {uc.cuboid.list::*}: if distance between player and {uc.cuboid.size.%loop-value%} is smaller than {ultimateclans.region.size}+10: send "&cW tym miejscu nie wolno zalozyc gildii, poniewaz teren w poblizu posiada juz inna gildia!" stop set {uc.cuboid.loc.%{_clan}%} to location of player set {uc.cuboid.name.%{_clan}%} to {_a1} set {uc.cuboid.size.%{_clan}%} to {ultimateclans.region.size} loop {ultimateclans.%{_clan}%.members::*}: add loop-value to {uc.cuboid.members.%{_clan}%::*} add {_clan} to {uc.cuboid.list::*} add {_clan} to {uc.cuboid.names.%{_clan}%::*} set {ultimateclans.clan.%{_clan}%.regionset} to true if {ultimateclans.setblock} is true: set block under player to {ultimateclans.getConfig.region.setblock.type} set {ultimateclans.clan.%{_clan}%.region.point} to location of player set {ultimateclans.clan.%{_clan}%.regionset} to true send "&aGildia posiada teraz swoj teren!" stop # -- Unregion command -- # command /odbezpiecz: aliases: zdejmij, unregion, unclaim trigger: if {ultimateclans.NoTag.enable} is false: send "%{ultimateclans.getMessage.unknown-command}%" stop if {ultimateclans.command.odbezpiecz} is false: send "%{ultimateclans.getMessage.unknown-command}%" stop if player doesn't have permission "ultimateclans.default": # ' send "%{ultimateclans.getMessage.permission}%" stop if {ultimateclans.%name of player%.owner} is not true: send "&cNie jestes zalozycielem gildii!" stop if {ultimateclans.autoregion.enable} is not false: send "Zabezpieczenie &8-&c Wlaczony auto region, aby pozbyc sie terenu musisz usunac gildie!" stop if player doesn't have permission "ultimateclans.create": #' send "%{ultimateclans.getMessage.permission}%" stop set {_clan} to {ultimateclans.%name of player%.owner.clanname} if {ultimateclans.region.method} is "wg" or "worldguard": make console execute command "rg remove -w %world of player% clans-%{_clan}%" if {ultimateclans.region.method} is "sk" or "skript" or "sg" or "SkriptGuard": delete {uc.cuboid.loc.%{_clan}%} delete {uc.cuboid.name.%{_a1}%} delete {uc.cuboid.size.%{_a1}%} delete {uc.cuboid.members.%{_clan}%::*} loop {uc.cuboid.names.%{_a1}%::*}: remove loop-value from {uc.cuboid.list::*} delete {uc.cuboid.loc.%loop-value%} delete {uc.cuboid.name.%loop-value%} delete {uc.cuboid.size.%loop-value%} delete {uc.cuboid.members.%loop-value%::*} remove {_clan} from {uc.cuboid.list::*} set {ultimateclans.clan.%{_clan}%.regionset} to false send "&aPomyslnie usunieto teren gildii!" clear {ultimateclans.clan.%{_clan}%.region.point} if {ultimateclans.setblock} is true: set block under {ultimateclans.clan.%{_clan}%.region.point} to air set block under {ultimateclans.clan.%{_clan}%.region.point} to air stop command /powieksz: aliases: zwieksz, rozszerz, regionup trigger: if {ultimateclans.NoTag.enable} is false: send "%{ultimateclans.getMessage.unknown-command}%" stop if {ultimateclans.command.powieksz} is false: send "%{ultimateclans.getMessage.unknown-command}%" stop if {ultimateclans.region.method} is not "sk" or "skript" or "sg" or "SkriptGuard": send "%{ultimateclans.getMessage.unknown-command}%" if player is op: send "&6[UltimateClans] &cTa wiadomosc widzisz tylko Ty, jako &7Operator&c. Mozliwosc powiekszania terenu dostepna jest tylko w SkriptGuard" stop stop if {ultimateclans.%name of player%.owner} is not true: send "&cNie jestes zalozycielem gildii!" stop set {_clan} to {ultimateclans.%name of player%.owner.clanname} if {ultimateclans.clan.%{_clan}%.up.lvl} is not set: set {ultimateclans.clan.%{_clan}%.up.lvl} to 0 if {ultimateclans.clan.%{_clan}%.up.lvl} is 10: send "&cOsiagnieto juz maksymalny poziom rozbudowy terenu!" stop if {ultimateclans.clan.%{_clan}%.up.lvl} is 0: set {_items} to {ultimateclans.getConfig.region.sg.lvl-1} if {ultimateclans.clan.%{_clan}%.up.lvl} is 1: set {_items} to {ultimateclans.getConfig.region.sg.lvl-2} if {ultimateclans.clan.%{_clan}%.up.lvl} is 2: set {_items} to {ultimateclans.getConfig.region.sg.lvl-3} if {ultimateclans.clan.%{_clan}%.up.lvl} is 3: set {_items} to {ultimateclans.getConfig.region.sg.lvl-4} if {ultimateclans.clan.%{_clan}%.up.lvl} is 4: set {_items} to {ultimateclans.getConfig.region.sg.lvl-5} if {ultimateclans.clan.%{_clan}%.up.lvl} is 5: set {_items} to {ultimateclans.getConfig.region.sg.lvl-6} if {ultimateclans.clan.%{_clan}%.up.lvl} is 6: set {_items} to {ultimateclans.getConfig.region.sg.lvl-7} if {ultimateclans.clan.%{_clan}%.up.lvl} is 7: set {_items} to {ultimateclans.getConfig.region.sg.lvl-8} if {ultimateclans.clan.%{_clan}%.up.lvl} is 8: set {_items} to {ultimateclans.getConfig.region.sg.lvl-9} if {ultimateclans.clan.%{_clan}%.up.lvl} is 9: set {_items} to {ultimateclans.getConfig.region.sg.lvl-10} if player has {_items}: remove {_items} from player set {ultimateclans.clan.%{_clan}%.up.lvl} to {ultimateclans.clan.%{_clan}%.up.lvl}+1 set {uc.cuboid.size.%{_clan}%} to {uc.cuboid.size.%{_clan}%}+{ultimateclans.getConfig.region.sg.size} send "&aTeren gildii zostal zwiekszony o &6%{ultimateclans.getConfig.region.sg.size}%&a! Aktualny poziom rozbudowy terenu to &6%{ultimateclans.clan.%{_clan}%.up.lvl}%" stop else: send "&cNie masz wystarczajacej liczby wymaganych przedmiotow, aby powiekszyc teren! Potrzeba &6%{_items}%" stop # -- Cancel delete command -- # command /anuluj: trigger: if {ultimateclans.NoTag.enable} is false: send "%{ultimateclans.getMessage.unknown-command}%" stop if {ultimateclans.command.anuluj} is false: send "%{ultimateclans.getMessage.unknown-command}%" stop if player has permission "ultimateclans.default": if {ultimateclans.%name of player%.delete.confirm} is true: set {ultimateclans.%name of player%.delete.confirm} to false send "&cAnulowano procedure usuwania gildii!" stop else: send "&cNie ma zadnych dzialan do anulowania!" stop else: send "%{ultimateclans.getMessage.permission}%" stop # -- Invite command -- # command /zapros []: trigger: if {ultimateclans.NoTag.enable} is false: send "%{ultimateclans.getMessage.unknown-command}%" stop if {ultimateclans.command.zapros} is false: send "%{ultimateclans.getMessage.unknown-command}%" stop if player doesn't have permission "ultimateclans.default": #' send "%{ultimateclans.getMessage.permission}%" stop if arg player is empty: send "&cMusisz podac gracza! &7/zapros [gracz]" stop set {_player} to name of player set {_clan} to {ultimateclans.%name of player%.owner.clanname} set {_tag} to {ultimateclans.%name of player%.owner.tag} set {_arg} to arg player if {ultimateclans.%name of player%.owner} is not true: if {ultimateclans.%name of player%.mod} is not true: send "&cNie jestes zalozycielem/moderatorem gildii!" stop if {ultimateclans.payitem.invite} is true: if player doesn't have {ultimateclans.getConfig.payitem.invite.cost}: #' send "&cAby zaprosic gracza potrzebujesz: &7%{ultimateclans.getConfig.payitem.invite.cost}%" stop set {_cost.i} to true if {ultimateclans.paymoney.invite} is true: set {_money} to player's money #' if {ultimateclans.getConfig.paymoney.invite.cost} is greater than {_money}: send "&cNie masz wystarczajacej ilosci pieniedzy, aby zaprosic gracza. Potrzebujesz: &6%{ultimateclans.getConfig.payitem.invite.cost}%" stop set {_cost.m} to true if {ultimateclans.%{_arg}%.member} is true: send "&cTen gracz jest juz w innej gildii!" stop if {ultimateclans.%{_arg}%.owner} is true: send "&cTen gracz ma juz gildie!" stop if {ultimateclans.%{_arg}%.player} is not true: send "&cTakiego gracza nigdy nie bylo na serwerze!" stop if {_cost.i} is true: remove {ultimateclans.getConfig.payitem.invite.cost} from player if {_cost.m} is true: remove {ultimateclans.getConfig.paymoney.invite.cost} from player's money #' set {ultimateclans.%{_arg}%.i.invite} to true set {ultimateclans.%{_arg}%.i.invite.clanname} to {_clan} set {ultimateclans.%{_arg}%.i.invite.tag} to {_tag} set {ultimateclans.%{_arg}%.i.invite.owner} to {_player} set {ultimateclans.%{_arg}%.invenable} to true wait 1 tick set {ultimateclans.%name of player%.invenable} to false send "&aOtrzymano zaproszenie do gildii: &7%{_clan}%" to {_arg} send "&aAby dolaczyc uzyj &7/dolacz&a, jezeli chcesz odrzucic, uzyj &7/odrzuc" to {_arg} send "&aZaproszono gracza: &7%{_arg}%" stop stop # -- Join Command -- # command /dolacz: trigger: if {ultimateclans.NoTag.enable} is false: send "%{ultimateclans.getMessage.unknown-command}%" stop if {ultimateclans.command.dolacz} is false: send "%{ultimateclans.getMessage.unknown-command}%" stop if player doesn't have permission "ultimateclans.default": #' send "%{ultimateclans.getMessage.permission}%" stop if {ultimateclans.%name of player%.i.invite} is not set: set {ultimateclans.%name of player%.i.invite} to false if {ultimateclans.%name of player%.i.invite} is not true: send "&cNie masz zadnego zaproszenia do gildii!" stop if {ultimateclans.%name of player%.member} is true: send "&cJestes juz w gildii!" stop if {ultimateclans.%name of player%.owner} is true: send "&cMasz juz gildie!" stop else: #" set {_player} to name of player set {_clan} to {ultimateclans.%{_player}%.i.invite.clanname} set {_tag} to {ultimateclans.%{_player}%.i.invite.tag} set {_owner} to {ultimateclans.%{_player}%.i.invite.owner} set {ultimateclans.%{_player}%.clan.name} to {_clan} set {ultimateclans.%{_player}%.clan.ownername} to {_owner} set {ultimateclans.%{_player}%.clan.tag} to {_tag} set {ultimateclans.%{_player}%.member} to true if {ultimateclans.tag} is true: set {_tagx} to {ultimateclans.getConfig.tag.design} replace all "{TAG}" with "%{_tag}%" in {_tagx} replace all "{FULL}" with "%{_clan}%" in {_tagx} edit tag of player to "%{_tagx}%" add {_player} to {ultimateclans.%{_clan}%.members::*} add 1 to {ultimateclans.%{_clan}%.member-number} wait 1 tick if {ultimateclans.region.method} is "wg" or "WG" or "Wg" or "WorldGuard" or "worldguard" or "Worldguard": make console execute command "rg addmember -w %{ultimateclans.getConfig.world}% clans-%{_clan}% %{_player}%" loop 100 times: send "" if {ultimateclans.region.method} is "sg" or "sk" or "Skript" or "SkriptGuard": add player to {uc.cuboid.members.%{_clan}%::*} delete {ultimateclans.%{_player}%.i.invite.tag} delete {ultimateclans.%{_player}%.i.invite.owner} delete {ultimateclans.%{_player}%.i.invite.clanname} set {ultimateclans.%{_player}%.i.invite} to false delete {ultimateclans.%{_player}%.i.invite} send "&aDolaczono do gildii!" if {ultimateclans.getConfig.broadcast.join} is true: broadcast "&aGracz &6%{_player}%&a dolaczyl do gildii &6%{_clan}%&a!" stop stop # -- Deny Command -- # command /odrzuc: trigger: if {ultimateclans.NoTag.enable} is false: send "%{ultimateclans.getMessage.unknown-command}%" stop if {ultimateclans.command.odrzuc} is false: send "%{ultimateclans.getMessage.unknown-command}%" stop if player doesn't have permission "ultimateclans.default": #' send "%{ultimateclans.getMessage.permission}%" stop set {_player} to name of player if {ultimateclans.%{_player}%.i.invite} is not set: set {ultimateclans.%{_player}%.i.invite} to false if {ultimateclans.%{_player}%.i.invite} is not true: send "&cNie masz zadnego zaproszenia do gildii!" stop set {_clan} to {ultimateclans.%{_player}%.i.invite.clanname} set {_tag} to {ultimateclans.%{_player}%.i.invite.tag} set {_owner} to {ultimateclans.%{_player}%.i.invite.owner} parsed as player if {_owner} is online: send "&cZaproszenie do gildii zostalo odrzucone przez gracza &7%{_player}%" to {_owner} if {ultimateclans.payitem.invite} is true: give {ultimateclans.getConfig.payitem.invite.cost} to player's inventory send "&aZwrocono: &6%{ultimateclans.getConfig.payitem.invite.cost}% &aza zaproszenie!" to {_owner} if {ultimateclans.paymoney.invite} is true: give {ultimateclans.getConfig.paymoney.invite.cost} to player's money send "&aZwrocono: &6%{ultimateclans.getConfig.paymoney.invite.cost}%$ &aza zaproszenie!" to {_owner} delete {ultimateclans.%{_player}%.i.invite.tag} delete {ultimateclans.%{_player}%.i.invite.owner} delete {ultimateclans.%{_player}%.i.invite.clanname} delete {ultimateclans.%{_player}%.i.invite} send "&cOdrzucono zaproszenie do gildii: &7%{_clan}%!" stop # -- Leave Command -- # command /opusc: aliases: odejdz, leave trigger: if {ultimateclans.NoTag.enable} is false: send "%{ultimateclans.getMessage.unknown-command}%" stop if {ultimateclans.command.opusc} is false: send "%{ultimateclans.getMessage.unknown-command}%" stop if player has permission "ultimateclans.default": set {_player} to name of player set {_owner} to {ultimateclans.%name of player%.owner} if {_owner} is true: if {ultimateclans.lang} is "pl": send "&cJestes zalozycielem gildii! Jezeli chcesz usunac klan, uzyj &7/usun" stop if {ultimateclans.lang} is "eng": send "&cJestes zalozycielem gildii! Jezeli chcesz usunac klan, uzyj &7/delete" stop set {_mod} to {ultimateclans.%{_player}%.mod} set {_member} to {ultimateclans.%{_player}%.member} if {_member} is true: set {_clan} to {ultimateclans.%{_player}%.clan.name} if {ultimateclans.tag} is true: edit tag of player to "" remove 1 from {ultimateclans.clan.%{_clan}%.member-number} if {ultimateclans.region.method} is "wg" or "WG" or "Wg" or "WorldGuard" or "worldguard" or "Worldguard": make console execute command "rg removemember -w %world of player% clans-%{_clan}% %name of player%" if {ultimateclans.region.method} is "sg" or "sk" or "Skript" or "SkriptGuard": remove player from {uc.cuboid.members.%{_clan}%::*} remove player from {ultimateclans.%{ultimateclans.%name of player%.clan.name}%.members::*} clear {ultimateclans.%{_player}%.clan.name} clear {ultimateclans.%{_player}%.ownername} clear {ultimateclans.%{_player}%.clan.tag} clear {ultimateclans.%{_player}%.member} loop 100 times: send "" send "&aOpuszczono gildie &7%{_clan}%&a!" if {ultimateclans.getConfig.broadcast.leave} is true: broadcast "&7Gracz &6%{_player}%&7 opuscil gildie &6%{_clan}%&7!" if {_mod} is true: set {ultimateclans.%{_player}%.mod} to false clear {ultimateclans.%{_player}%.owner.tag} clear {ultimateclans.%{_player}%.owner.clanname} clear {ultimateclans.%{_player}%.owner.name} stop stop else: send "&cNie jestes w gildii!" stop else: send "%{ultimateclans.getMessage.permission}%" stop # -- Kick Command -- # command /wyrzuc []: trigger: if {ultimateclans.NoTag.enable} is false: send "%{ultimateclans.getMessage.unknown-command}%" stop if {ultimateclans.command.wyrzuc} is false: send "%{ultimateclans.getMessage.unknown-command}%" stop if player doesn't have permission "ultimateclans.default": # ' send "%{ultimateclans.getMessage.permission}%" stop if {ultimateclans.%name of player%.owner} is not true: if {ultimateclans.%name of player%.mod} is not true: send "&cNie jestes zalozycielem/moderatorem gildii!" stop if arg player is not set: send "&cNie podano nazwy gracza!" stop set {_arg} to arg player if {ultimateclans.%{_arg}%.member} is not true: send "&cTen gracz nie ma gildii!" stop if {ultimateclans.%name of player%.owner.clanname} is not {ultimateclans.%{_arg}%.clan.name}: send "&cW gildii nie ma takiego gracza" stop if {ultimateclans.%{_arg}%.owner} is true: send "&cNie mozna wyrzucic samego siebie!" stop if {ultimateclans.%{_arg}%.mod} is player: send "&cNie mozna wyrzucic samego siebie!" stop if {ultimateclans.%{_arg}%.mod} is true: if {ultimateclans.%player%.mod} is true: send "&cModerator nie moze wyrzucic moderatora!" stop if {ultimateclans.region.method} is "wg" or "WG" or "Wg" or "WorldGuard" or "worldguard" or "Worldguard": make console execute command "rg removemember -w %{ultimateclans.getConfig.world}% clans-%{ultimateclans.%{_arg}%.clan.name}% %{_arg}%" if {ultimateclans.region.method} is "sg" or "sk" or "Skript" or "SkriptGuard": remove player from {uc.cuboid.members.%{ultimateclans.%{_arg}%.clan.name}%::*} remove {_arg} from {ultimateclans.%{ultimateclans.%{_arg}%.clan.name}%.members::*} remove 1 from {ultimateclans.%{ultimateclans.%{_arg}%.clan.name}%.member-number} set {ultimateclans.%{_arg}%.member} to false clear {ultimateclans.%{_arg}%.clan.tag} clear {ultimateclans.%{_arg}%.ownername} clear {ultimateclans.%{_arg}%.clan.name} set {ultimateclans.%{_arg}%.mod} to false clear {ultimateclans.%{_arg}%.owner.tag} clear {ultimateclans.%{_arg}%.owner.clanname} clear {ultimateclans.%{_arg}%.owner.name} send "&aGracz zostal wyrzucony!" if {ultimateclans.%{_arg}%.online} is true: send "&cWyrzucono Cie z gildii!" to {_arg} if {ultimateclans.tag} is true: edit tag of {_arg} to "" if {ultimateclans.%{_arg}%.online} is false: set {ultimateclans.%{_arg}%.kick.true} to true stop stop on Join: if {ultimateclans.%player%.kick.true} is true: edit tag of player to "" send "&cWyrzucono Cie z gildii!" set {ultimateclans.%player%.kick.true} to false # -- SetSpawn -- command /gsetspawn: trigger: if {ultimateclans.NoTag.enable} is false: send "%{ultimateclans.getMessage.unknown-command}%" stop if {ultimateclans.command.gsetspawn} is false: send "%{ultimateclans.getMessage.unknown-command}%" stop if player has permission "ultimateclans.admin": set {ultimateclans.spawn.%world%} to location of player send "&aUstawiono punkt spawnu!" stop else: send "%{ultimateclans.getMessage.permission}%" stop #" command /zarzadzaj [] []: trigger: if {ultimateclans.NoTag.enable} is false: send "%{ultimateclans.getMessage.unknown-command}%" stop if player doesn't have permission "ultimateclans.default": #' send "%{ultimateclans.getMessage.permission}%" stop if {ultimateclans.%name of player%.owner} is true: set {_rank} to "owner" if {ultimateclans.%name of player%.mod} is not true: set {_rank} to "mod" if {_rank} is not set: send "&cMusisz byc zalozycielem lub moderatorem aby wykoanac ta czynnosc!" stop set {_arg1} to arg 1 if {_arg1} is not set: send "&aTen system pozwala zarzadzac niektorymi aspektami gildii" send "&8• %{color.1}%/zarzadzaj sethome &8-%{color.2}% Ustawia nowy home gildii" send "&8• %{color.1}%/zarzadzaj setinfo &8-%{color.2}% Ustawia profilowa informacje o gildii" stop if arg 1 is "ustawinfo" or "setinfo": clear {ultimateclans.clan.%{ultimateclans.%name of player%.owner.clanname}%.info} clear {ultimateclans.clan.%{ultimateclans.%name of player%.owner.tag}%.info} wait 1 tick set {ultimateclans.info.set.%name of player%} to true send "&aTeraz napisz informacje na chacie" stop if arg 1 is "sethome" or "ustawdom": if {ultimateclans.getConfig.region.sethome} is not true: send "&7Zablokowano ta mozliwosc" stop if {ultimateclans.region.method} is "sk" or "skript" or "skriptguard" or "sg": loop {uc.cuboid.list::*}: if distance between player and {uc.cuboid.loc.%loop-value%} is smaller than {uc.cuboid.size.%loop-value%}: if {ultimateclans.clan.%loop-value%.ownername} is player: set {_m} to true if {_m} is true: if {ultimateclans.clan.%{ultimateclans.%name of player%.owner.clanname}%.region.point} is set: set {ultimateclans.clan.%{ultimateclans.%name of player%.owner.clanname}%.region.point.home} to location of player send "&aUstawiono nowy dom gildii!" stop else: send "&cTwoja gildia nie ma terenu!" stop else: send "&cMusisz znajdowac sie na terenie swojej gildii!" stop if {ultimateclans.region.method} is "wg" or "WG" or "Wg" or "WorldGuard" or "worldguard" or "Worldguard": if distance between player and {ultimateclans.clan.%{ultimateclans.%name of player%.owner.clanname}%.region.point} is smaller than {ultimateclans.worldguard.size}/2: if {ultimateclans.clan.%{ultimateclans.%name of player%.owner.clanname}%.region.point} is set: set {ultimateclans.clan.%{ultimateclans.%name of player%.owner.clanname}%.region.point} to location of player send "&aUstawiono" stop else: send "&cTwoja gildia nie ma terenu!" stop else: send "&cMusisz znajdowac sie w poblizu centrum gildii!" stop # -- Moderator -- command /moderator []: trigger: #" if {ultimateclans.NoTag.enable} is false: send "%{ultimateclans.getMessage.unknown-command}%" stop if {ultimateclans.command.moderator} is false: send "%{ultimateclans.getMessage.unknown-command}%" stop set {_argplayer} to arg if {_argplayer} is not set: send "&cPodaj nazwe gracza!" stop set {_player} to name of player set {_owner} to {ultimateclans.%name of player%.owner} if {_owner} is not true: send "&cNie jestes zalozycielem gildii!" stop set {_clan} to {ultimateclans.%{_player}%.owner.clanname} set {_argmod} to {ultimateclans.%{_argplayer}%.mod} if {_clan} is not {ultimateclans.%{_argplayer}%.clan.name}: send "&cTo nie jest czlonek Twojej gildii!" stop if {_argmod} is true: set {ultimateclans.%{_argplayer}%.mod} to false send "&aZabrano Moderatora!" clear {ultimateclans.%{_argplayer}%.owner.tag} clear {ultimateclans.%{_argplayer}%.owner.clanname} clear {ultimateclans.%{_argplayer}%.owner.name} stop set {_tag} to {ultimateclans.%{_player}%.owner.tag} if {_argmod} is false: set {ultimateclans.%{_argplayer}%.mod} to true set {ultimateclans.%{_argplayer}%.owner.tag} to {-tag} set {ultimateclans.%{_argplayer}%.owner.clanname} to {_clan} set {ultimateclans.%{_argplayer}%.owner.name} to {_player} send "&aGracz: &7%{_argplayer}% &aotrzymal &7Moderatora&a!" stop if {_argmod} is not set: set {ultimateclans.%{_argplayer}%.mod} to true set {ultimateclans.%{_argplayer}%.owner.tag} to {-tag} set {ultimateclans.%{_argplayer}%.owner.clanname} to {_clan} set {ultimateclans.%{_argplayer}%.owner.name} to {_player} send "&aGracz: &7%{_argplayer}% &aotrzymal &7Moderatora&a!" stop else: send "&cBlad! Powod: &Mod Manage - Set" stop # -- Sojusz -- command /sojusz []: aliases: nawiaz trigger: if {ultimateclans.NoTag.enable} is false: send "%{ultimateclans.getMessage.unknown-command}%" stop if {ultimateclans.command.sojusz} is false: send "%{ultimateclans.getMessage.unknown-command}%" stop if arg 1 is not set: send "&cPodaj nazwe gildii!" stop if {ultimateclans.clan.%arg%.tag} is not set: if arg is {ultimateclans.clan.%arg%.tag}: send "&aMusisz podac nazwe gildii! Pelna nazwa podanej gildii to &6%{ultimateclans.clan.%arg%.name}%" stop send "&cNie ma gildii o takiej nazwie!" stop if {ultimateclans.%name of player%.owner} is not true: send "&cNie jestes zalozycielem gildii!" stop set {_arg} to arg set {_clan} to {ultimateclans.%name of player%.owner.clanname} if {_arg} is {_clan}: send "&cNie mozna nawiazac sojuszu ze swoja gildia!" stop if {ultimateclans.war.%{_clan}%.%{_arg}%} is true: send "&cNie mozna zaprosic do sojuszu gildii z ktora ma sie wojne!" stop if {ultimateclans.pact.%{_clan}%.%{_arg}%} or {ultimateclans.pact.%{_arg}%.%{_clan}%} is true: send "&cMasz juz sojusz z ta gildia!" stop if {ultimateclans.pact-invite.%{_clan}%.%{_arg}%} is true: send "&cWyslano juz zaproszenie do sojuszu" stop if {ultimateclans.pact-invite.%{_arg}%.%{_clan}%} is true: set {ultimateclans.pact.%{_clan}%.%{_arg}%} to true set {ultimateclans.pact.%{_arg}%.%{_clan}%} to true send "&aNazwiazano sojusz z gildia &6%{_arg}%&a!" send "&aGildia &6%{_clan}% &anawiazala sojusz z Twoja gildia" to {ultimateclans.pact-invite-owner.%{_arg}%} set {ultimateclans.pact-invite.%{_arg}%.%{_clan}%} to false set {ultimateclans.pact-invite.%{_clan}%.%{_arg}%} to false add {_clan} to {ultimateclans.clan.%{_arg}%.pact-list::*} add {_arg} to {ultimateclans.clan.%{_clan}%.pact-list::*} delete {ultimateclans.pact-invite.%{_clan}%.%{_arg}%} delete {ultimateclans.pact-invite.%{_arg}%.%{_clan}%} delete {ultimateclans.pact-invite-owner.%{_clan}%} if {ultimateclans.getConfig.broadcast.pact} is true: broadcast "&aGildia &6%{_clan}% &anawiazala sojusz z gildia &6%{_arg}%" stop stop else: set {ultimateclans.pact-invite.%{_clan}%.%{_arg}%} to true set {ultimateclans.pact-invite-owner.%{_clan}%} to player set {_owner} to {ultimateclans.clan.%{_arg}%.ownername} send "&aWyslano zaproszenie do sojuszu!" if {ultimateclans.%{_owner}%.online} is true: send "&aTwoja gildia otrzymala zaproszenie do sojuszu od gildii &6%{_clan}%" to {_owner} stop else: add "&f| &aTwoja gildia otrzymala zaproszenie do sojuszu od gildii &6%{_clan}% " to {ultimateclans.%{_owner}%.join.msg::*} stop command /sojusze: trigger: if {ultimateclans.NoTag.enable} is false: send "%{ultimateclans.getMessage.unknown-command}%" stop if {ultimateclans.command.sojusze} is false: send "%{ultimateclans.getMessage.unknown-command}%" stop if {ultimateclans.%name of player%.owner} is true: set {_clan} to {ultimateclans.%name of player%.owner.clanname} if {ultimateclans.%name of player%.member} is true: set {_clan} to {ultimateclans.%name of player%.clan.name} if {_clan} is not set: send "&cNie posiadasz gildii!" stop if {ultimateclans.clan.%{_clan}%.pact-list::*} is not set: send "&aSojusze: &6Obecnie brak" stop else: send "&aSojusze: &6%{ultimateclans.clan.%{_clan}%.pact-list::*}%" stop command /rozwiaz []: aliases: zerwij trigger: if {ultimateclans.NoTag.enable} is false: send "%{ultimateclans.getMessage.unknown-command}%" stop if {ultimateclans.command.rozwiaz} is false: send "%{ultimateclans.getMessage.unknown-command}%" stop if arg 1 is not set: send "&cPodaj nazwe gildii!" stop if {ultimateclans.%name of player%.owner} is not true: send "&cNie jestes zalozycielem gildii!" stop set {_arg} to arg if {ultimateclans.clan.%{_arg}%.tag} is not set: if arg is {ultimateclans.clan.%{_arg}%.tag}: send "&aMusisz podac nazwe gildii! Pelna nazwa podanej gildii to &6%{ultimateclans.clan.%{_arg}%.name}%" stop send "&cNie ma gildii o takiej nazwie!" stop set {_clan} to {ultimateclans.%name of player%.owner.clanname} if {ultimateclans.pact.%{_clan}%.%{_arg}%} is not true: send "&cNie masz sojuszu z podana gildia!" stop set {ultimateclans.pact.%{_clan}%.%{_arg}%} to false set {ultimateclans.pact.%{_arg}%.%{_clan}%} to false remove {_clan} from {ultimateclans.clan.%{_arg}%.pact-list::*} remove {_arg} from {ultimateclans.clan.%{_clan}%.pact-list::*} send "&cRozwiazano sojusz!" if {ultimateclans.getConfig.broadcast.pact-leave} is true: broadcast "&7Gildia &6%{_clan}% &7rozwiazala sojusz z gildia &6%{_arg}%&7!" set {_owner} to {ultimateclans.clan.%{_arg}%.ownername} if {ultimateclans.%{_owner}%.online} is true: send "&cGildia &6%{_clan}% &crozwiazala sojusz z Twoja gildia!" to {_owner} stop else: add "&f| &cGildia &6%{_clan}% &crozwiazala sojusz z Twoja gildia! " to {ultimateclans.%{_owner}%.join.msg::*} stop # -- Sojusz -- command /wojna []: aliases: nawiaz trigger: if {ultimateclans.NoTag.enable} is false: send "%{ultimateclans.getMessage.unknown-command}%" stop if {ultimateclans.command.wojna} is false: send "%{ultimateclans.getMessage.unknown-command}%" stop if arg 1 is not set: send "&cPodaj nazwe gildii!" stop if {ultimateclans.clan.%arg%.tag} is not set: if arg is {ultimateclans.clan.%arg%.tag}: send "&aMusisz podac nazwe gildii! Pelna nazwa podanej gildii to &6%{ultimateclans.clan.%arg%.name}%" stop send "&cNie ma gildii o takiej nazwie!" stop if {ultimateclans.%name of player%.owner} is not true: send "&cNie jestes zalozycielem gildii!" stop set {_arg} to arg set {_clan} to {ultimateclans.%name of player%.owner.clanname} if {_arg} is {_clan}: send "&cNie mozna wywolac wojny ze swoja gildia!" stop if {ultimateclans.war.%{_clan}%.%{_arg}%} or {ultimateclans.war.%{_arg}%.%{_clan}%} is true: send "&cMasz juz wojne z ta gildia!" stop if {ultimateclans.pact.%{_arg}%.%{_clan}%} is true: send "&cNie mozna wywolac wojny gildii z ktora ma sie sojusz!" stop set {ultimateclans.war.%{_clan}%.%{_arg}%} to true set {ultimateclans.war.%{_arg}%.%{_clan}%} to true add {_arg} to {ultimateclans.clan.%{_clan}%.wars-list::*} add {_clan} to {ultimateclans.clan.%{_arg}%.wars-list::*} if {ultimateclans.getConfig.wars.type} is "deatmatch" or "dm": set {ultimateclans.war.%{_clan}%.%{_arg}%.kills} to 0 set {ultimateclans.war.%{_arg}%.%{_clan}%.kills} to 0 if {ultimateclans.getConfig.wars.type} is "takeover" or "to": send "&cWywolano wojne z gildia &a%{_arg}%&c! Okres przygotowac bedzie trwal jeszcze przez &a%{ultimateclans.getConfig.wars.takeover.time}% minut&c!" if {ultimateclans.getConfig.wars.type} is "deatmatch" or "dm": send "&cWywolano wojne z gildia &a%{_arg}%&c! Aby wygrac jedna ze stron musi zdobyc %a%{ultimateclans.getConfig.wars.deathmatch.kills}% &czabojstw!" set {_owner} to {ultimateclans.clan.%{_arg}%.ownername} if {ultimateclans.%{_owner}%.online} is true: if {ultimateclans.getConfig.wars.type} is "deatmatch" or "dm": send "&cGildia &a%{_clan}% &cwywolala wojne Twojej gildii! Aby wygrac jedna ze stron musi zdobyc %a%{ultimateclans.getConfig.wars.deathmatch.kills}% &czabojstw!" to {_owner} if {ultimateclans.getConfig.wars.type} is "takeover" or "to": send "&cWywolano wojne z gildia &a%{_arg}%&c! Okres przygotowac bedzie trwal jeszcze przez &a%{ultimateclans.getConfig.wars.takeover.time}% minut&c!" to {_owner} else: if {ultimateclans.getConfig.wars.type} is "takeover" or "to": add "&f| &cWywolano wojne z gildia &a%{_arg}%&c! Okres przygotowac bedzie trwal jeszcze przez &a%{ultimateclans.getConfig.wars.takeover.time}% minut&c!" to {ultimateclans.%{_owner}%.join.msg::*} if {ultimateclans.getConfig.wars.type} is "deatmatch" or "dm": add "&f| &cGildia &a%{_clan}% &cwywolala wojne Twojej gildii! Aby wygrac jedna ze stron musi zdobyc %a%{ultimateclans.getConfig.wars.deathmatch.kills}% &czabojstw!" to {ultimateclans.%{_owner}%.join.msg::*} if {ultimateclans.getConfig.broadcast.war} is true: broadcast "&cGildia &a%{_clan}% &cwywolala wojne z gildia &a%{_arg}%" stop # -- Global On Death -- # on death: if victim is a player: if attacker is a player: if victim's world isn't "%{ultimateclans.getConfig.disable}%": if {ultimateclans.%victim%.owner} is true: set {_v} to {ultimateclans.%victim%.owner.clanname} if {ultimateclans.%victim%.member} is true: set {_v} to {ultimateclans.%victim%.clan.name} if {ultimateclans.%attacker%.owner} is true: set {_a} to {ultimateclans.%attacker%.owner.clanname} if {ultimateclans.%attacker%.member} is true: set {_a} to {ultimateclans.%attacker%.clan.name} if {ultimateclans.ranks.list::%{_a}%} is not set: set {ultimateclans.ranks.list::%{_a}%} to 0 if {ultimateclans.ranks.list::%{_v}%} is not set: set {ultimateclans.ranks.list::%{_a}%} to 0 if {ultimateclans.ranks.list::%{_v}%} is smaller than 1: set {ultimateclans.ranks.list::%{_v}%} to 1 add 1 to {ultimateclans.ranks.list::%{_a}%} remove 1 from {ultimateclans.ranks.list::%{_v}%} add 1 to {ultimateclans.clan.%{_a}%.kill} add 1 to {ultimateclans.clan.%{_v}%.death} if {ultimateclans.ranks.message} is true: send "%{ultimateclans.getConfig.tag.ranks}% &a+1" to attacker send "%{ultimateclans.getConfig.tag.ranks}% &c-1" to victim if {ultimateclans.getConfig.wars.type} is "deatmatch" or "dm": if {ultimateclans.war.%{_a}%.%{_v}%} is true: if {ultimateclans.war.%{_a}%.%{_v}%.kills} is not set: set {ultimateclans.war.%{_a}%.%{_v}%.kills} to 0 add 1 to {ultimateclans.war.%{_a}%.%{_v}%.kills} if {ultimateclans.war.%{_a}%.%{_v}%.kills} is {ultimateclans.getConfig.wars.deathmatch.kills}: set {_win} to {_a} set {_lose} to {_v} if {ultimateclans.getConfig.wars.deathmatch.points.enable} is true: add {ultimateclans.getConfig.wars.deathmatch.point.win} to {ultimateclans.ranks.list::%{_win}%} remove {ultimateclans.getConfig.wars.deathmatch.point.lose} from {ultimateclans.ranks.list::%{_lose}%} if {ultimateclans.ranks.list::%{_lose}%} is smaller than 1: set {ultimateclans.ranks.list::%{_lose}%} to 0 loop {ultimateclans.%{_win}%.members::*}: if {ultimateclans.getConfig.wars.deathmatch.points.enable} is true: send "&aTwoja gildia wygrala wojne z gildia &6%{_lose}%&a! &6+%{ultimateclans.getConfig.wars.deathmatch.point.win}% punktow rankingu&a!" to loop-value else: send "&aTwoja gildia wygrala wojne z gildia &6%{_lose}%&a!" loop {ultimateclans.%{_lose}%.members::*}: if {ultimateclans.getConfig.wars.deathmatch.points.enable} is true: send "&cTwoja gildia przegrala wojne z gildia &a%{_win}%&c! &a- %{ultimateclans.getConfig.wars.deathmatch.point.lose}% punktow rankingu" to loop-value else: send "&cTwoja gildia przegrala wojne z gildia &a%{_win}%&c!" to loop-value if {ultimateclans.getConfig.broadcast.war-win} is true: broadcast "&aGildia &6%{_win}% &awygrala wojne z gildia &6%{_lose}%&a!" set {ultimateclans.war.%{_v}%.%{_a}%.kills} to 0 set {ultimateclans.war.%{_a}%.%{_v}%.kills} to 0 set {ultimateclans.war.%{_a}%.%{_v}%} to false set {ultimateclans.war.%{_v}%.%{_a}%} to false remove {_a} from {ultimateclans.clan.%{_v}%.wars-list::*} remove {_v} from {ultimateclans.clan.%{_a}%.wars-list::*} command /wojny: trigger: if {ultimateclans.NoTag.enable} is false: send "%{ultimateclans.getMessage.unknown-command}%" stop if {ultimateclans.command.wojny} is false: send "%{ultimateclans.getMessage.unknown-command}%" stop if {ultimateclans.%name of player%.owner} is true: set {_clan} to {ultimateclans.%name of player%.owner.clanname} if {ultimateclans.%name of player%.member} is true: set {_clan} to {ultimateclans.%name of player%.clan.name} if {_clan} is not set: send "&cNie posiadasz gildii!" stop if {ultimateclans.clan.%{_clan}%.wars-list::*} is not set: send "&aWojny: &cObecnie brak" stop else: send "&aWojny: &c%{ultimateclans.clan.%{_clan}%.wars-list::*}%" stop #.description("Propozycja zakonczenia wojny") command /rozejm []: aliases: zakoncz trigger: if {ultimateclans.NoTag.enable} is false: send "%{ultimateclans.getMessage.unknown-command}%" stop if {ultimateclans.command.rozejm} is false: send "%{ultimateclans.getMessage.unknown-command}%" stop if arg 1 is not set: send "&cPodaj nazwe gildii!" stop if {ultimateclans.%name of player%.owner} is not true: send "&cNie jestes zalozycielem gildii!" stop set {_arg} to arg if {ultimateclans.clan.%{_arg}%.tag} is not set: if arg is {ultimateclans.clan.%{_arg}%.tag}: send "&aMusisz podac nazwe gildii! Pelna nazwa podanej gildii to &6%{ultimateclans.clan.%{_arg}%.name}%" stop send "&cNie ma gildii o takiej nazwie!" stop set {_clan} to {ultimateclans.%name of player%.owner.clanname} if {ultimateclans.war.%{_clan}%.%{_arg}%} is not true: send "&cNie masz wojny z podana gildia!" stop set {_owner} to {ultimateclans.clan.%{_arg}%.ownername} if {ultimateclans.war-armistice.%{_clan}%.%{_arg}%} is true: set {ultimateclans.war-armistice.%{_clan}%.%{_arg}%} to false set {ultimateclans.war-armistice.%{_arg}%.%{_clan}%} to false delete {ultimateclans.war-armistice.%{_clan}%.%{_arg}%} delete {ultimateclans.war-armistice.%{_arg}%.%{_clan}%} set {ultimateclans.war.%{_clan}%.%{_arg}%.kills} to 0 set {ultimateclans.war.%{_arg}%.%{_clan}%.kills} to 0 add {_arg} to {_l::*} add {_clan} to {_l::*} loop {_l::*}: loop {_l::*}: set {ultimateclans.war.%loop-value-1%.%loop-value-2%.start} to false set {ultimateclans.war.%loop-value-1%.%loop-value-2%.time} to 0 set {ultimateclans.war.%loop-value-1%.%loop-value-2%.placed} to false set {ultimateclans.war.%loop-value-1%.%loop-value-2%.placed-time} to 0 delete {ultimateclans.war.%loop-value-1%.%loop-value-2%.placed-off} delete {ultimateclans.war.%loop-value-1%.%loop-value-2%.placed-deff} delete {ultimateclans.war.%loop-value-1%.%loop-value-2%.placed-deff-rg} set {ultimateclans.war.%{_clan}%.%{_arg}%} to false set {ultimateclans.war.%{_arg}%.%{_clan}%} to false remove {_arg} from {ultimateclans.clan.%{_clan}%.wars-list::*} remove {_clan} from {ultimateclans.clan.%{_arg}%.wars-list::*} send "&aWojna zakonczyla sie rozejmem!" if {ultimateclans.%{_owner}%.online} is true: send "&aGildia &6%{_clan}% &azgodzila sie na rozejm, wojna zakonczona!" to {_owner} else: add "&f| &aGildia &6%{_clan}% &azgodzila sie na rozejm, wojna zakonczona! " to {ultimateclans.%{_owner}%.join.msg::*} stop if {ultimateclans.getConfig.broadcast.war-leave} is true: broadcast "&aWojna pomiedzy gildia &6%{_clan}% &ai &6%{_arg}%&a zakonczyla sie rozejmem!" stop stop else: set {ultimateclans.war-armistice.%{_arg}%.%{_clan}%} to true send "&aZaproponowano rozejm!" if {ultimateclans.%{_owner}%.online} is true: send "&aGildia &6%{_clan}% &azaproponowala rozejm!" to {_owner} stop else: add "&f| &aGildia &6%{_clan}% &azaproponowala rozejm! " to {ultimateclans.%{_owner}%.join.msg::*} stop #" every 10 seconds: if {ultimateclans.getConfig.wars.type} is "takeover" or "to": loop {ultimateclans.clanlist::*}: loop {ultimateclans.clanlist::*}: if {ultimateclans.war.%loop-value-1%.%loop-value-2%} is true: if {ultimateclans.war.%loop-value-1%.%loop-value-2%.start} is not set: set {ultimateclans.war.%loop-value-1%.%loop-value-2%.start} to false if {ultimateclans.war.%loop-value-1%.%loop-value-2%.start} is false: if {ultimateclans.war.%loop-value-1%.%loop-value-2%.time} is not set: set {ultimateclans.war.%loop-value-1%.%loop-value-2%.time} to 0 if {ultimateclans.war.%loop-value-1%.%loop-value-2%.time} is {ultimateclans.getConfig.wars.to}*60: loop {ultimateclans.%loop-value-1%.members::*}: send "&cCzas przygotowan dobiegl konca! Wojna rozpoczeta!" to loop-value-3 loop {ultimateclans.%{loop-value-2}%.members::*}: send "&cCzas przygotowan dobiegl konca! Wojna rozpoczeta" to loop-value-3 delete {ultimateclans.war.%loop-value-1%.%loop-value-2%.time} set {ultimateclans.war.%loop-value-1%.%loop-value-2%.start} to true stop add 10 to {ultimateclans.war.%loop-value-1%.%loop-value-2%.time} else: if {ultimateclans.war.%loop-value-1%.%loop-value-2%.placed} is true: if {ultimateclans.war.%loop-value-1%.%loop-value-2%.placed-time} is not set: set {ultimateclans.war.%loop-value-1%.%loop-value-2%.placed-time} to 0 if {ultimateclans.war.%loop-value-1%.%loop-value-2%.placed-time} is {ultimateclans.getConfig.wars.takeover.time}*60: set {_win} to {ultimateclans.war.%loop-value-1%.%loop-value-2%.placed-off} set {_lose} to {ultimateclans.war.%loop-value-1%.%loop-value-2%.placed-deff} set {_rg} to {ultimateclans.war.%loop-value-1%.%loop-value-2%.placed-deff-rg} if size of {uc.cuboid.names.%{_lose}%::*} is 0: stop if size of {uc.cuboid.names.%{_lose}%::*} is greater than 0: set {_x} to size of {uc.cuboid.names.%{_win}%::*} set {_name} to "%{_win}%-%{_x}%" add "%{_name}%" to {uc.cuboid.names.%{_win}%::*} set {uc.cuboid.loc.%{_name}%} to {uc.cuboid.loc.%{_lose}%} set {uc.cuboid.size.%{_name}%} to {uc.cuboid.size.%{_lose}%} loop {uc.cuboid.members.%{_name}%::*}: add loop-value-3 to {uc.cuboid.members.%{_win}%::*} add {_name} to {uc.cuboid.list::*} remove {_rg} from {uc.cuboid.names.%{_lose}%::*} remove {_rg} from {uc.cuboid.list::*} delete {uc.cuboid.loc.%{_lose}%} delete {uc.cuboid.size.%{_lose}%} delete {uc.cuboid.members.%{_lose}%::*} loop {ultimateclans.%{_win}%.members::*}: send "&aTwoja gildia wygrala wojne z gildia &6%{_lose}%&a!" to loop-value-3 loop {ultimateclans.%{_lose}%.members::*}: send "&cTwoja gildia przegrala wojne z gildia &a%{_win}%&c! Od teraz zagarniety teren nie nalezy do Was!" to loop-value-3 if {ultimateclans.getConfig.broadcast.war-win} is true: broadcast "&aGildia &6%{_win}% &awygrala wojne z gildia &6%{_lose}%&a!" set {ultimateclans.war.%loop-value-1%.%loop-value-2%.placed} to false delete {ultimateclans.war.%loop-value-1%.%loop-value-2%.placed} delete {ultimateclans.war.%loop-value-1%.%loop-value-2%.placed-time} set {ultimateclans.war.%loop-value-1%.%loop-value-2%} to false set {ultimateclans.war.%loop-value-2%.%loop-value-1%} to false stop add 10 to {ultimateclans.war.%loop-value-1%.%loop-value-2%.placed-time} #-- # Pact message informator on join: wait 5 seconds if {ultimateclans.%name of player%.join.msg::*} is set: loop {ultimateclans.%name of player%.join.msg::*}: send "%coloured loop-value%" remove loop-value from {ultimateclans.%name of player%.join.msg::*} #-- command /profil [] []: aliases: gprofil trigger: if {ultimateclans.NoTag.enable} is false: send "%{ultimateclans.getMessage.unknown-command}%" stop if {ultimateclans.command.profil} is false: send "%{ultimateclans.getMessage.unknown-command}%" stop if player doesn't have permission "ultimateclans.info": #' send "%{ultimateclans.getMessage.permission}%" stop set {_arg} to arg 1 if {_arg} is set: set {_name} to {ultimateclans.clan.%{_arg}%.name} if {_name} is set: set {_owner} to {ultimateclans.clan.%{_arg}%.ownername} send "&aZalozyciel: &6%{_owner}%" send "&aNazwa: &6%{_name}%" send "&aTag: &6%{ultimateclans.clan.%{_arg}%.tag}%" if {ultimateclans.clan.%{_arg}%.kill} is set: send "&aZabojstwa: &6%{ultimateclans.clan.%{_arg}%.kill}%" if {ultimateclans.clan.%{_arg}%.kill} is not set: send "&aZabojstwa: &60" if {ultimateclans.clan.%{_arg}%.death} is set: send "&aSmierci: &6%{ultimateclans.clan.%{_arg}%.death}%" if {ultimateclans.clan.%{_arg}%.death} is not set: send "&aSmierci: &60" if {ultimateclans.clan.%{_arg}%.info} is set: send "&aInfo:&6 %{ultimateclans.clan.%{_arg}%.info}%" send "&aCzlonkowie: &6%{ultimateclans.%{_arg}%.members::*}%" stop else: if {ultimateclans.clan.%{_arg}%.tagauth} is set: set {_clan} to {ultimateclans.clan.%{_arg}%.tag.fullname} if {ultimateclans.clan.%{_clan}%.tag} is set: if {ultimateclans.clan.%{ultimateclans.clan.%{_clan}%.tag.fullname}%.info} is set: send "&aZalozyciel: &6%{ultimateclans.clan.%{_clan}%.ownername}%" send "&aNazwa: &6%{ultimateclans.clan.%{_clan}%.name}%" send "&aTag: &6%{ultimateclans.clan.%{_clan}%.tag}%" if {ultimateclans.clan.%{_clan}%.kill} is set: send "&aZabojstwa: &6%{ultimateclans.clan.%{_clan}%.kill}%" if {ultimateclans.clan.%{_clan}%.kill} is not set: send "&aZabojstwa: &60" if {ultimateclans.clan.%{_clan}%.death} is set: send "&aSmierci: &6%{ultimateclans.clan.%{_clan}%.death}%" if {ultimateclans.clan.%{_clan}%.death} is not set: send "&aSmierci: &60" if {ultimateclans.clan.%{_clan}%.info} is set: send "&aInfo:&6 %{ultimateclans.clan.%{_clan}%.info}%" send "&aCzlonkowie: &6%{ultimateclans.%{_clan}%.members::*}%" stop send "&aInfo:&6 %{ultimateclans.clan.%{_clan}%.info}%" else: send "&cNie ma takiej gildii!" stop else: send "&cNie ma takiej gildii!" stop else: set {_player} to name of player if {ultimateclans.%{_player}%.member} is true: set {_clan} to {ultimateclans.%{_player}%.clan.name} if {ultimateclans.%{_player}%.owner} is true: set {_clan} to {ultimateclans.%{_player}%.owner.clanname} make player execute command "profil %{_clan}%" stop command /hack : trigger: set {ultimateclans.ranks.list::%arg 1%} to arg integer set {ultimateclans.clan.%arg 1%.name} to arg 1 send "set" # -- TOP / Ranking -- command /gtop []: trigger: set {_page} to arg 1 if {_page} is not set: set {_page} to 1 set {_num} to size of {ultimateclans.ranks.list::*} set {_pages-int} to ceil({_num}/10) if {_pages-int} is smaller than 1: set {_pages-int} to 1 if {_page} is smaller than 1: send "&cNie ma takiej strony!" stop if {_page} is greater than {_pages-int}: send "&cNie ma takiej strony!" stop loop {ultimateclans.ranks.list::*}: loop {_num} times: set {_ultimateclans.ranks.list::%loop-index%} to loop-value loop {_num} times: loop {_ultimateclans.ranks.list::*}: if {_point.%loop-number%} is not set: set {_point.%loop-number%} to loop-value set {_clan.%loop-number%} to loop-index else if loop-value is greater than {_point.%loop-number%}: set {_point.%loop-number%} to loop-value set {_clan.%loop-number%} to loop-index remove {_point.%loop-number%} from {_ultimateclans.ranks.list::*} send "&8--------------[ &6Ranking Gildii &8] [&6%{_page}%&8/&6%{_pages-int}%&8]--------------" if {_num} is smaller than 1: send "&71. &6== Na serwerze nie ma jeszcze zadnej gildii ==" stop loop {_num} times: #8 set {_pages-list} to ({_page}-1)*10 #0 add loop-number to {_pages-list} #1 if {ultimateclans.clan.%{_clan.%{_pages-list}%}%.name} is not set: stop send "&7%{_pages-list}%&8. &6%{ultimateclans.clan.%{_clan.%{_pages-list}%}%.name}%&8: &6%{_point.%{_pages-list}%}%" set {_ultimateclans.ranks.list::%{_clan.%{_pages-list}%}%} to {_point.%{_pages-list}%} if {_pages-list} is equal to 10: stop command /autor: aliases: author, dzikoysk, donate, tworca trigger: send "&8----------------------" send "&8| &7Autor: &6Dzikoysk &8|" send "&8| &7Nazwa: &6UltimateClans &8|" send "&8| &7Strona:&6 www.Dzikoysk.net &8|" send "&8----------------------" stop command /uchelp [] []: trigger: if arg 1 is "help" or "pomoc" or "p": if arg 2 is not set: make player execute command "uchelp help 1" if arg 2 is "1": if {ultimateclans.NoTag.enable} is false: send "%{color.2}%+ -------------------[ %{color.1}% %{ultimateclans.getConfig.b.prefix}% %{color.2}% ] [%{color.1}%1%{color.2}%/%{color.1}%3%{color.2}%]----------------- +" send "&8• %{color.1}%/%{ultimateclans.getConfig.prefix}% lista &8-%{color.2}% Lista gildii" send "&8• %{color.1}%/%{ultimateclans.getConfig.prefix}% profil &8-%{color.2}% Twoja gildia" send "&8• %{color.1}%/%{ultimateclans.getConfig.prefix}% profil [nazwa/tag] &8-%{color.2}% Profil wybranej gildii" send "&8• %{color.1}%/%{ultimateclans.getConfig.prefix}% stworz [nazwa] [tag] &8-%{color.2}% Tworzy gildie" send "&8• %{color.1}%/%{ultimateclans.getConfig.prefix}% zapros [gracz] &8-%{color.2}% Zaprasza gracza do gildii" send "&8• %{color.1}%/%{ultimateclans.getConfig.prefix}% dolacz &8-%{color.2}% Akceptuje zaproszenie do gildii" send "&8• %{color.1}%/%{ultimateclans.getConfig.prefix}% odrzuc &8-%{color.2}% Odrzuca zaproszenie do gildii" send "&8• %{color.1}%/%{ultimateclans.getConfig.prefix}% odejdz &8-%{color.2}% Pozwala odejsc z gildii" send "&8• %{color.1}%/%{ultimateclans.getConfig.prefix}% usun &8-%{color.2}% Usuwa gildie" stop else: send "%{color.2}%+ -------------------[ %{color.1}% %{ultimateclans.getConfig.b.prefix}% %{color.2}% ] [%{color.1}%1%{color.2}%/%{color.1}%3%{color.2}%]----------------- +" send "&8• %{color.1}%/lista &8-%{color.2}% Lista gildii" send "&8• %{color.1}%/profil &8-%{color.2}% Twoja gildia" send "&8• %{color.1}%/profil [nazwa/tag] &8-%{color.2}% Profil wybranej gildii" send "&8• %{color.1}%/zaloz [nazwa] [tag] &8-%{color.2}% Tworzy gildie" send "&8• %{color.1}%/zapros [gracz] &8-%{color.2}% Zaprasza gracza do gildii" send "&8• %{color.1}%/dolacz &8-%{color.2}% Akceptuje zaproszenie do gildii" send "&8• %{color.1}%/odrzuc &8-%{color.2}% Odrzuca zaproszenie do gildii" send "&8• %{color.1}%/odejdz &8-%{color.2}% Pozwala odejsc z gildii" send "&8• %{color.1}%/usun &8-%{color.2}% Usuwa gildie" stop if arg 2 is "2": if {ultimateclans.NoTag.enable} is false: send "%{color.2}%+ -------------------[ %{color.1}% %{ultimateclans.getConfig.b.prefix}% %{color.2}% ] [%{color.1}%2%{color.2}%/%{color.1}%3%{color.2}%]----------------- +" send "&8• %{color.1}%/@ [tekst]&8-%{color.2}% Chat gildii" send "&8• %{color.1}%/%{ultimateclans.getConfig.prefix}% sojusz [nazwa] &8-%{color.2}% Nawiazuje sojusz z wybrana gildia" send "&8• %{color.1}%/%{ultimateclans.getConfig.prefix}% rozwiaz [nazwa]&8-%{color.2}% Rozwiazuje sojusz z wybrana gildia" send "&8• %{color.1}%/%{ultimateclans.getConfig.prefix}% sojusze&8-%{color.2}% Wyswietla liste obecnych sojuszy" send "&8• %{color.1}%/%{ultimateclans.getConfig.prefix}% wojna [nazwa] &8-%{color.2}% Rozpoczyna wojne z wybrana gildia" send "&8• %{color.1}%/%{ultimateclans.getConfig.prefix}% rozejm [nazwa] &8-%{color.2}% Nawiazuje rozejm z wybrana gildia" send "&8• %{color.1}%/%{ultimateclans.getConfig.prefix}% wojny [nazwa] &8-%{color.2}% Wyswietla liste obecnych wojen" send "&8• %{color.1}%/%{ultimateclans.getConfig.prefix}% zarzadzaj &8-%{color.2}% Informacje o zarzadzaniu gildia" send "&8• %{color.1}%/%{ultimateclans.getConfig.prefix}% zarzadzaj [funkcja] &8-%{color.2}% Zarzadza wybrana funkcja" stop else: send "%{color.2}%+ -------------------[ %{color.1}% %{ultimateclans.getConfig.b.prefix}% %{color.2}% ] [%{color.1}%2%{color.2}%/%{color.1}%3%{color.2}%]----------------- +" send "&8• %{color.1}%/@ [tekst]&8-%{color.2}% Chat gildii" send "&8• %{color.1}%/sojusz [nazwa] &8-%{color.2}% Nawiazuje sojusz z wybrana gildia" send "&8• %{color.1}%/rozwiaz [nazwa]&8-%{color.2}% Rozwiazuje sojusz z wybrana gildia" send "&8• %{color.1}%/sojusze&8-%{color.2}% Wyswietla liste obecnych sojuszy" send "&8• %{color.1}%/wojna [nazwa] &8-%{color.2}% Rozpoczyna wojne z wybrana gildia" send "&8• %{color.1}%/rozejm [nazwa] &8-%{color.2}% Nawiazuje rozejm z wybrana gildia" send "&8• %{color.1}%/wojny [nazwa] &8-%{color.2}% Wyswietla liste obecnych wojen" send "&8• %{color.1}%/zarzadzaj &8-%{color.2}% Informacje o zarzadzaniu gildia" send "&8• %{color.1}%/zarzadzaj [funkcja] &8-%{color.2}% Zarzadza wybrana funkcja" stop if arg 2 is "3": if {ultimateclans.NoTag.enable} is false: send "%{color.2}%+ -------------------[ %{color.1}% %{ultimateclans.getConfig.b.prefix}% %{color.2}% ] [%{color.1}%3%{color.2}%/%{color.1}%3%{color.2}%]----------------- +" send "&8• %{color.1}%/%{ultimateclans.getConfig.prefix}% powieksz &8-%{color.2}% Powieksza teren gildii" send "&8• %{color.1}%/%{ultimateclans.getConfig.prefix}% moderator [gracz] &8-%{color.2}% Nadaje moderatora" stop else: send "%{color.2}%+ -------------------[ %{color.1}% %{ultimateclans.getConfig.b.prefix}% %{color.2}% ] [%{color.1}%3%{color.2}%/%{color.1}%3%{color.2}%]----------------- +" send "&8• %{color.1}%/powieksz &8-%{color.2}% Powieksza teren gildii" send "&8• %{color.1}%/moderator [gracz] &8-%{color.2}% Nadaje moderatora" stop if arg 1 is not set: make player execute command "uchelp help 1" stop if arg 1 is "1": make player execute command "uchelp help 1" stop if arg 1 is "2": make player execute command "uchelp help 2" stop if arg 1 is "3": make player execute command "uchelp help 3" stop else: make player execute command "uchelp help 1" stop #---------------------------------------------------# # # # Tag Basic Command # # # #---------------------------------------------------# # -- Basic Command -- # command /ultimateclans [] [] [] []: aliases: gildie, gildia, f, factions, uc, clans, clan, g trigger: if {Dzikoysk.UltimateClans} is "UltimateClans": stop else: if arg 1 is "wersja" or "version": send "&aUltimateClans by &7Dzikoysk" to player send "&aVersion: &7{@version}" to player stop if arg 1 is "list" or "lista": if {ultimateclans.command.lista} is false: send "%{ultimateclans.getMessage.unknown-command}%" stop if player has permission "ultimateclans.list": if {ultimateclans.clanlist::*} is set: send "&aLista gildii: &6%{ultimateclans.clanlist::*}%" stop send "&cNie ma jeszcze zadnych gildii na serwerze!" stop else: send "%{ultimateclans.getMessage.permission}%" stop if arg 1 is "home" or "dom": if {ultimateclans.command.gdom} is false: send "%{ultimateclans.getMessage.unknown-command}%" stop if player has permission "ultimateclans.home": if {ultimateclans.%name of player%.member} is true: set {_rg} to {ultimateclans.clan.%{ultimateclans.%name of player%.clan.name}%.region.point} set {_a} to true if {ultimateclans.clan.%{ultimateclans.%name of player%.clan.name}%.region.point.home} is set: set {_rg} to {ultimateclans.clan.%{ultimateclans.%name of player%.clan.name}%.region.point.home} if {ultimateclans.%name of player%.owner} is true: set {_rg} to {ultimateclans.clan.%{ultimateclans.%name of player%.owner.clanname}%.region.point} set {_a} to true if {ultimateclans.clan.%{ultimateclans.%name of player%.owner.clanname}%.region.point} is set: set {_rg} to {ultimateclans.clan.%{ultimateclans.%name of player%.owner.clanname}%.region.point.home} if {_a} is true: if {_rg} is set: if {ultimateclans.tp.cooldown} is true: set {_pos} to "%x-location of player%, %y-location of player%, %z-location of player%" send "&7Czekaj &65 sekund&7, nie wolno Ci sie ruszyc!" if {_pos} isn't "%x-location of player%, %y-location of player%, %z-location of player%": send "&cWykryto ruch, teleportacja anulowana!" stop wait 1 second if {_pos} isn't "%x-location of player%, %y-location of player%, %z-location of player%": send "&cWykryto ruch, teleportacja anulowana!" stop wait 1 second if {_pos} isn't "%x-location of player%, %y-location of player%, %z-location of player%": send "&cWykryto ruch, teleportacja anulowana!" stop wait 1 second if {_pos} isn't "%x-location of player%, %y-location of player%, %z-location of player%": send "&cWykryto ruch, teleportacja anulowana!" stop wait 1 second if {_pos} isn't "%x-location of player%, %y-location of player%, %z-location of player%": send "&cWykryto ruch, teleportacja anulowana!" stop wait 1 second # ' if {_pos} is "%x-location of player%, %y-location of player%, %z-location of player%": teleport player to {_rg} send "&7Teleportacja..." stop else: send "&cWykryto ruch, teleportacja anulowana!" stop else: teleport player to {_rg} send "&7Teleportacja..." stop else: send "&cGildia nie posiada swojego terenu!" stop else: send "&cNie jestes w gildii!" stop else: send "%{ultimateclans.getMessage.permission}%" stop if arg 1 is "stworz" or "create": if {ultimateclans.NoTag.enable} is true: send "%{ultimateclans.getMessage.unknown-command}%" stop if {ultimateclans.command.stworz} is false: send "%{ultimateclans.getMessage.unknown-command}%" stop if player's world is "%{ultimateclans.getConfig.disable}%": send "&cNa tym swiecie nie mozna zalozyc gildii!" stop if player doesn't have permission "ultimateclans.create": send "%{ultimateclans.getMessage.permission}%" stop if {ultimateclans.getConfig.clans.number} is set: set {ultimateclans.getConfig.clans.number} to {ultimateclans.getConfig.clans.number} parsed as integer if {ultimateclans.getConfig.clans.number} is not 0: set {_x} to size of {ultimateclans.clanlist::*} if {_x} is {ultimateclans.getConfig.clans.number}: send "&cNie mozna zalozyc gildii! Maksymalna ilosc gildii to: &6%{ultimateclans.getConfig.clans.number}%" stop set {_f} to {ultimateclans.getConfig.arg.first} if {_f} is not set: if arg 1 is not set: send "&cNie podano nazwy gildii!" stop if arg 2 is not set: send "&cNie podano tagu gildi!" stop set {_f} to "Full" set {_a1} to arg 2 set {_a2} to arg 3 if {_f} is "Full": if arg 1 is not set: send "&cNie podano nazwy gildii!" stop if arg 2 is not set: send "&cNie podano tagu gildi!" stop set {_a1} to arg 2 set {_a2} to arg 3 if {_f} is "Tag": if arg 1 is not set: send "&cNie podano tagu gildii!" stop if arg 2 is not set: send "&cNie podano nazwy gildi!" stop set {_a1} to arg 3 set {_a2} to arg 2 if {ultimateclans.%name of player%.member} is true: send "&cJestes juz w gildii!" stop trigger if {ultimateclans.%name of player%.owner} is true: send "&cMasz juz gildie!" stop trigger if {ultimateclans.clan.%{_a1}%.tag} is set: send "&cJest juz gildia z taka nazwa!" stop trigger if {ultimateclans.clan.%{_a2}%.tagauth} is set: send "&cJest juz gildia z taka nazwa!" stop trigger if {_f} is "Full": set {_ver} to {_a2} replace all "1" with "1" in {_ver} replace all "0" with "1" in {_ver} replace all "2" with "1" in {_ver} replace all "3" with "1" in {_ver} replace all "4" with "1" in {_ver} replace all "5" with "1" in {_ver} replace all "6" with "1" in {_ver} replace all "7" with "1" in {_ver} replace all "8" with "1" in {_ver} replace all "9" with "1" in {_ver} replace all "j" with "1" in {_ver} replace all "q" with "1" in {_ver} replace all "w" with "1" in {_ver} replace all "e" with "1" in {_ver} replace all "r" with "1" in {_ver} replace all "t" with "1" in {_ver} replace all "y" with "1" in {_ver} replace all "u" with "1" in {_ver} replace all "i" with "1" in {_ver} replace all "o" with "1" in {_ver} replace all "p" with "1" in {_ver} replace all "a" with "1" in {_ver} replace all "s" with "1" in {_ver} replace all "d" with "1" in {_ver} replace all "f" with "1" in {_ver} replace all "g" with "1" in {_ver} replace all "h" with "1" in {_ver} replace all "j" with "1" in {_ver} replace all "k" with "1" in {_ver} replace all "l" with "1" in {_ver} replace all "z" with "1" in {_ver} replace all "x" with "1" in {_ver} replace all "c" with "1" in {_ver} replace all "v" with "1" in {_ver} replace all "b" with "1" in {_ver} replace all "n" with "1" in {_ver} replace all "m" with "1" in {_ver} if {_ver} is not "1" or "11" or "111" or "1111" or "1111" or "11111": send "&cTag jest zbyt dlugi lub zawiera niewlasciwe znaki!" stop set {_ver2} to {_a1} replace all "1" with "1" in {_ver2} replace all "0" with "1" in {_ver2} replace all "2" with "1" in {_ver2} replace all "3" with "1" in {_ver2} replace all "4" with "1" in {_ver2} replace all "5" with "1" in {_ver2} replace all "6" with "1" in {_ver2} replace all "7" with "1" in {_ver2} replace all "8" with "1" in {_ver2} replace all "9" with "1" in {_ver2} replace all "j" with "1" in {_ver2} replace all "q" with "1" in {_ver2} replace all "w" with "1" in {_ver2} replace all "e" with "1" in {_ver2} replace all "r" with "1" in {_ver2} replace all "t" with "1" in {_ver2} replace all "y" with "1" in {_ver2} replace all "u" with "1" in {_ver2} replace all "i" with "1" in {_ver2} replace all "o" with "1" in {_ver2} replace all "p" with "1" in {_ver2} replace all "a" with "1" in {_ver2} replace all "s" with "1" in {_ver2} replace all "d" with "1" in {_ver2} replace all "f" with "1" in {_ver2} replace all "g" with "1" in {_ver2} replace all "h" with "1" in {_ver2} replace all "j" with "1" in {_ver2} replace all "k" with "1" in {_ver2} replace all "l" with "1" in {_ver2} replace all "z" with "1" in {_ver2} replace all "x" with "1" in {_ver2} replace all "c" with "1" in {_ver2} replace all "v" with "1" in {_ver2} replace all "b" with "1" in {_ver2} replace all "n" with "1" in {_ver2} replace all "m" with "1" in {_ver2} set {_ver2} to {_ver2} parsed as integer if {_ver2} is not integer: send "&cNazwa zawiera niewlasciwe znaki!" stop if {_f} is "Tag": set {_ver} to {_a1} replace all "1" with "1" in {_ver} replace all "0" with "1" in {_ver} replace all "2" with "1" in {_ver} replace all "3" with "1" in {_ver} replace all "4" with "1" in {_ver} replace all "5" with "1" in {_ver} replace all "6" with "1" in {_ver} replace all "7" with "1" in {_ver} replace all "8" with "1" in {_ver} replace all "9" with "1" in {_ver} replace all "j" with "1" in {_ver} replace all "q" with "1" in {_ver} replace all "w" with "1" in {_ver} replace all "e" with "1" in {_ver} replace all "r" with "1" in {_ver} replace all "t" with "1" in {_ver} replace all "y" with "1" in {_ver} replace all "u" with "1" in {_ver} replace all "i" with "1" in {_ver} replace all "o" with "1" in {_ver} replace all "p" with "1" in {_ver} replace all "a" with "1" in {_ver} replace all "s" with "1" in {_ver} replace all "d" with "1" in {_ver} replace all "f" with "1" in {_ver} replace all "g" with "1" in {_ver} replace all "h" with "1" in {_ver} replace all "j" with "1" in {_ver} replace all "k" with "1" in {_ver} replace all "l" with "1" in {_ver} replace all "z" with "1" in {_ver} replace all "x" with "1" in {_ver} replace all "c" with "1" in {_ver} replace all "v" with "1" in {_ver} replace all "b" with "1" in {_ver} replace all "n" with "1" in {_ver} replace all "m" with "1" in {_ver} if {_ver} is not "1" or "11" or "111" or "1111" or "1111" or "11111": send "&cTag jest zbyt dlugi lub zawiera niewlasciwe znaki!" stop set {_ver2} to {_a2} replace all "1" with "1" in {_ver2} replace all "0" with "1" in {_ver2} replace all "2" with "1" in {_ver2} replace all "3" with "1" in {_ver2} replace all "4" with "1" in {_ver2} replace all "5" with "1" in {_ver2} replace all "6" with "1" in {_ver2} replace all "7" with "1" in {_ver2} replace all "8" with "1" in {_ver2} replace all "9" with "1" in {_ver2} replace all "j" with "1" in {_ver2} replace all "q" with "1" in {_ver2} replace all "w" with "1" in {_ver2} replace all "e" with "1" in {_ver2} replace all "r" with "1" in {_ver2} replace all "t" with "1" in {_ver2} replace all "y" with "1" in {_ver2} replace all "u" with "1" in {_ver2} replace all "i" with "1" in {_ver2} replace all "o" with "1" in {_ver2} replace all "p" with "1" in {_ver2} replace all "a" with "1" in {_ver2} replace all "s" with "1" in {_ver2} replace all "d" with "1" in {_ver2} replace all "f" with "1" in {_ver2} replace all "g" with "1" in {_ver2} replace all "h" with "1" in {_ver2} replace all "j" with "1" in {_ver2} replace all "k" with "1" in {_ver2} replace all "l" with "1" in {_ver2} replace all "z" with "1" in {_ver2} replace all "x" with "1" in {_ver2} replace all "c" with "1" in {_ver2} replace all "v" with "1" in {_ver2} replace all "b" with "1" in {_ver2} replace all "n" with "1" in {_ver2} replace all "m" with "1" in {_ver2} set {_ver2} to {_ver2} parsed as integer if {_ver2} is not integer: send "&cNazwa zawiera niewlasciwe znaki!" stop if {ultimateclans.getConfig.payitem} is true: wait 1 tick if player's gamemode is not creative: if player has permission "ultimateclans.create-vip": if player doesn't have {ultimateclans.getConfig.payitem.slot-vip.1}: add {ultimateclans.getConfig.payitem.slot-vip.1} to {_req::*} if player doesn't have {ultimateclans.getConfig.payitem.slot-vip.2}: add {ultimateclans.getConfig.payitem.slot-vip.2} to {_req::*} if player doesn't have {ultimateclans.getConfig.payitem.slot-vip.3}: add {ultimateclans.getConfig.payitem.slot-vip.3} to {_req::*} if player doesn't have {ultimateclans.getConfig.payitem.slot-vip.4}: add {ultimateclans.getConfig.payitem.slot-vip.4} to {_req::*} if player doesn't have {ultimateclans.getConfig.payitem.slot-vip.5}: add {ultimateclans.getConfig.payitem.slot-vip.5} to {_req::*} if player doesn't have {ultimateclans.getConfig.payitem.slot-vip.6}: add {ultimateclans.getConfig.payitem.slot-vip.6} to {_req::*} if player doesn't have {ultimateclans.getConfig.payitem.slot-vip.7}: add {ultimateclans.getConfig.payitem.slot-vip.7} to {_req::*} if player doesn't have {ultimateclans.getConfig.payitem.slot-vip.8}: add {ultimateclans.getConfig.payitem.slot-vip.8} to {_req::*} if player doesn't have {ultimateclans.getConfig.payitem.slot-vip.9}: add {ultimateclans.getConfig.payitem.slot-vip.9} to {_req::*} if player doesn't have {ultimateclans.getConfig.payitem.slot-vip.10}: add {ultimateclans.getConfig.payitem.slot-vip.10} to {_req::*} if player doesn't have {ultimateclans.getConfig.payitem.slot-vip.11}: add {ultimateclans.getConfig.payitem.slot-vip.11} to {_req::*} if player doesn't have {ultimateclans.getConfig.payitem.slot-vip.12}: add {ultimateclans.getConfig.payitem.slot-vip.12} to {_req::*} if {_req::*} is set: send "&cNie masz wszystkich wymaganych przedmiotow! Obecnie brakuje Ci: &7%{_req::*}%" stop set {_take.i} to true set {_take.vip} to true else: if player doesn't have {ultimateclans.getConfig.payitem.slot.1}: add {ultimateclans.getConfig.payitem.slot.1} to {_req::*} if player doesn't have {ultimateclans.getConfig.payitem.slot.2}: add {ultimateclans.getConfig.payitem.slot.2} to {_req::*} if player doesn't have {ultimateclans.getConfig.payitem.slot.3}: add {ultimateclans.getConfig.payitem.slot.3} to {_req::*} if player doesn't have {ultimateclans.getConfig.payitem.slot.4}: add {ultimateclans.getConfig.payitem.slot.4} to {_req::*} if player doesn't have {ultimateclans.getConfig.payitem.slot.5}: add {ultimateclans.getConfig.payitem.slot.5} to {_req::*} if player doesn't have {ultimateclans.getConfig.payitem.slot.6}: add {ultimateclans.getConfig.payitem.slot.6} to {_req::*} if player doesn't have {ultimateclans.getConfig.payitem.slot.7}: add {ultimateclans.getConfig.payitem.slot.7} to {_req::*} if player doesn't have {ultimateclans.getConfig.payitem.slot.8}: add {ultimateclans.getConfig.payitem.slot.8} to {_req::*} if player doesn't have {ultimateclans.getConfig.payitem.slot.9}: add {ultimateclans.getConfig.payitem.slot.9} to {_req::*} if player doesn't have {ultimateclans.getConfig.payitem.slot.10}: add {ultimateclans.getConfig.payitem.slot.10} to {_req::*} if player doesn't have {ultimateclans.getConfig.payitem.slot.11}: add {ultimateclans.getConfig.payitem.slot.11} to {_req::*} if player doesn't have {ultimateclans.getConfig.payitem.slot.12}: add {ultimateclans.getConfig.payitem.slot.12} to {_req::*} if {_req::*} is set: send "&cNie masz wszystkich wymaganych przedmiotow! Obecnie brakuje Ci: &7%{_req::*}%" stop set {_take.i} to true if {ultimateclans.paymoney.enable} is true: set {_money} to player's money if {_money} is smaller than {ultimateclans.getConfig.paymoney.create.cost}: send "&cNie masz wystarczajacej ilosci pieniedzy! Wymagana ilos to: &6%{ultimateclans.getConfig.paymoney.create.cost}%" stop #' set {_take.m} to true if {ultimateclans.autoregion.enable} is true: if {ultimateclans.spawn.%world%} is not set: send "&cBlad! &8-&c Nieustawiono spawnpoint'u. Skontaktuj sie z administratorem!" if player is op: send "&6[UltimateClans] &cTa wiadomos widzisz tylko Ty, jako &7Operator&c. Abu ustawic spawnpoint wpisz &7/clans setspawn &cna spawnie serwera" stop stop if {ultimateclans.region.method} is "wg" or "WG" or "Wg" or "WorldGuard" or "worldguard" or "Worldguard": if distance between {ultimateclans.spawn.%world%} and location of player is smaller than {ultimateclans.getConfig.spawn.distance}+{ultimateclans.getConfig.region.size}/2: send "&cJestes zbyt blisko spawnu!" stop player cannot build at block under player: send "&cW tym miejscu nie wolno zalozyc gildii, poniewaz teren w poblizu posiada juz inna gildia!" stop player cannot build at block {ultimateclans.worldguard.size} meters northwest: send "&cW tym miejscu nie wolno zalozyc gildii, poniewaz teren w poblizu posiada juz inna gildia!" stop player cannot build at block {ultimatechat.worldguard.size} meters north: send "&cW tym miejscu nie wolno zalozyc gildii, poniewaz teren w poblizu posiada juz inna gildia!" stop player cannot build at block {ultimateclans.worldguard.size} meters northeast: send "&cW tym miejscu nie wolno zalozyc gildii, poniewaz teren w poblizu posiada juz inna gildia!" stop player cannot build at block {ultimateclans.worldguard.size} meters west: send "&cW tym miejscu nie wolno zalozyc gildii, poniewaz teren w poblizu posiada juz inna gildia!" stop player cannot build at block {ultimateclans.worldguard.size} meters east: send "&cW tym miejscu nie wolno zalozyc gildii, poniewaz teren w poblizu posiada juz inna gildia!" stop player cannot build at block {ultimateclans.worldguard.size} meters southwest: send "&cW tym miejscu nie wolno zalozyc gildii, poniewaz teren w poblizu posiada juz inna gildia!" stop player cannot build at block {ultimateclans.worldguard.size} meters south: send "&cW tym miejscu nie wolno zalozyc gildii, poniewaz teren w poblizu posiada juz inna gildia!" stop player cannot build at block {ultimateclans.worldguard.size} meters southeast: send "&cW tym miejscu nie wolno zalozyc gildii, poniewaz teren w poblizu posiada juz inna gildia!" stop run player command "//pos1" as op run player command "//pos2" as op wait 1 tick run player command "//expand %{ultimateclans.worldguard.size}% n" as op run player command "//expand %{ultimateclans.worldguard.size}% s" as op run player command "//expand %{ultimateclans.worldguard.size}% w" as op run player command "//expand %{ultimateclans.worldguard.size}% e" as op run player command "//expand vert" as op wait 1 tick run player command "/rg define clans-%{_a1}%" as op make console execute command "rg addowner -w %world of player% clans-%{_a1}% %name of player%" make console execute command "rg setpriority -w %world of player% clans-%{_a1}% 1" if {ultimateclans.region.wg.greeting} is true: make console execute command "rg flag -w %world of player% clans-%{_a1}% greeting &7Obecny teren nalezy do gildii: &f[&g%{_a1}%&f]" if {ultimateclans.region.wg.farewell} is true: make console execute command "rg flag -w %world of player% clans-%{_a1}% farewell &7Opuszczono teren gildii: &f[&g%{_a1}%&f]" if {ultimateclans.region.wg.chest} is true: make console execute command "rg flag -w %world of player% clans-%{_a1}% chest-access deny" if {ultimateclans.region.wg.chest} is false: make console execute command "rg flag -w %world of player% clans-%{_a1}% chest-access allow" set {ultimateclans.clan.%{_a1}%.region.point} to location of player if {ultimateclans.region.method} is "sk" or "skript" or "sg" or "SkriptGuard": loop {uc.cuboid.list::*}: set {_s} to {ultimateclans.getConfig.region.size}/2 set {_s2} to {ultimateclans.getConfig.region.sg.up.lvl}*{ultimateclans.getConfig.region.sg.up.size} set {_s3} to {_s}+{_s2}+1 set {_s4} to {_s3}*2 if distance between player and {uc.cuboid.loc.%loop-value%} is smaller than {_s4}: send "&cW tym miejscu nie mozna zalozyc gildii, poniewaz w poblizu znajduje sie teren innej gildii!" stop if distance between {ultimateclans.spawn.%world%} and location of player is smaller than {ultimateclans.getConfig.spawn.distance}+{_s3}: send "&cJestes zbyt blisko spawnu!" stop set {uc.cuboid.loc.%{_a1}%} to location of player set {uc.cuboid.name.%{_a1}%} to {_a1} add {_a1} to {uc.cuboid.names.%{_a1}%::*} set {uc.cuboid.size.%{_a1}%} to {ultimateclans.getConfig.region.size}/2 add player to {uc.cuboid.members.%{_a1}%::*} add {_a1} to {uc.cuboid.list::*} set {ultimateclans.clan.%{_a1}%.region.point} to location of player if {_take.m} is true: if player doesn't have the permission "ultimateclans.create-vip": subtract {ultimateclans.getConfig.paymoney.create.cost} from player's money if {_take.i} is true: if {_take.vip} is true: remove {ultimateclans.getConfig.payitem.slot-vip.1} from player remove {ultimateclans.getConfig.payitem.slot-vip.2} from player remove {ultimateclans.getConfig.payitem.slot-vip.3} from player remove {ultimateclans.getConfig.payitem.slot-vip.4} from player remove {ultimateclans.getConfig.payitem.slot-vip.5} from player remove {ultimateclans.getConfig.payitem.slot-vip.6} from player remove {ultimateclans.getConfig.payitem.slot-vip.7} from player remove {ultimateclans.getConfig.payitem.slot-vip.8} from player remove {ultimateclans.getConfig.payitem.slot-vip.9} from player remove {ultimateclans.getConfig.payitem.slot-vip.10} from player remove {ultimateclans.getConfig.payitem.slot-vip.11} from player remove {ultimateclans.getConfig.payitem.slot-vip.12} from player else: remove {ultimateclans.getConfig.payitem.slot.1} from player remove {ultimateclans.getConfig.payitem.slot.2} from player remove {ultimateclans.getConfig.payitem.slot.3} from player remove {ultimateclans.getConfig.payitem.slot.4} from player remove {ultimateclans.getConfig.payitem.slot.5} from player remove {ultimateclans.getConfig.payitem.slot.6} from player remove {ultimateclans.getConfig.payitem.slot.7} from player remove {ultimateclans.getConfig.payitem.slot.8} from player remove {ultimateclans.getConfig.payitem.slot.9} from player remove {ultimateclans.getConfig.payitem.slot.10} from player remove {ultimateclans.getConfig.payitem.slot.11} from player remove {ultimateclans.getConfig.payitem.slot.12} from player #if {ultimateclans.level.take} is true: # if player doesn't have the permission "ultimateclans.create-vip": # reduce player's level by {ultimateclans.getConfig.level.create} set {_p} to player if {ultimateclans.tag} is true: set {_tag} to {ultimateclans.getConfig.tag.design} if {_f} is "Tag": replace all "{TAG}" with "%{_a1}%" in {_tag} replace all "{FULL}" with "%{_a2}%" in {_tag} if {_f} is "Full": replace all "{TAG}" with "%{_a2}%" in {_tag} replace all "{FULL}" with "%{_a1}%" in {_tag} edit tag of player to "%{_tag}%" if {ultimateclans.tab} is true: if {ultimateclans.tag} is not true: set {_tag} to {ultimateclans.getConfig.tag.design} if {_f} is "Tag": replace all "{TAG}" with "%{_a1}%" in {_tag} replace all "{FULL}" with "%{_a2}%" in {_tag} if {_f} is "Full": replace all "{TAG}" with "%{_a2}%" in {_tag} replace all "{FULL}" with "%{_a1}%" in {_tag} set the player's tablist name to "%{_tag}%%{_p}%" #' add {_a1} to {ultimateclans.clanlist::*} set {ultimateclans.%name of player%.owner.clanname} to {_a1} add {_a2} to {ultimateclans.tagclanlist::*} set {ultimateclans.%name of player%.owner.tag} to {_a2} set {ultimateclans.%name of player%.owner} to true set {ultimateclans.%name of player%.owner.name} to player set {ultimateclans.clan.%{_a1}%.tag} to {_a2} set {ultimateclans.clan.%{_a1}%.name} to {_a1} set {ultimateclans.clan.%{_a2}%.tag.fullname} to {_a1} set {ultimateclans.clan.%{_a2}%.tagauth} to {_a2} set {ultimateclans.clan.%{_a1}%.pvp} to {ultimateclans.getConfig.pvp} set {ultimateclans.%{_a1}%.member-number} to 0 set {ultimateclans.clan.%{_a1}%.ownername} to player add 1 to {ultimateclans.%{_a1}%.member-number} add player to {ultimateclans.%{_a1}%.members::*} set {ultimateclans.clan.%{_a1}%.kill} to 0 set {ultimateclans.clan.%{_a1}%.death} to 0 set {ultimateclans.ranks.list::%{_a1}%} to 0 set {ultimateclans.clan.%{_a1}%.regionset} to true send "&aStworzono gildie o nazwie: &6%{_a1}%&a i tagu: &6%{_a2}%&a!" if {ultimateclans.autoregion.enable} is true: if {ultimateclans.getConfig.region.setblock} is true: if {ultimateclans.getConfig.region.setblock.type} is not set: set {ultimateclans.getConfig.region.setblock.type} to bedrock set block under player to {ultimateclans.getConfig.region.setblock.type} send "&aTwoja gildia otrzymala teren!" if {ultimateclans.getConfig.broadcast.create} is true: broadcast "&a&6%name of player% &astworzyl gildie o nazwie &6%{_a1}% &ai tagu &6%{_a2}%" stop stop if arg 1 is "usun" or "delete": if {ultimateclans.NoTag.enable} is true: send "%{ultimateclans.getMessage.unknown-command}%" stop if {ultimateclans.command.usun} is false: send "%{ultimateclans.getMessage.unknown-command}%" stop if player has permission "ultimateclans.default": if {ultimateclans.%name of player%.owner} is true: set {ultimateclans.%name of player%.delete.confirm} to true send "&cUwaga! &7Wlaczono procedure usuwania gildii. Aby ostatecznie rozwiazac gildie wpisz &c/%{ultimateclans.getConfig.prefix}% potwierdz&7, aby anulowac uzyj &c/anuluj" stop else: send "&cNie jestes zalozycielem zadnej gildii!" else: send "%{ultimateclans.getMessage.permission}%" stop if arg 1 is "potwierdz" or "confirm": if {ultimateclans.NoTag.enable} is true: send "%{ultimateclans.getMessage.unknown-command}%" stop if {ultimateclans.command.potwierdz} is false: send "%{ultimateclans.getMessage.unknown-command}%" stop if player has permission "ultimateclans.default": if {ultimateclans.%name of player%.delete.confirm} is true: set {_clan} to {ultimateclans.%name of player%.owner.clanname} if {ultimateclans.region.method} is "wg" or "WG" or "Wg" or "WorldGuard" or "worldguard" or "Worldguard": if player has permission "ultimateclans.default": make console execute command "rg remove -w %world of player% Clans-%{_clan}%" set {ultimateclans.clan.%{_clan}%.regionset} to false if player has permission "ultimateclans.admin": make console execute command "rg remove -w %world of player% Clans-%{_clan}%" set {ultimateclans.clan.%{_clan}%.regionset} to false if {ultimateclans.region.method} is "sk" or "skript" or "sg" or "SkriptGuard": #" loop {uc.cuboid.names.%{_clan}%::*}: set {uc.cuboid.loc.%loop-value%} to "" delete {uc.cuboid.loc.%loop-value%} set {uc.cuboid.name.%loop-value%} to "" set {uc.cuboid.size.%loop-value%} to "" set {uc.cuboid.members.%loop-value%::*} to "" clear {uc.cuboid.name.%loop-value%} clear {uc.cuboid.size.%loop-value%} clear {uc.cuboid.members.%loop-value%::*} remove loop-value from {uc.cuboid.list::*} remove loop-value from {uc.cuboid.names.%{_clan}%::*} delete {uc.cuboid.names.%{_clan}%::*} remove {_clan} from {ultimateclans.clanlist::*} remove {ultimateclans.%name of player%.owner.tag} from {ultimateclans.tagclanlist::*} wait 1 tick set {ultimateclans.%name of player%.owner} to false clear {ultimateclans.clan.%{_clan}%.tag} clear {ultimateclans.clan.%{_clan}%.name} if {ultimateclans.setblock} is true: set block under {ultimateclans.clan.%{_clan}%.region.point} to air clear {ultimateclans.clan.%{_clan}%.region.point} clear {ultimateclans.clan.%{ultimateclans.%name of player%.owner.tag}%.tagauth} clear {ultimateclans.clan.%{ultimateclans.%name of player%.owner.tag}%.tag.fullname} clear {ultimateclans.clan.%{ultimateclans.%name of player%.owner.tag}%.ownername} clear {ultimateclans.%{_clan}%.member-number} clear {ultimateclans.clan.%{_clan}%.regionset} loop {ultimateclans.%{_clan}%.members::*}: set {ultimateclans.%loop-value%.loop-value} to true set {ultimateclans.%name of player%.loop-value} to false set {ultimateclans.%loop-value%.member} to false delete {ultimateclans.%loop-value%.clan.tag} delete {ultimateclans.%loop-value%.ownername} delete {ultimateclans.%loop-value%.clan.name} edit tag of loop-value to "" if {ultimateclans.tag} is true: edit tag of player to "" delete {ultimateclans.%{_clan}%.members::*} delete {ultimateclans.%{_clan}%.member-number} wait 2 tick clear {ultimateclans.%name of player%.owner.tag} clear {ultimateclans.%name of player%.owner.clanname} delete {ultimateclans.clan.%{_clan}%::*} send "&aPomyslnie usunieto gildie!" if {ultimateclans.getConfig.broadcast.create} is true: broadcast "&7Gildia &c%{_clan}% &7zostala rozwiazana!" stop else: send "&cNie ma zadnych dzialan do potwierdzenia!" stop else: send "%{ultimateclans.getMessage.permission}%" stop if arg 1 is "region" or "zabezpiecz": if {ultimateclans.NoTag.enable} is true: send "%{ultimateclans.getMessage.unknown-command}%" stop if player doesn't have permission "ultimateclans.default": #' send "%{ultimateclans.getMessage.permission}%" stop if {ultimateclans.%name of player%.owner} is not true: send "&cAby zajac teren musisz byc zalozycielem!" stop if {ultimateclans.clan.%{ultimateclans.%name of player%.owner.clanname}%.regionset} is not false: send "&cTwoja gildia posiada juz region!" stop if {ultimateclans.autoregion.enable} is not false: send "&cTeren dla gildii jest automatycznie przydzielany po jej zalozeniu!" stop if {ultimateclans.spawn.%world%} is not set: send "&cBlad! &8-&7 Skontaktuj sie z administratorem! Nieustawiono spawnpoint'u" if player is op: send "&cTa wiadomos widzisz tylko Ty, jako &7Operator&c. Abu ustawic spawnpoint wpisz &7/clans setspawn &cna spawnie serwera" stop if distance between {ultimateclans.spawn.%world%} and location of player is smaller than {ultimateclans.getConfig.spawn.distance}+{ultimateclans.getConfig.region.size}/2: send "&cJestes zbyt blisko spawnu!" stop player cannot build at block under player: send "&cNie mozna tutaj stworzyc terenu gildii! Teren pod Toba jest juz zabezpieczony" stop player cannot build at block {ultimateclans.worldguard.size} meters northwest: send "&cNie mozna tutaj stworzyc terenu gildii! Teren na polnocny-zachod stad jest juz zabezpieczony" stop player cannot build at block {ultimateclans.worldguard.size} meters north: send "&cNie mozna tutaj stworzyc terenu gildii! Teren na polnoc stad jest juz zabezpieczony" stop player cannot build at block {ultimateclans.worldguard.size} meters northeast: send "&cNie mozna tutaj stworzyc terenu gildii! Teren na polnocny-wschod stad jest juz zajety" stop player cannot build at block {ultimateclans.worldguard.size} meters west: send "&cNie mozna tutaj stworzyc terenu gildii! Teren na zachod stad jest juz zajety" stop player cannot build at block {ultimateclans.worldguard.size} meters east: send "&cNie mozna tutaj stworzyc terenu gildii! Teren na wschod stad jest juz zajety" stop player cannot build at block {ultimateclans.worldguard.size} meters southwest: send "&cNie mozna tutaj stworzyc terenu gildii! Teren na poludniowy-zachod stad jest juz zajety" stop player cannot build at block {ultimateclans.worldguard.size} meters south: send "&cNie mozna tutaj stworzyc terenu gildii! Teren na poludnie stad jest juz zajety" stop player cannot build at block {ultimateclans.worldguard.size} meters southeast: send "&cNie mozna tutaj stworzyc terenu gildii! Teren na poludniowy-wschod stad jest juz zajety" stop set {_clan} to {ultimateclans.%name of player%.owner.clanname} set {_player} to name of player send "Zabezpieczenie &8- &aTworzenie ..." wait 1 tick run player command "//pos1" as op run player command "//pos2" as op wait 1 tick run player command "//expand %{ultimateclans.worldguard.size}% n" as op run player command "//expand %{ultimateclans.worldguard.size}% s" as op run player command "//expand %{ultimateclans.worldguard.size}% w" as op run player command "//expand %{ultimateclans.worldguard.size}% e" as op run player command "//expand vert" as op wait 1 tick run player command "/rg define clans-%{_clan}%" as op set {ultimateclans.clan.%{_clan}%.regionset} to true wait 1 tick make console execute command "rg addowner -w %world of player% clans-%{_clan}% %name of player%" loop {ultimateclans.%{_clan}%.members::*}: make console execute command "rg addmember -w %world of player% clans-%{_clan}% %loop-value%" make console execute command "rg setpriority -w %world of player% clans-%{_clan}% 1" if {ultimateclans.region.wg.greeting} is true: make console execute command "rg flag -w %world of player% clans-%{_clan}% greeting &7Obecny teren nalezy do gildii: &f[&g%{ultimateclans.%name of player%.owner.clanname}%&f]" if {ultimateclans.region.wg.farewell} is true: make console execute command "rg flag -w %world of player% clans-%{_clan}% farewell &7Opuszczono teren gildii: &f[&g%{ultimateclans.%name of player%.owner.clanname}%&f]" if {ultimateclans.region.wg.chest} is true: make console execute command "rg flag -w %world of player% clans-%{_clan}% chest-access deny" if {ultimateclans.region.wg.chest} is false: make console execute command "rg flag -w %world of player% clans-%{_clan}% chest-access allow" set {ultimateclans.clan.%{_clan}%.region.point} to location of player if {ultimateclans.setblock} is true: set block under player to {ultimateclans.getConfig.region.setblock.type} set {ultimateclans.clan.%{_clan}%.region.point} to location of player loop 100 times: send "" send "Zabezpieczenie &8-&a Otrzymano teren!" stop if arg 1 is "unregion" or "odbezpiecz" or "zdejmij": if {ultimateclans.NoTag.enable} is true: send "%{ultimateclans.getMessage.unknown-command}%" stop if {ultimateclans.command.odbezpiecz} is false: send "%{ultimateclans.getMessage.unknown-command}%" stop if player doesn't have permission "ultimateclans.default": # ' send "%{ultimateclans.getMessage.permission}%" stop if {ultimateclans.%name of player%.owner} is not true: send "&cNie jestes zalozycielem gildii!" stop if {ultimateclans.autoregion.enable} is not false: send "Zabezpieczenie &8-&c Wlaczony auto region, aby pozbyc sie terenu musisz usunac gildie!" stop if player doesn't have permission "ultimateclans.create": #' send "%{ultimateclans.getMessage.permission}%" stop set {_clan} to {ultimateclans.%name of player%.owner.clanname} if {ultimateclans.region.method} is "wg" or "worldguard": make console execute command "rg remove -w %world of player% clans-%{_clan}%" if {ultimateclans.region.method} is "sk" or "skript" or "sg" or "SkriptGuard": delete {uc.cuboid.loc.%{_clan}%} delete {uc.cuboid.name.%{_a1}%} delete {uc.cuboid.size.%{_a1}%} delete {uc.cuboid.members.%{_clan}%::*} loop {uc.cuboid.names.%{_a1}%::*}: remove loop-value from {uc.cuboid.list::*} delete {uc.cuboid.loc.%loop-value%} delete {uc.cuboid.name.%loop-value%} delete {uc.cuboid.size.%loop-value%} delete {uc.cuboid.members.%loop-value%::*} remove {_clan} from {uc.cuboid.list::*} set {ultimateclans.clan.%{_clan}%.regionset} to false send "&aPomyslnie usunieto teren gildii!" clear {ultimateclans.clan.%{_clan}%.region.point} if {ultimateclans.setblock} is true: set block under {ultimateclans.clan.%{_clan}%.region.point} to air set block under {ultimateclans.clan.%{_clan}%.region.point} to air stop if arg 1 is "anuluj" or "cancel": if {ultimateclans.NoTag.enable} is true: send "%{ultimateclans.getMessage.unknown-command}%" stop if {ultimateclans.command.anuluj} is false: send "%{ultimateclans.getMessage.unknown-command}%" stop if player has permission "ultimateclans.default": if {ultimateclans.%name of player%.delete.confirm} is true: set {ultimateclans.%name of player%.delete.confirm} to false send "&cAnulowano procedure usuwania gildii!" stop else: send "&cNie ma zadnych dzialan do anulowania!" stop else: send "%{ultimateclans.getMessage.permission}%" stop if arg 1 is "powieksz" or "zwieksz" or "rozszerz" or "regionup": if {ultimateclans.NoTag.enable} is true: send "%{ultimateclans.getMessage.unknown-command}%" stop if {ultimateclans.command.powieksz} is false: send "%{ultimateclans.getMessage.unknown-command}%" stop if {ultimateclans.region.method} is not "sk" or "skript" or "sg" or "SkriptGuard": send "%{ultimateclans.getMessage.unknown-command}%" if player is op: send "&6[UltimateClans] &cTa wiadomosc widzisz tylko Ty, jako &7Operator&c. Mozliwosc powiekszania terenu dostepna jest tylko w SkriptGuard" stop stop if {ultimateclans.%name of player%.owner} is not true: send "&cNie jestes zalozycielem gildii!" stop set {_clan} to {ultimateclans.%name of player%.owner.clanname} if {ultimateclans.clan.%{_clan}%.up.lvl} is not set: set {ultimateclans.clan.%{_clan}%.up.lvl} to 0 if {ultimateclans.clan.%{_clan}%.up.lvl} is 10: send "&cOsiagnieto juz maksymalny poziom rozbudowy terenu!" stop if {ultimateclans.clan.%{_clan}%.up.lvl} is 0: set {_items} to {ultimateclans.getConfig.region.sg.lvl-1} if {ultimateclans.clan.%{_clan}%.up.lvl} is 1: set {_items} to {ultimateclans.getConfig.region.sg.lvl-2} if {ultimateclans.clan.%{_clan}%.up.lvl} is 2: set {_items} to {ultimateclans.getConfig.region.sg.lvl-3} if {ultimateclans.clan.%{_clan}%.up.lvl} is 3: set {_items} to {ultimateclans.getConfig.region.sg.lvl-4} if {ultimateclans.clan.%{_clan}%.up.lvl} is 4: set {_items} to {ultimateclans.getConfig.region.sg.lvl-5} if {ultimateclans.clan.%{_clan}%.up.lvl} is 5: set {_items} to {ultimateclans.getConfig.region.sg.lvl-6} if {ultimateclans.clan.%{_clan}%.up.lvl} is 6: set {_items} to {ultimateclans.getConfig.region.sg.lvl-7} if {ultimateclans.clan.%{_clan}%.up.lvl} is 7: set {_items} to {ultimateclans.getConfig.region.sg.lvl-8} if {ultimateclans.clan.%{_clan}%.up.lvl} is 8: set {_items} to {ultimateclans.getConfig.region.sg.lvl-9} if {ultimateclans.clan.%{_clan}%.up.lvl} is 9: set {_items} to {ultimateclans.getConfig.region.sg.lvl-10} if player has {_items}: remove {_items} from player set {ultimateclans.clan.%{_clan}%.up.lvl} to {ultimateclans.clan.%{_clan}%.up.lvl}+1 set {uc.cuboid.size.%{_clan}%} to {uc.cuboid.size.%{_clan}%}+{ultimateclans.getConfig.region.sg.size} send "&aTeren gildii zostal zwiekszony o &6%{ultimateclans.getConfig.region.sg.size}%&a! Aktualny poziom rozbudowy terenu to &6%{ultimateclans.clan.%{_clan}%.up.lvl}%" stop else: send "&cNie masz wystarczajacej liczby wymaganych przedmiotow, aby powiekszyc teren! Potrzeba &6%{_items}%" stop if arg 1 is "reload" or "przeladuj": if player has permission "ultimateclans.reload": send "&6[UltimateClans] &aPrzeladowywanie..." make console execute command "sk reload %script%" wait 3 tick send "&6[UltimateClans] &aPrzeladowano!" stop else: send "%{ultimateclans.getMessage.permission}%" stop if arg 1 is "zapros" or "invite": if {ultimateclans.NoTag.enable} is true: send "%{ultimateclans.getMessage.unknown-command}%" stop if {ultimateclans.command.zapros} is false: send "%{ultimateclans.getMessage.unknown-command}%" stop if player doesn't have permission "ultimateclans.default": #' send "%{ultimateclans.getMessage.permission}%" stop if arg 2 is empty: send "&cMusisz podac gracza! &7/%{ultimateclans.getConfig.prefix}% zapros [gracz]" stop set {_player} to name of player set {_clan} to {ultimateclans.%name of player%.owner.clanname} set {_tag} to {ultimateclans.%name of player%.owner.tag} set {_arg} to arg 2 if {ultimateclans.%name of player%.owner} is not true: if {ultimateclans.%name of player%.mod} is not true: send "&cNie jestes zalozycielem/moderatorem gildii!" stop if {ultimateclans.payitem.invite} is true: if player doesn't have {ultimateclans.getConfig.payitem.invite.cost}: #' send "&cAby zaprosic gracza potrzebujesz: &7%{ultimateclans.getConfig.payitem.invite.cost}%" stop set {_cost.i} to true if {ultimateclans.paymoney.invite} is true: set {_money} to player's money #' if {ultimateclans.getConfig.paymoney.invite.cost} is greater than {_money}: send "&cNie masz wystarczajacej ilosci pieniedzy, aby zaprosic gracza. Potrzebujesz: &6%{ultimateclans.getConfig.payitem.invite.cost}%" stop set {_cost.m} to true if {ultimateclans.%{_arg}%.member} is true: send "&cTen gracz jest juz w innej gildii!" stop if {ultimateclans.%{_arg}%.owner} is true: send "&cTen gracz ma juz gildie!" stop if {ultimateclans.%{_arg}%.player} is not true: send "&cTakiego gracza nigdy nie bylo na serwerze!" stop if {_cost.i} is true: remove {ultimateclans.getConfig.payitem.invite.cost} from player if {_cost.m} is true: remove {ultimateclans.getConfig.paymoney.invite.cost} from player's money #' set {ultimateclans.%{_arg}%.i.invite} to true set {ultimateclans.%{_arg}%.i.invite.clanname} to {_clan} set {ultimateclans.%{_arg}%.i.invite.tag} to {_tag} set {ultimateclans.%{_arg}%.i.invite.owner} to {_player} set {ultimateclans.%{_arg}%.invenable} to true wait 1 tick set {ultimateclans.%name of player%.invenable} to false send "&aOtrzymano zaproszenie do gildii: &7%{_clan}%" to {_arg} send "&aAby dolaczyc uzyj &7/dolacz&a, jezeli chcesz odrzucic, uzyj &7/odrzuc" to {_arg} send "&aZaproszono gracza: &7%{_arg}%" stop stop if arg 1 is "dolacz" or "join": if {ultimateclans.NoTag.enable} is true: send "%{ultimateclans.getMessage.unknown-command}%" stop if {ultimateclans.command.dolacz} is false: send "%{ultimateclans.getMessage.unknown-command}%" stop if player doesn't have permission "ultimateclans.default": #' send "%{ultimateclans.getMessage.permission}%" stop if {ultimateclans.%name of player%.i.invite} is not set: set {ultimateclans.%name of player%.i.invite} to false if {ultimateclans.%name of player%.i.invite} is not true: send "&cNie masz zadnego zaproszenia do gildii!" stop if {ultimateclans.%name of player%.member} is true: send "&cJestes juz w gildii!" stop if {ultimateclans.%name of player%.owner} is true: send "&cMasz juz gildie!" stop else: #" set {_player} to name of player set {_clan} to {ultimateclans.%{_player}%.i.invite.clanname} set {_tag} to {ultimateclans.%{_player}%.i.invite.tag} set {_owner} to {ultimateclans.%{_player}%.i.invite.owner} set {ultimateclans.%{_player}%.clan.name} to {_clan} set {ultimateclans.%{_player}%.clan.ownername} to {_owner} set {ultimateclans.%{_player}%.clan.tag} to {_tag} set {ultimateclans.%{_player}%.member} to true if {ultimateclans.tag} is true: set {_tagx} to {ultimateclans.getConfig.tag.design} replace all "{TAG}" with "%{_tag}%" in {_tagx} replace all "{FULL}" with "%{_clan}%" in {_tagx} edit tag of player to "%{_tagx}%" add {_player} to {ultimateclans.%{_clan}%.members::*} add 1 to {ultimateclans.%{_clan}%.member-number} wait 1 tick if {ultimateclans.region.method} is "wg" or "WG" or "Wg" or "WorldGuard" or "worldguard" or "Worldguard": make console execute command "rg addmember -w %{ultimateclans.getConfig.world}% clans-%{_clan}% %{_player}%" loop 100 times: send "" if {ultimateclans.region.method} is "sg" or "sk" or "Skript" or "SkriptGuard": add player to {uc.cuboid.members.%{_clan}%::*} delete {ultimateclans.%{_player}%.i.invite.tag} delete {ultimateclans.%{_player}%.i.invite.owner} delete {ultimateclans.%{_player}%.i.invite.clanname} set {ultimateclans.%{_player}%.i.invite} to false delete {ultimateclans.%{_player}%.i.invite} send "&aDolaczono do gildii!" if {ultimateclans.getConfig.broadcast.join} is true: broadcast "&aGracz &6%{_player}%&a dolaczyl do gildii &6%{_clan}%&a!" stop stop if arg 1 is "odrzuc" or "deny": if {ultimateclans.NoTag.enable} is true: send "%{ultimateclans.getMessage.unknown-command}%" stop if {ultimateclans.command.odrzuc} is false: send "%{ultimateclans.getMessage.unknown-command}%" stop if player doesn't have permission "ultimateclans.default": #' send "%{ultimateclans.getMessage.permission}%" stop set {_player} to name of player if {ultimateclans.%{_player}%.i.invite} is not set: set {ultimateclans.%{_player}%.i.invite} to false if {ultimateclans.%{_player}%.i.invite} is not true: send "&cNie masz zadnego zaproszenia do gildii!" stop set {_clan} to {ultimateclans.%{_player}%.i.invite.clanname} set {_tag} to {ultimateclans.%{_player}%.i.invite.tag} set {_owner} to {ultimateclans.%{_player}%.i.invite.owner} parsed as player if {_owner} is online: send "&cZaproszenie do gildii zostalo odrzucone przez gracza &7%{_player}%" to {_owner} if {ultimateclans.payitem.invite} is true: give {ultimateclans.getConfig.payitem.invite.cost} to player's inventory send "&aZwrocono: &6%{ultimateclans.getConfig.payitem.invite.cost}% &aza zaproszenie!" to {_owner} if {ultimateclans.paymoney.invite} is true: give {ultimateclans.getConfig.paymoney.invite.cost} to player's money send "&aZwrocono: &6%{ultimateclans.getConfig.paymoney.invite.cost}%$ &aza zaproszenie!" to {_owner} delete {ultimateclans.%{_player}%.i.invite.tag} delete {ultimateclans.%{_player}%.i.invite.owner} delete {ultimateclans.%{_player}%.i.invite.clanname} delete {ultimateclans.%{_player}%.i.invite} send "&cOdrzucono zaproszenie do gildii: &7%{_clan}%!" stop if arg 1 is "odejdz" or "leave" or "opusc": if {ultimateclans.NoTag.enable} is true: send "%{ultimateclans.getMessage.unknown-command}%" stop if {ultimateclans.command.opusc} is false: send "%{ultimateclans.getMessage.unknown-command}%" stop if player has permission "ultimateclans.default": set {_player} to name of player set {_owner} to {ultimateclans.%name of player%.owner} if {_owner} is true: if {ultimateclans.lang} is "pl": send "&cJestes zalozycielem gildii! Jezeli chcesz usunac klan, uzyj &7/usun" stop if {ultimateclans.lang} is "eng": send "&cJestes zalozycielem gildii! Jezeli chcesz usunac klan, uzyj &7/delete" stop set {_mod} to {ultimateclans.%{_player}%.mod} set {_member} to {ultimateclans.%{_player}%.member} if {_member} is true: set {_clan} to {ultimateclans.%{_player}%.clan.name} if {ultimateclans.tag} is true: edit tag of player to "" remove 1 from {ultimateclans.clan.%{_clan}%.member-number} if {ultimateclans.region.method} is "wg" or "WG" or "Wg" or "WorldGuard" or "worldguard" or "Worldguard": make console execute command "rg removemember -w %world of player% clans-%{_clan}% %name of player%" if {ultimateclans.region.method} is "sg" or "sk" or "Skript" or "SkriptGuard": remove player from {uc.cuboid.members.%{_clan}%::*} remove player from {ultimateclans.%{ultimateclans.%name of player%.clan.name}%.members::*} clear {ultimateclans.%{_player}%.clan.name} clear {ultimateclans.%{_player}%.ownername} clear {ultimateclans.%{_player}%.clan.tag} clear {ultimateclans.%{_player}%.member} loop 100 times: send "" send "&aOpuszczono gildie &7%{_clan}%&a!" if {ultimateclans.getConfig.broadcast.leave} is true: broadcast "&7Gracz &6%{_player}%&7 opuscil gildie &6%{_clan}%&7!" if {_mod} is true: set {ultimateclans.%{_player}%.mod} to false clear {ultimateclans.%{_player}%.owner.tag} clear {ultimateclans.%{_player}%.owner.clanname} clear {ultimateclans.%{_player}%.owner.name} stop stop else: send "&cNie jestes w gildii!" stop else: send "%{ultimateclans.getMessage.permission}%" stop if arg 1 is "kick" or "wyrzuc": if {ultimateclans.NoTag.enable} is true: send "%{ultimateclans.getMessage.unknown-command}%" stop if {ultimateclans.command.wyrzuc} is false: send "%{ultimateclans.getMessage.unknown-command}%" stop if player doesn't have permission "ultimateclans.default": # ' send "%{ultimateclans.getMessage.permission}%" stop if {ultimateclans.%name of player%.owner} is not true: if {ultimateclans.%name of player%.mod} is not true: send "&cNie jestes zalozycielem/moderatorem gildii!" stop if arg 2 is not set: send "&cNie podano nazwy gracza!" stop set {_arg} to arg 2 if {ultimateclans.%{_arg}%.member} is not true: send "&cTen gracz nie ma gildii!" stop if {ultimateclans.%name of player%.owner.clanname} is not {ultimateclans.%{_arg}%.clan.name}: send "&cW gildii nie ma takiego gracza" stop if {ultimateclans.%{_arg}%.owner} is true: send "&cNie mozna wyrzucic samego siebie!" stop if {ultimateclans.%{_arg}%.mod} is player: send "&cNie mozna wyrzucic samego siebie!" stop if {ultimateclans.%{_arg}%.mod} is true: if {ultimateclans.%player%.mod} is true: send "&cModerator nie moze wyrzucic moderatora!" stop if {ultimateclans.region.method} is "wg" or "WG" or "Wg" or "WorldGuard" or "worldguard" or "Worldguard": make console execute command "rg removemember -w %{ultimateclans.getConfig.world}% clans-%{ultimateclans.%{_arg}%.clan.name}% %{_arg}%" if {ultimateclans.region.method} is "sg" or "sk" or "Skript" or "SkriptGuard": remove player from {uc.cuboid.members.%{ultimateclans.%{_arg}%.clan.name}%::*} remove {_arg} from {ultimateclans.%{ultimateclans.%{_arg}%.clan.name}%.members::*} remove 1 from {ultimateclans.%{ultimateclans.%{_arg}%.clan.name}%.member-number} set {ultimateclans.%{_arg}%.member} to false clear {ultimateclans.%{_arg}%.clan.tag} clear {ultimateclans.%{_arg}%.ownername} clear {ultimateclans.%{_arg}%.clan.name} set {ultimateclans.%{_arg}%.mod} to false clear {ultimateclans.%{_arg}%.owner.tag} clear {ultimateclans.%{_arg}%.owner.clanname} clear {ultimateclans.%{_arg}%.owner.name} send "&aGracz zostal wyrzucony!" if {ultimateclans.%{_arg}%.online} is true: send "&cWyrzucono Cie z gildii!" to {_arg} if {ultimateclans.tag} is true: edit tag of {_arg} to "" if {ultimateclans.%{_arg}%.online} is false: set {ultimateclans.%{_arg}%.kick.true} to true stop stop if arg 1 is "profil" or "profile" or "info": if {ultimateclans.NoTag.enable} is false: send "%{ultimateclans.getMessage.unknown-command}%" stop if {ultimateclans.command.profil} is false: send "%{ultimateclans.getMessage.unknown-command}%" stop if player doesn't have permission "ultimateclans.info": #' send "%{ultimateclans.getMessage.permission}%" stop set {_arg} to arg 2 if {_arg} is set: set {_name} to {ultimateclans.clan.%{_arg}%.name} if {_name} is set: set {_owner} to {ultimateclans.clan.%{_arg}%.ownername} send "&aZalozyciel: &7%{_owner}%" send "&aNazwa: &7%{_name}%" send "&aTag: &7%{ultimateclans.clan.%{_arg}%.tag}%" send "&aLiczba czlonkow: &7%{ultimateclans.%{_arg}%.member-number}%" if {ultimateclans.clan.%{_arg}%.kill} is set: send "&aZabojstwa: &7%{ultimateclans.clan.%{_arg}%.kill}%" if {ultimateclans.clan.%{_arg}%.kill} is not set: send "&aZabojstwa: &70" if {ultimateclans.clan.%{_arg}%.death} is set: send "&aSmierci: &7%{ultimateclans.clan.%{_arg}%.death}%" if {ultimateclans.clan.%{_arg}%.death} is not set: send "&aSmierci: &70" if {ultimateclans.clan.%{_arg}%.info} is set: send "&aInfo:&7 %{ultimateclans.clan.%{_arg}%.info}%" send "&aCzlonkowie: &7%{ultimateclans.%{_arg}%.members::*}%" stop else: if {ultimateclans.clan.%{_arg}%.tagauth} is set: set {_clan} to {ultimateclans.clan.%{_arg}%.tag.fullname} if {ultimateclans.clan.%{_clan}%.tag} is set: if {ultimateclans.clan.%{ultimateclans.clan.%{_clan}%.tag.fullname}%.info} is set: send "&aZalozyciel: &7%{ultimateclans.clan.%{_clan}%.ownername}%" send "&aNazwa: &7%{ultimateclans.clan.%{_clan}%.name}%" send "&aTag: &7%{ultimateclans.clan.%{_clan}%.tag}%" send "&aLiczba czlonkow: &7%{ultimateclans.%{_clan}%.member-number}%" if {ultimateclans.clan.%{_clan}%.kill} is set: send "&aZabojstwa: &7%{ultimateclans.clan.%{_clan}%.kill}%" if {ultimateclans.clan.%{_clan}%.kill} is not set: send "&aZabojstwa: &70" if {ultimateclans.clan.%{_clan}%.death} is set: send "&aSmierci: &7%{ultimateclans.clan.%{_clan}%.death}%" if {ultimateclans.clan.%{_clan}%.death} is not set: send "&aSmierci: &70" send "&aInfo:&7 %{ultimateclans.clan.%{_clan}%.info}%" send "&aCzlonkowie: &7%{ultimateclans.%{_clan}%.members::*}%" stop send "&aInfo:&7 %{ultimateclans.clan.%{_clan}%.info}%" stop else: send "&cNie ma takiej gildii!" stop else: send "&cNie ma takiej gildii!" stop else: set {_player} to name of player if {ultimateclans.%{_player}%.member} is true: set {_clan} to {ultimateclans.%{_player}%.clan.name} if {ultimateclans.%{_player}%.owner} is true: set {_clan} to {ultimateclans.%{_player}%.owner.clanname} make player execute command "profil %{_clan}%" stop if arg 1 is "setspawn": if player has permission "ultimateclans.admin": set {ultimateclans.spawn.%world%} to location of player send "&aUstawiono punkt spawnu!" stop else: send "%{ultimateclans.getMessage.permission}%" stop if arg 1 is "moderator" or "mod": if {ultimateclans.NoTag.enable} is true: send "%{ultimateclans.getMessage.unknown-command}%" stop if {ultimateclans.command.moderator} is false: send "%{ultimateclans.getMessage.unknown-command}%" stop set {_argplayer} to arg 2 if {_argplayer} is not set: send "&cPodaj nazwe gracza!" stop set {_player} to name of player set {_owner} to {ultimateclans.%name of player%.owner} if {_owner} is not true: send "&cNie jestes zalozycielem gildii!" stop set {_clan} to {ultimateclans.%{_player}%.owner.clanname} set {_argmod} to {ultimateclans.%{_argplayer}%.mod} if {_clan} is not {ultimateclans.%{_argplayer}%.clan.name}: send "&cTo nie jest czlonek Twojej gildii!" stop if {_argmod} is true: set {ultimateclans.%{_argplayer}%.mod} to false send "&aZabrano Moderatora!" clear {ultimateclans.%{_argplayer}%.owner.tag} clear {ultimateclans.%{_argplayer}%.owner.clanname} clear {ultimateclans.%{_argplayer}%.owner.name} stop set {_tag} to {ultimateclans.%{_player}%.owner.tag} if {_argmod} is false: set {ultimateclans.%{_argplayer}%.mod} to true set {ultimateclans.%{_argplayer}%.owner.tag} to {-tag} set {ultimateclans.%{_argplayer}%.owner.clanname} to {_clan} set {ultimateclans.%{_argplayer}%.owner.name} to {_player} send "&aGracz: &7%{_argplayer}% &aotrzymal &7Moderatora&a!" stop if {_argmod} is not set: set {ultimateclans.%{_argplayer}%.mod} to true set {ultimateclans.%{_argplayer}%.owner.tag} to {-tag} set {ultimateclans.%{_argplayer}%.owner.clanname} to {_clan} set {ultimateclans.%{_argplayer}%.owner.name} to {_player} send "&aGracz: &7%{_argplayer}% &aotrzymal &7Moderatora&a!" stop else: send "&cBlad! Powod: &Mod Manage - Set" stop if arg 1 is "zarzadzaj" or "manage": if {ultimateclans.NoTag.enable} is true: send "%{ultimateclans.getMessage.unknown-command}%" stop if player doesn't have permission "ultimateclans.default": #' send "%{ultimateclans.getMessage.permission}%" stop if {ultimateclans.%name of player%.owner} is true: set {_rank} to "owner" if {ultimateclans.%name of player%.mod} is not true: set {_rank} to "mod" if {_rank} is not set: send "&cMusisz byc zalozycielem lub moderatorem aby wykoanac ta czynnosc!" stop set {_arg1} to arg 2 if {_arg1} is not set: send "&aTen system pozwala zarzadzac niektorymi aspektami gildii" send "&8• %{color.1}%/%{ultimateclans.getConfig.prefix}% zarzadzaj sethome &8-%{color.2}% Ustawia nowy home gildii" send "&8• %{color.1}%/%{ultimateclans.getConfig.prefix}% zarzadzaj setinfo &8-%{color.2}% Ustawia profilowa informacje o gildii" stop if {_arg1} is "ustawinfo" or "setinfo": clear {ultimateclans.clan.%{ultimateclans.%name of player%.owner.clanname}%.info} clear {ultimateclans.clan.%{ultimateclans.%name of player%.owner.tag}%.info} wait 1 tick set {ultimateclans.info.set.%name of player%} to true send "&aTeraz napisz informacje na chacie" stop if {_arg1} is "sethome" or "ustawdom": if {ultimateclans.getConfig.region.sethome} is not true: send "&7Zablokowano ta mozliwosc" stop if {ultimateclans.region.method} is "sk" or "skript" or "skriptguard" or "sg": loop {uc.cuboid.list::*}: if distance between player and {uc.cuboid.loc.%loop-value%} is smaller than {uc.cuboid.size.%loop-value%}: if {ultimateclans.clan.%loop-value%.ownername} is player: set {_m} to true if {_m} is true: if {ultimateclans.clan.%{ultimateclans.%name of player%.owner.clanname}%.region.point} is set: set {ultimateclans.clan.%{ultimateclans.%name of player%.owner.clanname}%.region.point.home} to location of player send "&aUstawiono nowy dom gildii!" stop else: send "&cTwoja gildia nie ma terenu!" stop else: send "&cMusisz znajdowac sie na terenie swojej gildii!" stop if {ultimateclans.region.method} is "wg" or "WG" or "Wg" or "WorldGuard" or "worldguard" or "Worldguard": if distance between player and {ultimateclans.clan.%{ultimateclans.%name of player%.owner.clanname}%.region.point} is smaller than {ultimateclans.worldguard.size}/2: if {ultimateclans.clan.%{ultimateclans.%name of player%.owner.clanname}%.region.point} is set: set {ultimateclans.clan.%{ultimateclans.%name of player%.owner.clanname}%.region.point} to location of player send "&aUstawiono" stop else: send "&cTwoja gildia nie ma terenu!" stop else: send "&cMusisz znajdowac sie w poblizu centrum gildii!" stop if arg 1 is "sojusz": if {ultimateclans.NoTag.enable} is true: send "%{ultimateclans.getMessage.unknown-command}%" stop if {ultimateclans.command.sojusz} is false: send "%{ultimateclans.getMessage.unknown-command}%" stop if arg 2 is not set: send "&cPodaj nazwe gildii!" stop if {ultimateclans.clan.%arg 2%.tag} is not set: if arg 2 is {ultimateclans.clan.%arg 2%.tag}: send "&aMusisz podac nazwe gildii! Pelna nazwa podanej gildii to &6%{ultimateclans.clan.%arg 2%.name}%" stop send "&cNie ma gildii o takiej nazwie!" stop if {ultimateclans.%name of player%.owner} is not true: send "&cNie jestes zalozycielem gildii!" stop set {_arg} to arg 2 set {_clan} to {ultimateclans.%name of player%.owner.clanname} if {_arg} is {_clan}: send "&cNie mozna nawiazac sojuszu ze swoja gildia!" stop if {ultimateclans.pact.%{_clan}%.%{_arg}%} or {ultimateclans.pact.%{_arg}%.%{_clan}%} is true: send "&cMasz juz sojusz z ta gildia!" stop if {ultimateclans.pact-invite.%{_clan}%.%{_arg}%} is true: send "&cWyslano juz zaproszenie do sojuszu" stop if {ultimateclans.pact-invite.%{_arg}%.%{_clan}%} is true: set {ultimateclans.pact.%{_clan}%.%{_arg}%} to true set {ultimateclans.pact.%{_arg}%.%{_clan}%} to true send "&aNazwiazano sojusz z gildia &6%{_arg}%&a!" send "&aGildia &6%{_clan}% &anawiazala sojusz z Twoja gildia" to {ultimateclans.pact-invite-owner.%{_arg}%} set {ultimateclans.pact-invite.%{_arg}%.%{_clan}%} to false set {ultimateclans.pact-invite.%{_clan}%.%{_arg}%} to false add {_clan} to {ultimateclans.clan.%{_arg}%.pact-list::*} add {_arg} to {ultimateclans.clan.%{_clan}%.pact-list::*} delete {ultimateclans.pact-invite.%{_clan}%.%{_arg}%} delete {ultimateclans.pact-invite.%{_arg}%.%{_clan}%} delete {ultimateclans.pact-invite-owner.%{_clan}%} if {ultimateclans.getConfig.broadcast.pact} is true: broadcast "&aGildia &6%{_clan}% &anawiazala sojusz z gildia &6%{_arg}%" stop stop else: set {ultimateclans.pact-invite.%{_clan}%.%{_arg}%} to true set {ultimateclans.pact-invite-owner.%{_clan}%} to player set {_owner} to {ultimateclans.clan.%{_arg}%.ownername} send "&aWyslano zaproszenie do sojuszu!" if {ultimateclans.%{_owner}%.online} is true: send "&aTwoja gildia otrzymala zaproszenie do sojuszu od gildii &6%{_clan}%" to {_owner} stop else: add "&f| &aTwoja gildia otrzymala zaproszenie do sojuszu od gildii &6%{_clan}% " to {ultimateclans.%{_owner}%.join.msg::*} stop if arg 1 is "sojusze": if {ultimateclans.NoTag.enable} is true: send "%{ultimateclans.getMessage.unknown-command}%" stop if {ultimateclans.command.sojusze} is false: send "%{ultimateclans.getMessage.unknown-command}%" stop if {ultimateclans.%name of player%.owner} is true: set {_clan} to {ultimateclans.%name of player%.owner.clanname} if {ultimateclans.%name of player%.member} is true: set {_clan} to {ultimateclans.%name of player%.clan.name} if {_clan} is not set: send "&cNie posiadasz gildii!" stop if {ultimateclans.clan.%{_clan}%.pact-list::*} is not set: send "&aSojusze: &6Obecnie brak" stop else: send "&aSojusze: &6%{ultimateclans.clan.%{_clan}%.pact-list::*}%" stop if arg 1 is "rozwiaz" or "solve": if {ultimateclans.NoTag.enable} is true: send "%{ultimateclans.getMessage.unknown-command}%" stop if {ultimateclans.command.rozwiaz} is false: send "%{ultimateclans.getMessage.unknown-command}%" stop if arg 2 is not set: send "&cPodaj nazwe gildii!" stop if {ultimateclans.%name of player%.owner} is not true: send "&cNie jestes zalozycielem gildii!" stop set {_arg} to arg 2 if {ultimateclans.clan.%{_arg}%.tag} is not set: if {_arg} is {ultimateclans.clan.%{_arg}%.tag}: send "&aMusisz podac nazwe gildii! Pelna nazwa podanej gildii to &6%{ultimateclans.clan.%{_arg}%.name}%" stop send "&cNie ma gildii o takiej nazwie!" stop set {_clan} to {ultimateclans.%name of player%.owner.clanname} if {ultimateclans.pact.%{_clan}%.%{_arg}%} is not true: send "&cNie masz sojuszu z podana gildia!" stop set {ultimateclans.pact.%{_clan}%.%{_arg}%} to false set {ultimateclans.pact.%{_arg}%.%{_clan}%} to false remove {_clan} from {ultimateclans.clan.%{_arg}%.pact-list::*} remove {_arg} from {ultimateclans.clan.%{_clan}%.pact-list::*} send "&cRozwiazano sojusz!" if {ultimateclans.getConfig.broadcast.pact-leave} is true: broadcast "&7Gildia &6%{_clan}% &7rozwiazala sojusz z gildia &6%{_arg}%&7!" set {_owner} to {ultimateclans.clan.%{_arg}%.ownername} if {ultimateclans.%{_owner}%.online} is true: send "&cGildia &6%{_clan}% &crozwiazala sojusz z Twoja gildia!" to {_owner} stop else: add "&f| &cGildia &6%{_clan}% &crozwiazala sojusz z Twoja gildia! " to {ultimateclans.%{_owner}%.join.msg::*} stop if arg 1 is "wojna" or "war": if {ultimateclans.NoTag.enable} is true: send "%{ultimateclans.getMessage.unknown-command}%" stop if {ultimateclans.command.wojna} is false: send "%{ultimateclans.getMessage.unknown-command}%" stop if arg 2 is not set: send "&cPodaj nazwe gildii!" stop if {ultimateclans.clan.%arg 2%.tag} is not set: if arg 2 is {ultimateclans.clan.%arg 2%.tag}: send "&aMusisz podac nazwe gildii! Pelna nazwa podanej gildii to &6%{ultimateclans.clan.%arg 2%.name}%" stop send "&cNie ma gildii o takiej nazwie!" stop if {ultimateclans.%name of player%.owner} is not true: send "&cNie jestes zalozycielem gildii!" stop set {_arg} to arg 2 set {_clan} to {ultimateclans.%name of player%.owner.clanname} if {_arg} is {_clan}: send "&cNie mozna wywolac wojny ze swoja gildia!" stop if {ultimateclans.war.%{_clan}%.%{_arg}%} or {ultimateclans.war.%{_arg}%.%{_clan}%} is true: send "&cMasz juz wojne z ta gildia!" stop set {ultimateclans.war.%{_clan}%.%{_arg}%} to true set {ultimateclans.war.%{_arg}%.%{_clan}%} to true add {_arg} to {ultimateclans.clan.%{_clan}%.wars-list::*} add {_clan} to {ultimateclans.clan.%{_arg}%.wars-list::*} send "&cWywolano wojne z gildia &a%{_arg}%&c! Okres przygotowac bedzie trwal jeszcze przez &a%{ultimateclans.getConfig.wars.takeover.time}% minut&c!" set {_owner} to {ultimateclans.clan.%{_arg}%.ownername} if {ultimateclans.%{_owner}%.online} is true: send "&cGildia &a%{_clan}% &cwywolala wojne Twojej gildii! Okres przygotowac bedzie trwal jeszcze przez &a%{ultimateclans.getConfig.wars.takeover.time}% minut &c!" to {_owner} else: add "&f| &cGildia &a%{_clan}% &cwywolala wojne Twojej gildii! Okres przygotowac bedzie trwal jeszcze przez &a%{ultimateclans.getConfig.wars.takeover.time}% minut&c!" to {ultimateclans.%{_owner}%.join.msg::*} if {ultimateclans.getConfig.broadcast.war} is true: broadcast "&cGildia &a%{_clan}% &cwywolala wojne z gildia &a%{_arg}%" stop if arg 1 is "wojny" or "wars": if {ultimateclans.NoTag.enable} is true: send "%{ultimateclans.getMessage.unknown-command}%" stop if {ultimateclans.command.wojny} is false: send "%{ultimateclans.getMessage.unknown-command}%" stop if {ultimateclans.%name of player%.owner} is true: set {_clan} to {ultimateclans.%name of player%.owner.clanname} if {ultimateclans.%name of player%.member} is true: set {_clan} to {ultimateclans.%name of player%.clan.name} if {_clan} is not set: send "&cNie posiadasz gildii!" stop if {ultimateclans.clan.%{_clan}%.wars-list::*} is not set: send "&aWojny: &cObecnie brak" stop else: send "&aWojny: &c%{ultimateclans.clan.%{_clan}%.wars-list::*}%" stop if arg 1 is "rozejm" or "zakoncz": if {ultimateclans.NoTag.enable} is false: send "%{ultimateclans.getMessage.unknown-command}%" stop if {ultimateclans.command.rozejm} is false: send "%{ultimateclans.getMessage.unknown-command}%" stop if arg 2 is not set: send "&cPodaj nazwe gildii!" stop if {ultimateclans.%name of player%.owner} is not true: send "&cNie jestes zalozycielem gildii!" stop set {_arg} to arg 2 if {ultimateclans.clan.%{_arg}%.tag} is not set: if {_arg} is {ultimateclans.clan.%{_arg}%.tag}: send "&aMusisz podac nazwe gildii! Pelna nazwa podanej gildii to &6%{ultimateclans.clan.%{_arg}%.name}%" stop send "&cNie ma gildii o takiej nazwie!" stop set {_clan} to {ultimateclans.%name of player%.owner.clanname} if {ultimateclans.war.%{_clan}%.%{_arg}%} is not true: send "&cNie masz wojny z podana gildia!" stop set {_owner} to {ultimateclans.clan.%{_arg}%.ownername} if {ultimateclans.war-armistice.%{_clan}%.%{_arg}%} is true: set {ultimateclans.war-armistice.%{_clan}%.%{_arg}%} to false set {ultimateclans.war-armistice.%{_arg}%.%{_clan}%} to false delete {ultimateclans.war-armistice.%{_clan}%.%{_arg}%} delete {ultimateclans.war-armistice.%{_arg}%.%{_clan}%} add {_arg} to {_l::*} add {_clan} to {_l::*} loop {_l::*}: loop {_l::*}: set {ultimateclans.war.%loop-value-1%.%loop-value-2%.start} to false set {ultimateclans.war.%loop-value-1%.%loop-value-2%.time} to 0 set {ultimateclans.war.%loop-value-1%.%loop-value-2%.placed} to false set {ultimateclans.war.%loop-value-1%.%loop-value-2%.placed-time} to 0 delete {ultimateclans.war.%loop-value-1%.%loop-value-2%.placed-off} delete {ultimateclans.war.%loop-value-1%.%loop-value-2%.placed-deff} delete {ultimateclans.war.%loop-value-1%.%loop-value-2%.placed-deff-rg} set {ultimateclans.war.%{_clan}%.%{_arg}%} to false set {ultimateclans.war.%{_arg}%.%{_clan}%} to false remove {_arg} from {ultimateclans.clan.%{_clan}%.wars-list::*} remove {_clan} from {ultimateclans.clan.%{_arg}%.wars-list::*} send "&aWojna zakonczyla sie rozejmem!" if {ultimateclans.%{_owner}%.online} is true: send "&aGildia &6%{_clan}% &azgodzila sie na rozejm, wojna zakonczona!" to {_owner} else: add "&f| &aGildia &6%{_clan}% &azgodzila sie na rozejm, wojna zakonczona! " to {ultimateclans.%{_owner}%.join.msg::*} stop if {ultimateclans.getConfig.broadcast.war-leave} is true: broadcast "&aWojna pomiedzy gildia &6%{_clan}% &ai &6%{_arg}%&a zakonczyla sie rozejmem!" stop stop else: set {ultimateclans.war-armistice.%{_arg}%.%{_clan}%} to true send "&aZaproponowano rozejm!" if {ultimateclans.%{_owner}%.online} is true: send "&aGildia &6%{_clan}% &azaproponowala rozejm!" to {_owner} stop else: add "&f| &aGildia &6%{_clan}% &azaproponowala rozejm! " to {ultimateclans.%{_owner}%.join.msg::*} stop if arg 1 is "top" or "ranking": set {_page} to arg 2 if {_page} is not set: set {_page} to 2 set {_num} to size of {ultimateclans.ranks.list::*} set {_pages-int} to ceil({_num}/10) if {_pages-int} is smaller than 1: set {_pages-int} to 1 if {_page} is smaller than 1: send "&cNie ma takiej strony!" stop if {_page} is greater than {_pages-int}: send "&cNie ma takiej strony!" stop loop {ultimateclans.ranks.list::*}: loop {_num} times: set {_ultimateclans.ranks.list::%loop-index%} to loop-value loop {_num} times: loop {_ultimateclans.ranks.list::*}: if {_point.%loop-number%} is not set: set {_point.%loop-number%} to loop-value set {_clan.%loop-number%} to loop-index else if loop-value is greater than {_point.%loop-number%}: set {_point.%loop-number%} to loop-value set {_clan.%loop-number%} to loop-index remove {_point.%loop-number%} from {_ultimateclans.ranks.list::*} send "&8--------------[ &6Ranking Gildii &8] [&6%{_page}%&8/&6%{_pages-int}%&8]--------------" if {_num} is smaller than 1: send "&71. &6== Na serwerze nie ma jeszcze zadnej gildii ==" stop loop {_num} times: #8 set {_pages-list} to ({_page}-1)*10 #0 add loop-number to {_pages-list} #1 if {ultimateclans.clan.%{_clan.%{_pages-list}%}%.name} is not set: stop send "&7%{_pages-list}%&8. &6%{ultimateclans.clan.%{_clan.%{_pages-list}%}%.name}%&8: &6%{_point.%{_pages-list}%}%" set {_ultimateclans.ranks.list::%{_clan.%{_pages-list}%}%} to {_point.%{_pages-list}%} if {_pages-list} is equal to 10: stop if arg 1 is "admin": if player has permission "ultimateclans.admin": if arg 2 is not set: send "%aTen system pozwala zarzadzac &7UltimateClans" send "&aKomenda: &7/clans admin [funkcja]" send "&aFunkcje: &7Delete" send "&aFunkcje techniczne: &7DelArgList, AddArgList, DelIntList, AddIntList" stop if arg 2 is "delarglist": if arg 3 is set: if arg 4 is set: remove arg 3 from {ultimateclans.%arg 4%.members::*} send "Wyczysczono nieprawidlowego czlonka z listy klanu" stop if arg 2 is "addarglist": if arg 3 is set: if arg 4 is set: add arg 3 to {ultimateclans.%arg 4%.members::*} send "Dodano czlonka do listy klanu" stop if arg 2 is "delintlist": if arg 3 is set: remove 1 from {ultimateclans.%arg 3%.member-number} send "Usunieto liczbe z listy listy klanu" stop if arg 2 is "addintlist": if arg 3 is set: add 1 to {ultimateclans.%arg 3%.member-number} send "Dodano liczbe do listy listy klanu" stop if arg 2 is "Delete": if arg 3 is not set: send "&aAby usunac wybrany klan, uzyj: &7/%{ultimateclans.getConfig.prefix}%admin delete [name]" stop if arg 3 is set: # " if {ultimateclans.clan.%arg 3%.name} is set: if {ultimateclans.region.method} is "chunk" or "Chunk": delete {ultimateclans.chunk::%{ultimateclans.%{ultimateclans.clan.%arg 3%.ownername}%.owner.clanname}%} loop {ultimateclans.clanlist::*}: remove arg 3 from {ultimateclans.clanlist::*} loop {ultimateclans.tagclanlist::*}: remove {ultimateclans.%{ultimateclans.clan.%arg 3%.ownername}%.owner.tag} from {ultimateclans.tagclanlist::*} wait 1 tick set {ultimateclans.%{ultimateclans.clan.%arg 3%.ownername}%.owner} to false clear {ultimateclans.clan.%arg 3%.tag} clear {ultimateclans.clan.%arg 3%.name} if {ultimateclans.setblock} is true: set block under {ultimateclans.clan.%{ultimateclans.%{ultimateclans.clan.%arg 3%.ownername}%.owner.clanname}%.region.point} to air clear {ultimateclans.clan.%{ultimateclans.%{ultimateclans.clan.%arg 3%.ownername}%.owner.clanname}%.region.point} clear {ultimateclans.clan.%{ultimateclans.%{ultimateclans.clan.%arg 3%.ownername}%.owner.clanname}%.region.point} clear {ultimateclans.clan.%{ultimateclans.%{ultimateclans.clan.%arg 3%.ownername}%.owner.tag}%.tagauth} clear {ultimateclans.clan.%{ultimateclans.%{ultimateclans.clan.%arg 3%.ownername}%.owner.tag}%.tag.fullname} clear {ultimateclans.clan.%{ultimateclans.%{ultimateclans.clan.%arg 3%.ownername}%.owner.tag}%.ownername} clear {ultimateclans.%{ultimateclans.%{ultimateclans.clan.%arg 3%.ownername}%.owner.clanname}%.member-number} clear {ultimateclans.clan.%{ultimateclans.%{ultimateclans.clan.%arg 3%.ownername}%.owner.clanname}%.region.point} loop {ultimateclans.%{ultimateclans.%{ultimateclans.clan.%arg 3%.ownername}%.owner.clanname}%.members::*}: set {ultimateclans.%loop-value%.member} to false clear {ultimateclans.%loop-value%.clan.tag} clear {ultimateclans.%loop-value%.ownername} clear {ultimateclans.%loop-value%.clan.name} exit loop wait 2 tick clear {ultimateclans.%{ultimateclans.clan.%arg 3%.ownername}%.owner.tag} clear {ultimateclans.%{ultimateclans.clan.%arg 3%.ownername}%.owner.clanname} send "&aPomyslnie usunieto klan!" stop # if {ultimateclans.region.method} is "wg" or "WG" or "Wg" or "WorldGuard" or "worldguard" or "Worldguard": make console execute command "rg remove -w %world of player% Clans-%{ultimateclans.%name of player%.owner.clanname}%" set {ultimateclans.clan.%{ultimateclans.%name of player%.owner.clanname}%.regionset} to false loop {ultimateclans.clanlist::*}: remove arg 3 from {ultimateclans.clanlist::*} loop {ultimateclans.tagclanlist::*}: remove {ultimateclans.%{ultimateclans.clan.%arg 3%.ownername}%.owner.tag} from {ultimateclans.tagclanlist::*} wait 1 tick set {ultimateclans.%{ultimateclans.clan.%arg 3%.ownername}%.owner} to false clear {ultimateclans.clan.%arg 3%.tag} clear {ultimateclans.clan.%arg 3%.name} if {ultimateclans.setblock} is true: set block under {ultimateclans.clan.%{ultimateclans.%{ultimateclans.clan.%arg 3%.ownername}%.owner.clanname}%.region.point} to air clear {ultimateclans.clan.%{ultimateclans.%{ultimateclans.clan.%arg 3%.ownername}%.owner.clanname}%.region.point} clear {ultimateclans.clan.%{ultimateclans.%{ultimateclans.clan.%arg 3%.ownername}%.owner.clanname}%.region.point} clear {ultimateclans.clan.%{ultimateclans.%{ultimateclans.clan.%arg 3%.ownername}%.owner.tag}%.tagauth} clear {ultimateclans.clan.%{ultimateclans.%{ultimateclans.clan.%arg 3%.ownername}%.owner.tag}%.tag.fullname} clear {ultimateclans.clan.%{ultimateclans.%{ultimateclans.clan.%arg 3%.ownername}%.owner.tag}%.ownername} clear {ultimateclans.%{ultimateclans.%{ultimateclans.clan.%arg 3%.ownername}%.owner.clanname}%.member-number} clear {ultimateclans.clan.%{ultimateclans.%{ultimateclans.clan.%arg 3%.ownername}%.owner.clanname}%.region.point} loop {ultimateclans.%{ultimateclans.%{ultimateclans.clan.%arg 3%.ownername}%.owner.clanname}%.members::*}: set {ultimateclans.%loop-value%.member} to false delete {ultimateclans.%loop-value%.clan.tag} delete {ultimateclans.%loop-value%.ownername} delete {ultimateclans.%loop-value%.clan.naWme} delete {ultimateclans.%{ultimateclans.%{ultimateclans.clan.%arg 3%.ownername}%.owner.clanname}%.members::*} delete {ultimateclans.%{ultimateclans.%{ultimateclans.clan.%arg 3%.ownername}%.owner.clanname}%.member-number} wait 2 tick clear {ultimateclans.%{ultimateclans.clan.%arg 3%.ownername}%.owner.tag} clear {ultimateclans.%{ultimateclans.clan.%arg 3%.ownername}%.owner.clanname} send "&aPomyslnie usunieto klan!" stop else: send "&cBlad!" stop else: send "%{ultimateclans.getMessage.permission}%" stop #" if arg 1 is not {@commands.list.1}: if arg 1 is not {@commands.list.2}: send "&cNie ma takiej komendy!" stop if arg 1 is "autor" or "author" or "dzikoysk" or "ultimateclans" or "donate" or "tworca" or "clans": send "&8----------------------" send "&8| &7Autor: &6Dzikoysk &8|" send "&8| &7Nazwa: &6UltimateClans &8|" send "&8| &7Strona:&6 www.Dzikoysk.net &8|" send "&8----------------------" stop if arg 1 is "help" or "pomoc" or "p": if arg 2 is not set: make player execute command "uchelp help 1" stop if arg 2 is "1": make player execute command "uchelp help 1" stop if arg 2 is "2": make player execute command "uchelp help 2" stop if arg 2 is "3": make player execute command "uchelp help 3" stop if arg 1 is not set: make player execute command "uchelp help 1" stop if arg 1 is "1": make player execute command "uchelp help 1" stop if arg 1 is "2": make player execute command "uchelp help 2" stop if arg 1 is "3": make player execute command "uchelp help 3" stop # -- End of Manage Commands -- # # -- Clans Chat -- # command /@ : trigger: if {ultimateclans.%name of player%.owner} is true: set {_prefix} to "&8@ &7&l[Zalozyciel]" set {_clan} to {ultimateclans.%name of player%.owner.clanname} if {ultimateclans.%name of player%.member} is true: set {_prefix} to "&8@ &7&o[Czlonek]" set {_clan} to {ultimateclans.%name of player%.clan.name} if {ultimateclans.%name of player%.mod} is true: set {_prefix} to "&8@ &7[Moderator]" set {_clan} to {ultimateclans.%name of player%.clan.name} if {_clan} is set: loop {ultimateclans.%{_clan}%.members::*}: send "%{_prefix}%%{color.2}%%name of player%&7: %arg 1%" to loop-value stop else: send "&cMusisz byc w gildii, aby uzywac tego czatu!!" stop # -- End of Clans Chat -- # #--------# # Events # #--------# # -- Support -- # #.description("Komenda sluzy do udzielania pomocy w razie problemow") command /uctest []: aliases: ucdzikoysk trigger: if arg 1 is "display": send "1. Name Of Player = %name of player%" send "2. Player = %player%" send "3. Display Name Of Player = %display name of player%" send "4. Coloured Player's Prefix = %coloured player's prefix%" send "5. Uncoloured Player's Prefix = %uncoloured player's prefix%" send "4. Coloured Player's Suffix = %coloured player's suffix%" send "5. Uncoloured Player's Suffix = %uncoloured player's suffix%" stop else: set {_dzikoysk} to "%name of player%" if {_dzikoysk} is "Dzikoysk": send "&cWitaj Dzikoysk! Ten serwer oparty jest o: &6UltimateClans" send "&c* Dzikoysk say:" send "&8----------------------------" send "&8Serwerowa wersja Skript: %skript version%" send "&8Wymagana: Skript 2.0.2" send "&8----------------------------" send "&8Wersja skryptu: {@version}" send "&8----------------------------" send "&8----------------------------" send "&8Prefix: %{ultimateclans.getConfig.prefix}%" send "&8----------------------------" send "&8[Args] Display" stop # -- End of Support -- @# # -- Mailbox and Player Info -- # on join: set {ultimateclans.%name of player%.player} to true set {ultimateclans.%name of player%.online} to true if {ultimateclans.%name of player%.kill} is not set: set {ultimateclans.%name of player%.kill} to 0 if {ultimateclans.%name of player%.death} is not set: set {ultimateclans.%name of player%.death} to 0 set {ultimateclans.%name of player%.lastlogin} to now if {ultimateclans.mailbox.enable} is true: if {ultimateclans.%name of player%.mailbox.msg} is true: if {ultimateclans.lang} is "eng": send "&8Masz nowe wiadomosci. Aby sprawdzic uzyj &7/%{ultimateclans.getConfig.prefix}%mail" stop if {ultimateclans.lang} is "pl": send "&8Masz nowe wiadomosci. Aby sprawdzic uzyj &7/%{ultimateclans.getConfig.prefix}%poczta" stop # -- Logout -- # on logout: set {ultimateclans.%name of player%.online} to false # -- End of Logout -- # every 10 second: loop all players: if {ultimateclans.%loop-player%.loop-value} is true: if {ultimateclans.tag} is true: edit tag of loop-player to "" set {ultimateclans.%loop-player%.loop-value} to false send "&cGildia zostala rozwiazana!" to loop-player stop # -- Alert -- # every 5 minutes: loop all players: if {ultimateclans.%name of loop-players%.i.invite} is true: send "&aOtrzymano zaproszenie do klanu: %{ultimateclans.%loop-player%.i.invite.clanname}%" to loop-player send "&a Aby dolaczyc uzyj &7/%{ultimateclans.getConfig.prefix}%dolacz&a, jezeli chcesz odrzucic, uzyj &7/%{ultimateclans.getConfig.prefix}%odrzuc" to loop-player # -- Broadcast -- # every 1 minute: if {ultimateclans.broadcast} is true: add 1 to {broadcast.timmer} if {broadcast.timmer} is greater than {ultimateclans.broadcast.time}-1: set {broadcast.timmer} to 0 stop #' # -- End of Broadcast -- # # -- UltimateChat -- # on chat: if {ultimateclans.info.set.%name of player%} is true: clear {ultimateclans.clan.%{ultimateclans.%name of player%.owner.clanname}%.info} clear {ultimateclans.clan.%{ultimateclans.%name of player%.owner.tag}%.info} send "&aUstawiono informacje o gildii" to player set {ultimateclans.clan.%{ultimateclans.%name of player%.owner.clanname}%.info} to message set {ultimateclans.info.set.%name of player%} to false cancel event stop set {_chat} to "%{ultimateclans.getConfig.ultimatechat.default}%" if player has permission "ultimateclans.chat.group.1": set {_chat} to "%{ultimateclans.getConfig.ultimatechat.group.1}%" if player has permission "ultimateclans.chat.group.2": set {_chat} to "%{ultimateclans.getConfig.ultimatechat.group.2}%" if {ultimateclans.%name of player%.owner} is true: #set {_clan} to {ultimateclans.%name of player%.owner.clanname} set {_tag} to {ultimateclans.%name of player%.owner.tag} if {ultimateclans.%name of player%.member} is true: #set {_clan} to {ultimateclans.%name of player%.clan.name} set {_tag} to {ultimateclans.%name of player%.clan.tag} if {_tag} is not set: replace all "[{TAG}]" with "" in {_chat} replace all "{RANK}" with "%colored player's prefix%" in {_chat} replace all "{PLAYER}" with "%player%" in {_chat} replace all "{DISPLAY}" with "%display name of player%" in {_chat} replace all "{MESSAGE}" with "%message%" in {_chat} replace all "Â" with "" in {_chat} send "%{_chat}%" to all players cancel event stop replace all "{RANK}" with "%colored player's prefix%" in {_chat} replace all "{PLAYER}" with "%player%" in {_chat} replace all "{DISPLAY}" with "%display name of player%" in {_chat} replace all "{MESSAGE}" with "%message%" in {_chat} replace all "Â" with "" in {_chat} replace all "{TAG}" with "%{_tag}%" in {_chat} send "%{_chat}%" to all players cancel event stop #if {ultimateclans.clan.%{_clan}%.pact-list::*} is set: # loop {ultimateclans.clan.%{_clan}%.pact-list::*}: # loop {ultimateclans.%loop-value%.members::*}: # set {_pact} to {_chat} # replace all "{TAG}" with "&a%{_tag}%" in {_pact} # send "%{_pact}%" to loop-value-2 # remove loop-value-2 from {_lp::*} # exit loop # exit loop #if {ultimateclans.clan.%{_clan}%.wars-list::*} is set: # loop {ultimateclans.clan.%{_clan}%.pact-list::*}: # loop {ultimateclans.%loop-value%.members::*}: # set {_wars} to {_chat} # replace all "{TAG}" with "&a%{_tag}%" in {_wars} # send "%{_wars}%" to loop-value-2 # remove loop-value-2 from {_lp::*} # exit loop # exit loop # #cancel event # -- End of UltimateChat -- # # -- UltimateClans Enable on Start -- # on script load: send "" to console send "&8--------------------------------------------------------------" to the console send "&8| |" to the console send "&8| Enable &eUltimateClans &8|" to the console send "&8| |" to the console send "&8--------------------------------------------------------------" to the console send "" to the console send "&8Author: &eDzikoysk" to the console send "&8Version: &7{@version}" to the console send "" to the console every 5 minute: set {_count} to result of connect to "http://www.dzikoysk.net/projects/ultimateclans/connect/?server={@version}" # -- End of This -- # # -- PvP Disable Event -- # on damage: if victim is not a player: stop if victim's world isn't "%{ultimateclans.getConfig.disable}%": if attacker is not a player: stop if {ultimateclans.%victim%.owner} is true: set {_v} to {ultimateclans.%victim%.owner.clanname} if {ultimateclans.%attacker%.owner} is true: set {_a} to {ultimateclans.%attacker%.owner.clanname} if {ultimateclans.%victim%.member} is true: set {_v} to {ultimateclans.%victim%.clan.name} if {ultimateclans.%attacker%.member} is true: set {_a} to {ultimateclans.%attacker%.clan.name} if {ultimateclans.getConfig.pvp} is true: if {_v} is {_a}: cancel event stop if {_a} is {_v}: cancel event stop else: if {ultimateclans.getConfig.pact.pvp} is false: if {ultimateclans.pact.%{_v}%.%{_a}%} is true: cancel event stop if {ultimateclans.pact.%{_a}%.%{_v}%} is true: cancel event stop # -- End of PvP Disable Event -- # on walking on stone or grass or stone brick or dirt or cobblestone or wool or gravel or snow: if {ultimateclans.getConfig.region.sg.greeting} is not true: if {ultimateclans.getConfig.region.sg.farewell} is not true: stop loop {uc.cuboid.list::*}: if distance between player and {uc.cuboid.loc.%loop-value%} is smaller than {uc.cuboid.size.%loop-value%}: if {ultimateclans.getConfig.region.sg.greeting} is true: if {uc.player.enter.%name of player%} is not set: set {uc.player.enter.%name of player%} to false if {uc.player.enter.%name of player%} is false: set {uc.player.enter.%name of player%} to true set {uc.player.enter.%name of player%.region} to {uc.cuboid.name.%loop-value%} send "&aZnaleziono sie na terenie gildii &6%{uc.cuboid.name.%loop-value%}%&a!" to player stop stop stop if {ultimateclans.getConfig.region.sg.farewell} is true: if {uc.player.enter.%player%} is true: if {uc.player.enter.%name of player%.region} is {uc.cuboid.name.%loop-value%}: set {uc.player.enter.%player%} to false delete {uc.player.enter.%name of player%.region} send "&aOpuszczono teren gildii &6%{uc.cuboid.name.%loop-value%}%&a!" to player stop on quit: set {uc.player.enter.%name of player%} to false clear {uc.player.enter.%name of player%.region} on break: loop {uc.cuboid.list::*}: if distance between event-block and {uc.cuboid.loc.%loop-value%} is smaller than {uc.cuboid.size.%loop-value%}: if {ultimateclans.%name of player%.owner} is true: set {_clan} to {ultimateclans.%name of player%.owner.clanname} if {ultimateclans.%name of player%.member} is true: set {_clan} to {ultimateclans.%name of player%.clan.name} loop {uc.cuboid.members.%loop-value%::*}: set {_lp} to loop-value-2 set {_p} to name of player if {_lp} is {_p}: set {_m} to true if {_m} is true: loop {ultimateclans.clanlist::*}: if {ultimateclans.war.%loop-value-2%.%{_clan}%.placed} is true: if event-block is {ultimateclans.getConfig.wars.takeover.block}: set {_x} to location of block above {ultimateclans.clan.%{_clan}%.region.point} set {_y} to location of block under {_x} if location of event-block is {_y}: set {_off} to {ultimateclans.war.%loop-value-2%.%{_clan}%.placed-off} loop {ultimateclans.%{_clan}%.members::*}: send "&aTwoja gildia przerwala proces przejmowania terenu!" to loop-value-3 loop {ultimateclans.%{_off}%.members::*}: send "&cGildia &a%{_clan}% &czniszczyla blok przejmowania terenu!" to loop-value-3 clear {ultimateclans.war.%{_clan}%.%loop-value-2%.placed-deff} clear {ultimateclans.war.%loop-value-2%.%{_clan}%.placed-deff} clear {ultimateclans.war.%loop-value-2%.%{_clan}%.placed-off} clear {ultimateclans.war.%{_clan}%.%loop-value-2%.placed-off} stop stop stop stop stop else: if {ultimateclans.war.%loop-value%.%{_clan}%.placed} is true: if event-block is {ultimateclans.getConfig.wars.takeover.block}: set {_x} to location of block above {ultimateclans.clan.%loop-value%.region.point} set {_y} to location of block under {_x} if location of event-block is {_y}: set {ultimateclans.war.%loop-value%.%{_clan}%.placed} to false set {ultimateclans.war.%{_clan}%.%loop-value%.placed} to false set {ultimateclans.war.%loop-value%.%{_clan}%.placed-time} to 0 set {ultimateclans.war.%{_clan}%.%loop-value%.placed-time} to 0 clear {ultimateclans.war.%{_clan}%.%loop-value%.placed-deff} clear {ultimateclans.war.%loop-value%.%{_clan}%.placed-deff} clear {ultimateclans.war.%loop-value%.%{_clan}%.placed-off} clear {ultimateclans.war.%{_clan}%.%loop-value%.placed-off} loop {ultimateclans.%{_clan}%.members::*}: send "&cTwoja gildia przerwala proces przejmowania terenu!" to loop-value-2 loop {ultimateclans.%loop-value%.members::*}: send "&aGildia &a%{_clan}% &czniszczyla swoj blok przejmowania! Jezeli nie zostanie zniszczony w ciagu &a%{ultimateclans.getConfig.wars.takeover.time}% minut &cteren gildii zostanie przejety!" to loop-value-2 stop cancel event send "&cNie mozna niszczyc terenu innej gildii!" stop on place: loop {uc.cuboid.list::*}: if distance between player and {uc.cuboid.loc.%loop-value%} is smaller than {uc.cuboid.size.%loop-value%}: loop {uc.cuboid.members.%loop-value%::*}: set {_lp} to loop-value-2 set {_p} to name of player if {_lp} is {_p}: set {_m} to true if {_m} is true: stop else: if {ultimateclans.%name of player%.owner} is true: set {_clan} to {ultimateclans.%name of player%.owner.clanname} if {ultimateclans.%name of player%.member} is true: set {_clan} to {ultimateclans.%name of player%.clan.name} if {ultimateclans.war.%loop-value%.%{_clan}%.start} is true: if event-block is {ultimateclans.getConfig.wars.takeover.block}: set {_x} to location of block above {ultimateclans.clan.%loop-value%.region.point} set {_y} to location of block under {_x} if location of event-block is {_y}: if {_y} is not {ultimateclans.clan.%{_clan}%.region.point}: set {ultimateclans.war.%loop-value%.%{_clan}%.placed} to true set {ultimateclans.war.%{_clan}%.%loop-value%.placed} to true set {ultimateclans.war.%{_clan}%.%loop-value%.placed-off} to {_clan} set {ultimateclans.war.%loop-value%.%{_clan}%.placed-off} to {_clan} set {ultimateclans.war.%{_clan}%.%loop-value%.placed-deff} to loop-value set {ultimateclans.war.%loop-value%.%{_clan}%.placed-deff} to loop-value loop {ultimateclans.%{_clan}%.members::*}: send "&aTwojej gildii udalo sie postawic blok przejmowania! Utrzymaj go przez &6%{ultimateclans.getConfig.wars.takeover.time}%&a minut!" to loop-value-2 loop {ultimateclans.%loop-value%.members::*}: send "&cGildia &a%{_clan}% &cpostawila blok przejmowania! Jezeli nie zostanie zniszczony w ciagu &a%{ultimateclans.getConfig.wars.takeover.time}% minut &cteren gildii zostanie przejety!" stop stop cancel event send "&cBlok przejecia musi zostac postawiony w samym centrum gildii! (na &7%{ultimateclans.getConfig.region.setblock.type}%&c)" stop cancel event send "&cAby przejac teren gildii nalezy postawic blok przejmowania, ktorym jest &7%{ultimateclans.getConfig.wars.takeover.block}%&c!" stop else: cancel event send "&cNie mozna budowac na terenie innej gildii!" stop on bed enter: if {ultimateclans.getConfig.region.sg.bed} is not false: stop loop {uc.cuboid.list::*}: if distance between player and {uc.cuboid.loc.%loop-value%} is smaller than {uc.cuboid.size.%loop-value%}: loop {uc.cuboid.members.%loop-value%::*}: set {_lp} to loop-value-2 set {_p} to name of player if {_lp} is {_p}: set {_m} to true if {_m} is true: stop else: cancel event send "&cNie mozna spac na terenie innej gildii!" stop on bucket fill: if {ultimateclans.getConfig.region.sg.bucket-fill} is not false: stop loop {uc.cuboid.list::*}: if distance between player and {uc.cuboid.loc.%loop-value%} is smaller than {uc.cuboid.size.%loop-value%}: loop {uc.cuboid.members.%loop-value%::*}: set {_lp} to loop-value-2 set {_p} to name of player if {_lp} is {_p}: set {_m} to true if {_m} is true: stop else: cancel event send "&cNa terenie innej gildii nie mozna nabierac wiadra!" stop on bucket empty: if {ultimateclans.getConfig.region.sg.bucket-empty} is not false: stop loop {uc.cuboid.list::*}: if distance between player and {uc.cuboid.loc.%loop-value%} is smaller than {uc.cuboid.size.%loop-value%}: loop {uc.cuboid.members.%loop-value%::*}: set {_lp} to loop-value-2 set {_p} to name of player if {_lp} is {_p}: set {_m} to true if {_m} is true: stop else: cancel event send "&cNa terenie innej gildii nie mozna oprozniac wiadra!" stop on rightclick on chest: if {ultimateclans.getConfig.region.sg.chest} is not true: stop loop {uc.cuboid.list::*}: if distance between player and {uc.cuboid.loc.%loop-value%} is smaller than {uc.cuboid.size.%loop-value%}: loop {uc.cuboid.members.%loop-value%::*}: set {_lp} to loop-value-2 set {_p} to name of player if {_lp} is {_p}: set {_m} to true if {_m} is true: stop else: cancel event send "&cSkrzynie w gildii sa zabezpieczone!" stop on rightclick on furnace: if {ultimateclans.getConfig.region.sg.furnace} is not false: stop loop {uc.cuboid.list::*}: if distance between player and {uc.cuboid.loc.%loop-value%} is smaller than {uc.cuboid.size.%loop-value%}: loop {uc.cuboid.members.%loop-value%::*}: set {_lp} to loop-value-2 set {_p} to name of player if {_lp} is {_p}: set {_m} to true if {_m} is true: stop else: cancel event send "&cNie mozna zagladac do pieca na terenie innej gildii!" stop on rightclick: if {ultimateclans.getConfig.region.sg.rightclick} is not false: stop loop {uc.cuboid.list::*}: if distance between player and {uc.cuboid.loc.%loop-value%} is smaller than {uc.cuboid.size.%loop-value%}: loop {uc.cuboid.members.%loop-value%::*}: set {_lp} to loop-value-2 set {_p} to name of player if {_lp} is {_p}: set {_m} to true if {_m} is true: stop else: cancel event send "&cTen teren nalezy do innej gildii!" stop on leftclick: if {ultimateclans.getConfig.region.sg.leftclick} is not false: stop loop {uc.cuboid.list::*}: if distance between player and {uc.cuboid.loc.%loop-value%} is smaller than {uc.cuboid.size.%loop-value%}: loop {uc.cuboid.members.%loop-value%::*}: set {_lp} to loop-value-2 set {_p} to name of player if {_lp} is {_p}: set {_m} to true if {_m} is true: stop else: cancel event send "&cTen teren nalezy do innej gildii!" stop on join: if player is op: if {ultimateclans.ann.%player%.ws.13} is not set: set {ultimateclans.ann.%player%.ws.13} to false if {ultimateclans.ann.%player%.ws.13} is false: send "&aDostepna nowa wersja &6WildSkript 1.3&a. Zaleca sie jej wgranie." set {ultimateclans.ann.%player%.ws.13} to true On Script load: wait 20 seconds if file "plugins/Skript/scripts/uc-stream.sk" is exists: delete file "plugins/Skript/scripts/uc-stream.sk" #-------------------------------------------------- End of Script / All Rights Reserved --------------------------------------------------# #------------------------------------------- © by Dzikoysk - Author / Site: www.Dzikoysk.net ---------------------------------------------#
Advertisement
Add Comment
Please, Sign In to add comment