Guest User

UltimateClans

a guest
Aug 20th, 2014
251
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 212.16 KB | None | 0 0
  1. #================================#
  2. # Script by Dzikoysk #
  3. # Name: Ultimate Clans #
  4. # Version: 1.5.6_5 #
  5. # Skript: 2.0.2 #
  6. #================================#
  7.  
  8. #================================#
  9. # Licencja | UltimateClans #
  10. # by Dzikoysk #
  11. #--------------------------------#
  12. # ~ Nie zezwalam na: #
  13. # - Zarabianie na skrypcie #
  14. # - Przerabianie/modyfikowanie #
  15. # zmienianie tresci dla grona #
  16. # publicznego #
  17. # - Wykorzystywanie kodu skryptu #
  18. # w swoich skryptach (np. kod na #
  19. # regiony worldguard: #
  20. # spr. czy teren jest wolny) #
  21. # - Udostepnianiu skryptu innym* #
  22. # - Udostepniania skryptu w #
  23. # paczkach plikow serwerowch itp #
  24. # - Usuwanie tresci #
  25. # zawierajacych autora #
  26. # - Podszywaniu sie pod autora #
  27. # - Pisania: #
  28. # "Autorskie Gildie" itp. #
  29. # - Dopisywania wszelkich #
  30. # dodatków typu strona www, #
  31. # modyfikacja chatu dla grona #
  32. # publicznego #
  33. # #
  34. # ~ Zezwalam na: #
  35. # - Modyfikowanie wiadomosci #
  36. # skryptu na wlasne potrzeby #
  37. # - Dopisywanie fragmentow na #
  38. # wlasne potrzeby #
  39. # * - Tylko za zgoda autora #
  40. #--------------------------------#
  41. # Mylnie odczytana licencja nie #
  42. # zwalnia z przestrzegania jej #
  43. #================================#
  44.  
  45. #---------------------------------------------------------------#
  46. # #
  47. # #
  48. # #
  49. # Config #
  50. # #
  51. # #
  52. # #
  53. #---------------------------------------------------------------#
  54.  
  55. options:
  56.  
  57. # +-----------------------------------------------+ #
  58. # #
  59. # | UltimateClans General | #
  60. # #
  61. # +-----------------------------------------------+ #
  62. # Ustawienia generalne #
  63. # +-----------------------------------------------+ #
  64.  
  65. # Glowny swiat z gildiami
  66. world: world
  67.  
  68. # Nazwa pliku skryptu:
  69. skname: UltimateClans
  70.  
  71. # Polski - pl | Angielski - eng
  72. lang: pl
  73.  
  74. # Swiaty w ktorych skrypt ma nie dzialac:
  75. disable: SG
  76.  
  77.  
  78. # +-----------------------------------------------+ #
  79. # #
  80. # | UltimateChat | #
  81. # #
  82. # +-----------------------------------------------+ #
  83. # Zarzadanie chatem #
  84. # +-----------------------------------------------+ #
  85.  
  86. # Czy wlaczyc UltimateChat:
  87. ultimatechat.enable: true
  88.  
  89. # Wyglad wiadomosci
  90. ultimatechat: &7[&6{TAG}&7]{RANK}{DISPLAY}: {MESSAGE}
  91. # Przepisz tutaj wyglšd tagu
  92. ultimatechat-tag: &7[&6{TAG}&7]
  93.  
  94. # {TAG} - Tag gildii
  95. # {RANK} - Ranga
  96. # {PLAYER} - Nazwa gracza
  97. # {DISPLAY} - Wyswitlana nazwa gracza
  98. # {MESSAGE} - Wiadomosc
  99.  
  100. # +-----------------------------------------------+ #
  101. # #
  102. # | UltimateClans Economy | #
  103. # #
  104. # +-----------------------------------------------+ #
  105. # Platnosci UltimateClans #
  106. # +-----------------------------------------------+ #
  107.  
  108. #------------------------#
  109. # Money Options #
  110. #------------------------#
  111.  
  112. # Czy wlaczyc platnosc pieniedzmi:
  113. paymoney.enable: false
  114.  
  115. # Czy masz plugin Vault i plugin od Economy? (Np. EssentialsEco) Jezeli nie, platnosc pieniedzmi bedzie niemozliwa!
  116. vault: true
  117.  
  118. # Koszt stowrzenia gildii:
  119. paymoney.create.cost: 10000
  120.  
  121. # Czy ma pobierac oplate za nowych czlonkow w gildii:
  122. paymoney.invite: false
  123.  
  124. # Kosz za kazda nowa osobe:
  125. paymoney.invite.cost: 100
  126.  
  127. #------------------------#
  128. # Item Options #
  129. #------------------------#
  130.  
  131. # Czy wlaczyc platnosc przedmiotami:
  132. payitem: true
  133.  
  134. # Przedmioty wymagane do zalozenia gildii, jeşeli chcesz pozostawiÄ? puste miejsce, wpisz "none":
  135. payitem.slot.1: 64 diamond
  136. payitem.slot.2: 32 emerald
  137. payitem.slot.3: 12 blaze rod
  138. payitem.slot.4: 16 golden apple
  139. payitem.slot.5: 16 golden carrot
  140. payitem.slot.6: none
  141.  
  142. # Czy ma pobierac oplate za nowych graczy w gildii
  143. payitem.invite: true
  144.  
  145. # Koszt za nowego gracz:
  146. payitem.invite.cost: 2 apple
  147.  
  148.  
  149. # +-----------------------------------------------+ #
  150. # #
  151. # | UltimateClans Claim | #
  152. # #
  153. # +-----------------------------------------------+ #
  154. # Zabezpieczanie terenu dla gildii #
  155. # +-----------------------------------------------+ #
  156.  
  157. #------------------------#
  158. # General Options #
  159. #------------------------#
  160.  
  161. # Sposob zabezepiczania terenu. Na chunk - chunk | Przez WorldGuard - wg
  162. claim.method: wg
  163.  
  164. # Automatyczne nakladanie claimu przy zakladaniu gildii:
  165. auto.claim: true
  166.  
  167. # Odleglosc od spawnu, na jakiej mozna zakladac claim dla gildii:
  168. spawn.distance: 75
  169.  
  170. # Czy przy zalozeniu claimu ma zmienic blok pod graczem:
  171. claim.setblock: true
  172.  
  173. # Na jaki blok ma zmieniac funkcja "claim.setblock":
  174. claim.setblock.type: bedrock
  175.  
  176. # Wymagany poziom do zalozenia gildii:
  177. level.create: 30
  178.  
  179. # Czy po zalozeniu gildii ma zabierac wymagany poziom:
  180. level.take: true
  181.  
  182. #------------------------#
  183. # WorldGuard Options #
  184. #------------------------#
  185.  
  186. # Wielkosc terenu:
  187. claim.size: 85
  188.  
  189. # Wiadomosc po wejsciu na teren:
  190. claim.wg.greeting: true
  191.  
  192. # Wiadomosc po wyjsciu z terenu:
  193. claim.wg.farewell: true
  194.  
  195. # Czy tylko czlonkowie gildii moga otwierac skrzynki:
  196. claim.wg.chest: true
  197.  
  198. #------------------------#
  199. # Chunk Options #
  200. # Niepolecane #
  201. #------------------------#
  202.  
  203. # Wiadomosci przy wejsciu na chunk:
  204. chunk.msg: true
  205.  
  206. # Czy ma zabezpieczac przed niszczeniem przez innych terenu gildii:
  207. claim.safe.break: true
  208.  
  209. # Czy ma zabezpieczac przed stawianiem blokow na terenie innej gildii:
  210. claim.safe.place: true
  211.  
  212. # Czy ma zabezpieczac skrzynki gildii:
  213. claim.safe.chest: true
  214.  
  215. # Czy ma zabezpieczac przed dzialaniem zapalniczki:
  216. claim.safe.flint and steel: true
  217.  
  218. # Czy ma zabezpieczac przed wylewaniem/zabieraniem lawy/wody:
  219. claim.safe.bucket: true
  220.  
  221. # Czy po wejsciu na dany region ma zmieniac kolor nicku na zielony (gildia), czerwony (inni):
  222. set.name.color: true
  223.  
  224. # Pozwol na zmiane miejsca home:
  225. claim.sethome: true
  226.  
  227. # +-----------------------------------------------+ #
  228. # #
  229. # | UltimateClans Commands | #
  230. # #
  231. # +-----------------------------------------------+ #
  232. # Zarzadzanie komendami skryptu #
  233. # +-----------------------------------------------+ #
  234.  
  235. # Przedrostek komendy, domyslnie /clans (Dostepne: ultimateclans, gildia, klan, gildie, klany) :
  236. prefix: gildia
  237. # + prefix z duzej litery
  238. b.prefix: Gildia
  239.  
  240. # Czy wlaczyc cooldown przed teleportacja na home gildii:
  241. tp.cooldown: true
  242.  
  243. # Czy wlaczyc komende /items:
  244. items: true
  245.  
  246.  
  247. # +-----------------------------------------------+ #
  248. # #
  249. # | UltimateClans Color | #
  250. # #
  251. # +-----------------------------------------------+ #
  252. # Zarzadanie kolorami #
  253. # +-----------------------------------------------+ #
  254.  
  255. # Tag przed wiadomosciami (style: gy/gg/bg/mg):
  256.  
  257. #Styl: gy
  258. tag|gy: &6[Clans]
  259.  
  260. #Styl: gg
  261. tag|gg: &8[&aClans&8]
  262.  
  263. #Styl: bg
  264. tag|bg: &8[&9Clans&8]
  265.  
  266. #Styl mg
  267. tag|mg: &3[&7Clans&3]
  268.  
  269.  
  270. # Styl wiadomosci
  271. # gy - jasny szary i zloty
  272. # gg - jasny zielony i ciemny szary
  273. # bg - niebieski i jasny szary
  274. # mg - morski i jasny szary
  275. style: gg
  276.  
  277. # +-----------------------------------------------+ #
  278. # #
  279. # | UltimateClans PvP | #
  280. # #
  281. # +-----------------------------------------------+ #
  282. # Pvp #
  283. # +-----------------------------------------------+ #
  284.  
  285. # Czy pvp miedzy czlonkami tej samej gildii ma byc domyslnie wylaczone:
  286. pvp: true
  287.  
  288. # Czy pozwolic na zmiane przez zalozyciela pvp miedzy swoimi czlonkami:
  289. pvp.owner: true
  290.  
  291. # +-----------------------------------------------+ #
  292. # #
  293. # | UltimateClans Tag | #
  294. # #
  295. # +-----------------------------------------------+ #
  296. # Wyswietlanie gildii nad graczem/w tab menu #
  297. # +-----------------------------------------------+ #
  298.  
  299. # Tagi na tab do wlaczenia/wylaczenia w konfiguracji plugin NameTagEdit
  300.  
  301. # Czy tag gildii na byc wyswietlana przy nicku nag glowa gracza:
  302. tag: false
  303.  
  304. # Jaki kolor ma miec tag gildi nad glowa gracza:
  305. tag.color: &6
  306.  
  307. # Jaki kolor ma miec nick nad glowa gracza:
  308. tag.color.nick: &f
  309.  
  310.  
  311. # +-----------------------------------------------+ #
  312. # #
  313. # | UltimateClans Stats | #
  314. # #
  315. # +-----------------------------------------------+ #
  316. # Statystyki #
  317. # +-----------------------------------------------+ #
  318.  
  319. # Czy uzywac statystyk:
  320. stats.enable: true
  321.  
  322. # Tag statystyk:
  323. tag.stats: &7[Statystyki Gildii]
  324.  
  325. # Wiadomosc przy zabiciu/smierci gracza:
  326. stats.message: true
  327.  
  328.  
  329. # +-----------------------------------------------+ #
  330. # #
  331. # | UltimateClans Mailbox | #
  332. # #
  333. # +-----------------------------------------------+ #
  334. # Skrzynka pocztowa #
  335. # +-----------------------------------------------+ #
  336.  
  337. # Funkcja obecnie wylaczona|niekatywna
  338.  
  339. # Czy skrzynka pocztowa ma byc aktywna:
  340. mailbox: false
  341.  
  342. # +-----------------------------------------------+ #
  343. # #
  344. # | UltimateClans Broadcast | #
  345. # #
  346. # +-----------------------------------------------+ #
  347. # Zarzadzenie broadcastami #
  348. # +-----------------------------------------------+ #
  349.  
  350. # Czy wlaczyc broadcast z informacja, ze nie mozna zakladac gildii, ktora w tagu ma znaki specjalne i ktorego dlugosc jest wieksza niz 5:
  351. broadcast.enable: true
  352.  
  353. # Co ile minut ma wyswietlac broadcast
  354. broadcast.time: 30
  355.  
  356.  
  357. # +-----------------------------------------------+ #
  358. # #
  359. # | UltimateClans Permissions | #
  360. # | SkriptPermissions | #
  361. # #
  362. # +-----------------------------------------------+ #
  363. # Permissions dla skryptu SkriptPermissions #
  364. # +-----------------------------------------------+ #
  365. # Obecnie nie dziala, jezeli chcesz, aby skrypt dzialal, nic tu nie zmieniaj!
  366. # Czy uzywac permissions przez skrypt SkriptPermissions:
  367. skp.enable: false
  368. # Groups:
  369. default: Gracz
  370. admin: Admin
  371. # Command:
  372. /clans list: default
  373. /clans profile: default
  374. /clans create: default
  375. /clans invite: default
  376. /clans kick: default
  377. /clans delete: default
  378. /clans join: default
  379. /clans deny: default
  380. /clans leave: default
  381. /clans home: default
  382. /clans player: default
  383. /clans claim: default
  384. /clans unclaim: default
  385. /clans manage: default
  386. /clans setinfo: default
  387. /clans help: default
  388. /clans mailbox: default
  389. /clans aliases: default
  390. # -- Adm
  391. /clans setspawn: admin
  392. /clans reload: admin
  393. /clans admin: admin
  394.  
  395.  
  396. #--------------------------= Koniec Konfiguracji =-----------------------------#
  397.  
  398.  
  399. #---------------------------------------------------------------#
  400. # #
  401. # #
  402. # #
  403. # Skrypt #
  404. # Code #
  405. # #
  406. # #
  407. # #
  408. #---------------------------------------------------------------#
  409.  
  410.  
  411. # -- Default player variables -- #
  412. variables:
  413. {ultimateclans.%player%.owner} = false
  414. {ultimateclans.%player%.member} = false
  415. {ultimateclans.%player%.mod} = false
  416. {ultimateclans.%player%.delete.confirm} = false
  417. {ultimateclans.%player%.invite.true} = false
  418. {ultimateclans.%player%.death} = 0
  419. {ultimateclans.%player%.kill} = 0
  420. {ultimateclans.chunk.set.number.%player%} = 0
  421. {ultimateclans.chunk.setmy.number.%player%} = 0
  422. # {skeconomy.%player%.money.total} = SkEconomy
  423. # -- End of Variables -- #
  424.  
  425. # -- Manage options -- #
  426. options:
  427. # Version info
  428. version: 1.5.6_5
  429. tab: true
  430. tab.color: &6
  431. aliases: ultimateclans, gildia, klan, gildie, klany, f, g, faction, factions
  432. 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 "p" or "wersja" or "version" or "tworca" or "author" or "ultimateclans" or "clans" or "donate" or "dzikoysk" or "admin"
  433. 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 "claim" or "zabezpiecz" or "unclaim" 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"
  434. # -- End of Manage options -- #
  435.  
  436. # -- Console Version Alert -- #
  437. on Skript Start:
  438. send "&8UltimateClans wymaga wersji Skript 2.0.2 ..." to the console
  439. send "&8Serwer pracuje na wersji: %skript version%" to the console
  440. stop
  441. # -- End of Console Version Alert -- #
  442.  
  443. # -- Config load / Variables load - Script Start -- #
  444. on Skript load:
  445. set {ultimateclans.tag} to {@tag}
  446. set {ultimateclans.lang} to "{@lang}"
  447. set {ultimateclans.mailbox.enable} to {@mailbox}
  448. set {ultimateclans.payitem.enable} to {@payitem}
  449. set {ultimateclans.autoclaim.enable} to {@auto.claim}
  450. set {ultimateclans.stats.message} to {@stats.message}
  451. set {ultimateclans.claim.method} to "{@claim.method}"
  452. set {ultimateclans.chunk.msg} to {@chunk.msg}
  453. set {ultimateclans.setblock} to {@claim.setblock}
  454. set {ultimateclans.safe.chest} to {@claim.safe.chest}
  455. set {ultimateclans.safe.break} to {@claim.safe.break}
  456. set {ultimateclans.safe.place} to {@claim.safe.place}
  457. set {ultimateclans.safe.flint and steel} to {@claim.safe.flint and steel}
  458. set {ultimateclans.safe.bucket} to {@claim.safe.bucket}
  459. set {ultimateclans.worldguard.size} to {@claim.size}
  460. set {ultimateclans.setnamecolor} to {@set.name.color}
  461. set {ultimateclans.pvp} to {@pvp}
  462. set {ultimateclans.tp.cooldown} to {@tp.cooldown}
  463. set {ultimateclans.pvp.ownerset} to {@pvp.owner}
  464. set {ultimateclans.ultimatechat} to {@ultimatechat.enable}
  465. set {ultimateclans.paymoney.cost} to {@paymoney.create.cost}
  466. set {ultimateclans.paymoney.enable} to {@paymoney.enable}
  467. set {ultimateclans.vault} to {@vault}
  468. set {ultimateclans.paymoney.invite} to {@paymoney.invite}
  469. set {ultimateclans.paymoney.invite.cost} to {@paymoney.invite.cost}
  470. set {ultimateclans.payitem.invite} to {@payitem.invite}
  471. set {ultimateclans.payitem.invite.cost} to "{@payitem.invite.cost}"
  472. set {ultimateclans.claim.wg.farewell} to {@claim.wg.farewell}
  473. set {ultimateclans.claim.wg.greeting} to {@claim.wg.greeting}
  474. set {_chest} to {@claim.wg.chest}
  475. set {ultimateclans.cliam.sethome} to {@claim.sethome}
  476. set {ultimateclans.level.take} to {@level.take}
  477. set {ultimateclans.broadcast} to {@broadcast.enable}
  478. set {ultimateclans.broadcast.time} to {@broadcast.time}
  479. wait 1 tick
  480. if {_chest} is true:
  481. set {ultimateclans.wg.chest} to false
  482. if {_chest} is false:
  483. set {ultimateclans.wg.chest} to true
  484. set {ultimateclans.style} to "{@style}"
  485. if {ultimateclans.style} is "gy":
  486. set {style} to "&7"
  487. set {style2} to "&6"
  488. if {ultimateclans.style} is "gg":
  489. set {style} to "&a"
  490. set {style2} to "&8"
  491. if {ultimateclans.style} is "bg":
  492. set {style} to "&9"
  493. set {style2} to "&7"
  494. if {ultimateclans.style} is "mg":
  495. set {style} to "&3"
  496. set {style2} to "&7"
  497. if {style} is "&a":
  498. set {tag} to "{@tag|gg}"
  499. if {style} is "&7":
  500. set {tag} to "{@tag|gy}"
  501. if {style} is "&9":
  502. set {tag} to "{@tag|bg}"
  503. if {style} is "&3":
  504. set {tag} to "{@tag|mg}"
  505. wait 1 tick
  506. set {broadcast.timmer} to 0
  507. if {ultimateclans.payitem.enable} is true:
  508. set {ultimateclans.payitem.allitem} to "{@payitem.slot.1}, {@payitem.slot.2}, {@payitem.slot.3}, {@payitem.slot.4}, and {@payitem.slot.5}"
  509. loop {ultimateclans.clanlist::*}:
  510. if {ultimateclans.clan.%loop-value%.pvp} is not set:
  511. set {ultimateclans.clan.%loop-value%.pvp} to {@pvp}
  512. exit loop
  513. else:
  514. stop
  515. stop
  516.  
  517. # -- 1
  518.  
  519. on command "reloadclans":
  520. set {ultimateclans.lang} to "{@lang}"
  521. set {ultimateclans.mailbox.enable} to {@mailbox}
  522. set {ultimateclans.payitem.enable} to {@payitem}
  523. set {ultimateclans.autoclaim.enable} to {@auto.claim}
  524. set {ultimateclans.stats.message} to {@stats.message}
  525. set {ultimateclans.claim.method} to "{@claim.method}"
  526. set {ultimateclans.chunk.msg} to {@chunk.msg}
  527. set {ultimateclans.setblock} to {@claim.setblock}
  528. set {ultimateclans.safe.chest} to {@claim.safe.chest}
  529. set {ultimateclans.safe.break} to {@claim.safe.break}
  530. set {ultimateclans.safe.place} to {@claim.safe.place}
  531. set {ultimateclans.safe.flint and steel} to {@claim.safe.flint and steel}
  532. set {ultimateclans.safe.bucket} to {@claim.safe.bucket}
  533. set {ultimateclans.worldguard.size} to {@claim.size}
  534. set {ultimateclans.setnamecolor} to {@set.name.color}
  535. set {ultimateclans.pvp} to {@pvp}
  536. set {ultimateclans.pvp.ownerset} to {@pvp.owner}
  537. set {ultimateclans.ultimatechat} to {@ultimatechat.enable}
  538. set {ultimateclans.paymoney.cost} to {@paymoney.create.cost}
  539. set {ultimateclans.paymoney.enable} to {@paymoney.enable}
  540. set {ultimateclans.vault} to {@vault}
  541. set {ultimateclans.tp.cooldown} to {@tp.cooldown}
  542. set {ultimateclans.paymoney.invite} to {@paymoney.invite}
  543. set {ultimateclans.paymoney.invite.cost} to {@paymoney.invite.cost}
  544. set {ultimateclans.payitem.invite} to {@payitem.invite}
  545. set {ultimateclans.payitem.invite.cost} to "{@payitem.invite.cost}"
  546. set {ultimateclans.claim.wg.farewell} to {@claim.wg.farewell}
  547. set {ultimateclans.claim.wg.greeting} to {@claim.wg.greeting}
  548. set {_chest} to {@claim.wg.chest}
  549. set {ultimateclans.cliam.sethome} to {@claim.sethome}
  550. set {ultimateclans.level.take} to {@level.take}
  551. set {ultimateclans.broadcast} to {@broadcast.enable}
  552. set {ultimateclans.broadcast.time} to {@broadcast.time}
  553. set {ultimateclans.tab} to {@tab}
  554. set {ultimateclans.tab.color} to "{@tab.color}"
  555. set {ultimateclans.tag} to {@tag}
  556. set {ultimateclans.tag.color} to "{@tag.color}"
  557. set {ultimateclans.tag.color.nick} to "{@tag.color.nick}"
  558. wait 1 tick
  559. set {broadcast.timmer} to 0
  560. if {_chest} is true:
  561. set {ultimateclans.wg.chest} to false
  562. if {_chest} is false:
  563. set {ultimateclans.wg.chest} to true
  564. set {ultimateclans.style} to "{@style}"
  565. if {ultimateclans.style} is "gy":
  566. set {style} to "&7"
  567. set {style2} to "&6"
  568. if {ultimateclans.style} is "gg":
  569. set {style} to "&a"
  570. set {style2} to "&8"
  571. if {ultimateclans.style} is "bg":
  572. set {style} to "&9"
  573. set {style2} to "&7"
  574. if {ultimateclans.style} is "mg":
  575. set {style} to "&3"
  576. set {style2} to "&7"
  577. if {style} is "&a":
  578. set {tag} to "{@tag|gg}"
  579. if {style} is "&7":
  580. set {tag} to "{@tag|gy}"
  581. if {style} is "&9":
  582. set {tag} to "{@tag|bg}"
  583. if {style} is "&3":
  584. set {tag} to "{@tag|mg}"
  585. wait 1 tick
  586. loop {ultimateclans.clanlist::*}:
  587. if {ultimateclans.clan.%loop-value%.pvp} is not set:
  588. set {ultimateclans.clan.%loop-value%.pvp} to {@pvp}
  589. exit loop
  590. else:
  591. stop
  592. stop
  593.  
  594. # -- 2
  595.  
  596. on command "clans reload":
  597. set {ultimateclans.lang} to "{@lang}"
  598. set {ultimateclans.mailbox.enable} to {@mailbox}
  599. set {ultimateclans.payitem.enable} to {@payitem}
  600. set {ultimateclans.autoclaim.enable} to {@auto.claim}
  601. set {ultimateclans.stats.message} to {@stats.message}
  602. set {ultimateclans.claim.method} to "{@claim.method}"
  603. set {ultimateclans.chunk.msg} to {@chunk.msg}
  604. set {ultimateclans.setblock} to {@claim.setblock}
  605. set {ultimateclans.safe.chest} to {@claim.safe.chest}
  606. set {ultimateclans.safe.break} to {@claim.safe.break}
  607. set {ultimateclans.safe.place} to {@claim.safe.place}
  608. set {ultimateclans.safe.flint and steel} to {@claim.safe.flint and steel}
  609. set {ultimateclans.safe.bucket} to {@claim.safe.bucket}
  610. set {ultimateclans.sethome} to {@claim.sethome}
  611. set {ultimateclans.worldguard.size} to {@claim.size}
  612. set {ultimateclans.setnamecolor} to {@set.name.color}
  613. set {ultimateclans.pvp} to {@pvp}
  614. set {ultimateclans.tp.cooldown} to {@tp.cooldown}
  615. set {ultimateclans.pvp.ownersey} to {@pvp.owner}
  616. set {ultimateclans.ultimatechat} to {@ultimatechat.enable}
  617. set {ultimateclans.paymoney.cost} to {@paymoney.create.cost}
  618. set {ultimateclans.paymoney.enable} to {@paymoney.enable}
  619. set {ultimateclans.vault} to {@vault}
  620. set {ultimateclans.paymoney.invite} to {@paymoney.invite}
  621. set {ultimateclans.paymoney.invite.cost} to {@paymoney.invite.cost}
  622. set {ultimateclans.payitem.invite} to {@payitem.invite}
  623. set {ultimateclans.payitem.invite.cost} to "{@payitem.invite.cost}"
  624. set {ultimateclans.claim.wg.farewell} to {@claim.wg.farewell}
  625. set {ultimateclans.claim.wg.greeting} to {@claim.wg.greeting}
  626. set {_chest} to {@claim.wg.chest}
  627. set {ultimateclans.cliam.sethome} to {@claim.sethome}
  628. set {ultimateclans.level.take} to {@level.take}
  629. set {ultimateclans.broadcast} to {@broadcast.enable}
  630. set {ultimateclans.broadcast.time} to {@broadcast.time}
  631. set {ultimateclans.tab} to {@tab}
  632. set {ultimateclans.tab.color} to "{@tab.color}"
  633. set {ultimateclans.tag} to {@tag}
  634. set {ultimateclans.tag.color} to "{@tag.color}"
  635. set {ultimateclans.tag.color.nick} to "{@tag.color.nick}"
  636. wait 1 tick
  637. set {broadcast.timmer} to 0
  638. if {_chest} is true:
  639. set {ultimateclans.wg.chest} to false
  640. if {_chest} is false:
  641. set {ultimateclans.wg.chest} to true
  642. set {ultimateclans.style} to "{@style}"
  643. if {ultimateclans.style} is "gy":
  644. set {style} to "&7"
  645. set {style2} to "&6"
  646. if {ultimateclans.style} is "gg":
  647. set {style} to "&a"
  648. set {style2} to "&8"
  649. if {ultimateclans.style} is "bg":
  650. set {style} to "&9"
  651. set {style2} to "&7"
  652. if {ultimateclans.style} is "mg":
  653. set {style} to "&3"
  654. set {style2} to "&7"
  655. if {style} is "&a":
  656. set {tag} to "{@tag|gg}"
  657. if {style} is "&7":
  658. set {tag} to "{@tag|gy}"
  659. if {style} is "&9":
  660. set {tag} to "{@tag|bg}"
  661. if {style} is "&3":
  662. set {tag} to "{@tag|mg}"
  663. wait 1 tick
  664. if {ultimateclans.payitem.enable} is true:
  665. set {ultimateclans.payitem.allitem} to "{@payitem.slot.1}, {@payitem.slot.2}, {@payitem.slot.3}, {@payitem.slot.4}, {@payitem.slot.6}, and {@payitem.slot.5}"
  666. loop {ultimateclans.clanlist::*}:
  667. if {ultimateclans.clan.%loop-value%.pvp} is not set:
  668. set {ultimateclans.clan.%loop-value%.pvp} to {@pvp}
  669. exit loop
  670. else:
  671. stop
  672. stop
  673. # -- End of Save -- #
  674.  
  675.  
  676. # -- Basic Command -- #
  677. command /clans [<text>] [<text>] [<text>] [<text>]:
  678. aliases: {@aliases}
  679. trigger:
  680. if {ultimateclans.SkriptPermissions.enable} is true:
  681. stop
  682. else:
  683. if arg 1 is "wersja" or "version":
  684. send "&aUltimateClans by &7Dzikoysk" to player
  685. send "&aVersion: &7{@version}" to player
  686. stop
  687. if arg 1 is "cennik" or "pricelist":
  688. if player has permissions "ultimateclans.default" or "ultimateclans.admin":
  689. if {ultimateclans.lang} is "pl":
  690. if {ultimateclans.payitem.enable} is true:
  691. send "%{style2}%-------%{style}%Cennik%{style2}%-------"
  692. send "%{style}%Stworzenie gildii: %{style2}%{@payitem.slot.1}, {@payitem.slot.2}, {@payitem.slot.3}, {@payitem.slot.4}, {@payitem.slot.5}, {@payitem.slot.6}"
  693. if {ultimateclans.payitem.invite} is true:
  694. send "%{style}%Kazdy nowy czlonek w gildii: %{style2}%{@payitem.invite.cost}"
  695. stop
  696. if {ultimateclans.paymoney.invite} is true:
  697. send "%{style}%Kazdy nowy czlonek w gildii: %{style2}%{@paymoney.invite.cost}$"
  698. stop
  699. else:
  700. send "%{style}%Kazdy nowy czlonek w gildii: %{style2}%FREE"
  701. stop
  702. stop
  703. if {ultimateclans.paymoney.enable} is true:
  704. send "%{style}%Stworzenie gildii: %{style2}%{@paymoney.create.cost}"
  705. if {ultimateclans.payitem.invite} is true:
  706. send "%{style}%Kazdy nowy czlonek w gildii: %{style2}%{@payitem.invite.cost}"
  707. stop
  708. if {ultimateclans.paymoney.invite} is true:
  709. send "%{style}%Kazdy nowy czlonek w gildii: %{style2}%{@paymoney.invite.cost}$"
  710. stop
  711. else:
  712. send "%{style}%Kazdy nowy czlonek w gildii: %{style2}%FREE"
  713. stop
  714. stop
  715. else:
  716. send "&aStworzenie klanu: &7FREE!"
  717. if {ultimateclans.payitem.invite} is true:
  718. send "%{style}%Kazdy nowy czlonek w gildii: %{style2}%{@payitem.invite.cost}"
  719. stop
  720. if {ultimateclans.paymoney.invite} is true:
  721. send "%{style}%Kazdy nowy czlonek w gildii: %{style2}%{@paymoney.invite.cost}$"
  722. stop
  723. else:
  724. send "%{style}%Kazdy nowy czlonek w gildii: %{style2}%FREE"
  725. stop
  726. stop
  727. if arg 1 is "alias" or "aliases":
  728. if player has permissions "ultimateclans.default" or "ultimateclans.admin":
  729. send "%{tag}% %{style}%Aliasy komendy: %{style2}%{@aliases}"
  730. stop
  731. if arg 1 is "list" or "lista":
  732. if player has permissions "ultimateclans.list":
  733. if arg 2 is not set:
  734. if {ultimateclans.clanlist::*} is set:
  735. send "%{tag}% &aLista gildii: &7%{ultimateclans.clanlist::*}%"
  736. stop
  737. send "%{tag}% &cNie ma jeszcze zadnych gildii na serwerze!"
  738. stop
  739. else:
  740. send "&cNie masz uprawnien do uzywania tej komendy"
  741. stop
  742. if arg 1 is "player" or "gracz":
  743. if player has permissions "ultimateclans.default" or "ultimateclans.admin":
  744. if arg 2 is set:
  745. if {ultimateclans.%arg 2%.player} is true:
  746. send "%{style}% %arg 2% info &8------------------------------"
  747. if {ultimateclans.%arg 2%.clan.name} is set:
  748. send "&7Gildia: &8[&7%{ultimateclans.%arg 2%.clan.tag}%&8]&7 %{ultimateclans.%arg 2%.clan.name}%"
  749. if {ultimateclans.%arg 2%.kill} is not set:
  750. send "&7Zabojstwa:&a Brak"
  751. if {ultimateclans.%arg 2%.death} is not set:
  752. send "&7Smierci: &aBrak"
  753. if {ultimateclans.%arg 2%.kill} is set:
  754. send "&7Zabojstwa: &a%{ultimateclans.%arg 2%.kill}%"
  755. if {ultimateclans.%arg 2%.death} is set:
  756. send "&7Smierci: &a%{ultimateclans.%arg 2%.death}%"
  757. if {ultimateclans.%arg 2%.online} is true:
  758. send "&7Status: &aOnline"
  759. if {ultimateclans.%arg 2%.online} is false:
  760. send "&7Status: &cOffline"
  761. send "&7Ostatnie logowanie:&7 %{ultimateclans.%arg 2%.lastlogin}%"
  762. stop
  763. else:
  764. send "%{tag}% &cTaki gracz nigdy nie byl na serwerze!"
  765. stop
  766. else:
  767. make player execute command "{@prefix} player %name of player%"
  768. wait 1 tick
  769. stop
  770. else:
  771. send "&cNie masz uprawnien do uzywania tej komendy"
  772. stop
  773. if arg 1 is "home" or "dom":
  774. if player has permissions "ultimateclans.home" or "ultimateclans.admin":
  775. if {ultimateclans.%name of player%.member} is true:
  776. if {ultimateclans.clan.%{ultimateclans.%name of player%.clan.name}%.claim.point} is set:
  777. if {ultimateclans.tp.cooldown} is true:
  778. set {_pos} to location of player
  779. send "&7Czekaj &65 sekund&7, nie wolno Ci sie ruszyc!"
  780. if {_pos} isn't location of player:
  781. send "&cWykryto ruch, teleportacja anulowana!"
  782. stop
  783. wait 1 second
  784. if {_pos} isn't location of player:
  785. send "&cWykryto ruch, teleportacja anulowana!"
  786. stop
  787. wait 1 second
  788. if {_pos} isn't location of player:
  789. send "&cWykryto ruch, teleportacja anulowana!"
  790. stop
  791. wait 1 second
  792. if {_pos} isn't location of player:
  793. send "&cWykryto ruch, teleportacja anulowana!"
  794. stop
  795. wait 1 second
  796. if {_pos} isn't location of player:
  797. send "&cWykryto ruch, teleportacja anulowana!"
  798. stop
  799. wait 1 second
  800. # '
  801. if {_pos} is location of player:
  802. teleport player to {ultimateclans.clan.%{ultimateclans.%name of player%.clan.name}%.claim.point}
  803. send "&7Teleportacja..."
  804. stop
  805. else:
  806. send "&cWykryto ruch, teleportacja anulowana!"
  807. stop
  808. else:
  809. teleport player to {ultimateclans.clan.%{ultimateclans.%name of player%.clan.name}%.claim.point}
  810. send "&7Teleportacja..."
  811. stop
  812. else:
  813. send "%{tag}%&c Gildia nie posiada swojego terenu!"
  814. stop
  815. if {ultimateclans.%name of player%.owner} is true:
  816. if {ultimateclans.clan.%{ultimateclans.%name of player%.owner.clanname}%.claim.point} is set:
  817. if {ultimateclans.tp.cooldown} is true:
  818. set {_pos} to location of player
  819. send "&7Czekaj &65 sekund&7, nie wolno Ci sie ruszyc!"
  820. if {_pos} isn't location of player:
  821. send "&cWykryto ruch, teleportacja anulowana!"
  822. stop
  823. wait 1 second
  824. if {_pos} isn't location of player:
  825. send "&cWykryto ruch, teleportacja anulowana!"
  826. stop
  827. wait 1 second
  828. if {_pos} isn't location of player:
  829. send "&cWykryto ruch, teleportacja anulowana!"
  830. stop
  831. wait 1 second
  832. if {_pos} isn't location of player:
  833. send "&cWykryto ruch, teleportacja anulowana!"
  834. stop
  835. wait 1 second
  836. if {_pos} isn't location of player:
  837. send "&cWykryto ruch, teleportacja anulowana!"
  838. stop
  839. wait 1 second
  840. # '
  841. if {_pos} is location of player:
  842. send "&7Teleportacja..."
  843. teleport player to {ultimateclans.clan.%{ultimateclans.%name of player%.owner.clanname}%.claim.point}
  844. stop
  845. else:
  846. send "&cWykryto ruch, teleportacja anulowana!"
  847. stop
  848. else:
  849. send "&7Teleportacja..."
  850. teleport player to {ultimateclans.clan.%{ultimateclans.%name of player%.owner.clanname}%.claim.point}
  851. stop
  852. else:
  853. send "%{tag}%&c Gildia nie posiada swojego terenu!"
  854. stop
  855. else:
  856. send "%{tag}% &cNie jestes w gildii!"
  857. stop
  858. else:
  859. send "&cNie masz uprawnien do uzywania tej komendy"
  860. stop
  861. if arg 1 is "kick" or "wyrzuc":
  862. if player has permissions "ultimateclans.default" or "ultimateclans.admin":
  863. if {ultimateclans.%name of player%.owner} is true:
  864. if arg 2 is set:
  865. if {ultimateclans.%name of player%.owner.clanname} is {ultimateclans.%arg 2%.clan.name}:
  866. if {ultimateclans.%arg 2%.owner} is true:
  867. send "%{tag}% &cNie mozna wyrzucic samego siebie!"
  868. stop
  869. if {ultimateclans.%arg 2%.member} is true:
  870. set {ultimateclans.%name of player%.kickenable} to true
  871. make player execute command "mngplayer kick %arg 2%"
  872. stop
  873. else:
  874. send "&cBlad!"
  875. stop
  876. else:
  877. send "%{tag}% &cW gildii nie ma takiego gracza"
  878. stop
  879. else:
  880. send "%{tag}% &cNie podano nazwy gracza!"
  881. stop
  882. if {ultimateclans.%name of player%.mod} is true:
  883. if arg 2 is set:
  884. if {ultimateclans.%name of player%.owner.clanname} is {ultimateclans.%arg 2%.clan.name}:
  885. if {ultimateclans.%arg 2%.owner} is true:
  886. send "%{tag}% &cNie mozna wyrzucic samego siebie!"
  887. stop
  888. if {ultimateclans.%arg 2%.member} is true:
  889. set {ultimateclans.%name of player%.kickenable} to true
  890. make player execute command "mngplayer kick %arg 2%"
  891. stop
  892. else:
  893. send "&cBlad!"
  894. stop
  895. else:
  896. send "%{tag}% &cW gildii nie ma takiego gracza"
  897. stop
  898. else:
  899. send "%{tag}% &cNie podano nazwy gracza!"
  900. stop
  901.  
  902. else:
  903. send "%{tag}% &cNie jestes zalozycielem/moderatorem gildii!"
  904. stop
  905. else:
  906. send "&cNie masz uprawnien do uzywania tej komendy"
  907. stop
  908. if arg 1 is "stworz" or "create":
  909. if player's world is "{@world}":
  910. if player has permissions "ultimateclans.create" or "ultimateclans.admin":
  911. if arg 2 is not empty:
  912. if arg 3 is not empty:
  913. if player doesn't have the permissions "ultimateclans.create-vip":
  914. if player's level is greater than {@level.create}-1:
  915. if {ultimateclans.payitem.enable} is true:
  916. if player has {@payitem.slot.1}:
  917. if player has {@payitem.slot.2}:
  918. if player has {@payitem.slot.3}:
  919. if player has {@payitem.slot.4}:
  920. if player has {@payitem.slot.5}:
  921. if player has {@payitem.slot.6}:
  922. if {ultimateclans.%name of player%.member} is true:
  923. send "%{tag}% &cJestes juz w gildii!"
  924. stop trigger
  925. if {ultimateclans.%name of player%.owner} is true:
  926. send "%{tag}% &cMasz juz gildie!"
  927. stop trigger
  928. if {ultimateclans.clan.%arg 2%.tag} is set:
  929. send "%{tag}% &cJest juz taka gildia!"
  930. stop trigger
  931. if {ultimateclans.clan.%arg 3%.tagauth} is set:
  932. send "%{tag}% &cJest juz gildia! z takim tagiem!"
  933. stop trigger
  934. else:
  935. if {ultimateclans.autoclaim.enable} is true:
  936. if {ultimateclans.spawn.%world%} is set:
  937. if distance between {ultimateclans.spawn.%world%} and location of player is greater than {@spawn.distance}+{claim.size}/2:
  938. if {ultimateclans.claim.method} is "chunk":
  939. if {ultimateclans.chunk::%chunk at player%} is not set:
  940. if {ultimateclans.level.take} is true:
  941. reduce player's level by {@level.create}
  942. set {ultimateclans.chunk::%chunk at player%} to arg 2
  943. if {ultimateclans.setblock} is true:
  944. set block under player to {@claim.setblock.type}
  945. send "%{tag}% Zabezpieczenie &8-&a Otrzymano teren!"
  946. remove {@payitem.slot.1} from player
  947. remove {@payitem.slot.2} from player
  948. remove {@payitem.slot.3} from player
  949. remove {@payitem.slot.4} from player
  950. remove {@payitem.slot.5} from player
  951. remove {@payitem.slot.6} from player
  952. set {ultimateclans.clan.%arg 2%.claim.point} to location of player
  953. add arg 2 to {ultimateclans.clanlist::*}
  954. set {ultimateclans.%name of player%.owner.clanname} to arg 2
  955. add arg 3 to {ultimateclans.tagclanlist::*}
  956. set {ultimateclans.%name of player%.owner.tag} to arg 3
  957. set {ultimateclans.%name of player%.owner} to true
  958. set {ultimateclans.%name of player%.owner.name} to player
  959. set {ultimateclans.clan.%arg 2%.tag} to arg 3
  960. set {ultimateclans.clan.%arg 2%.name} to arg 2
  961. set {ultimateclans.clan.%arg 3%.tag.fullname} to arg 2
  962. set {ultimateclans.clan.%arg 2%.pvp} to {@pvp}
  963. set {ultimateclans.clan.%arg 3%.tagauth} to arg 3
  964. set {ultimateclans.clan.%arg 2%.ownername} to player
  965. set {ultimateclans.%arg 2%.member-number} to 0
  966. wait 1 tick
  967. add 1 to {ultimateclans.%arg 2%.member-number}
  968. add player to {ultimateclans.%arg 2%.members::*}
  969. set {ultimateclans.clan.%arg 2%.claimset} to false
  970. send "%{tag}% &aStworzono gildie o nazwie: &7%arg 2%&a i tagu: &7%arg 3%"
  971. broadcast "%{tag}% &aGracz: &7%name of player% &astworzyl gildie o nazwie: &7%arg 2% &ai tagu: &7%arg 3%"
  972. stop
  973. else:
  974. send "%{tag}% &cTo miejsce ma juz inna gildia"
  975. stop
  976. if {ultimateclans.claim.method} is "wg" or "WG" or "Wg" or "WorldGuard" or "worldguard" or "Worldguard":
  977. if player has permissions "ultimateclans.worldguard" or "ultimateclans.admin":
  978. player cannot build at block under player:
  979. send "%{tag}% &cNie mozna tutaj stworzyc terenu gildii! Teren pod Toba jest juz zabezpieczony"
  980. stop
  981. player cannot build at block {ultimateclans.worldguard.size} meters northwest:
  982. send "%{tag}% &cNie mozna tutaj stworzyc terenu gildii! Teren na polnocny-zachod stad jest juz zabezpieczony"
  983. stop
  984. player cannot build at block {ultimateclans.worldguard.size} meters north:
  985. send "%{tag}% &cNie mozna tutaj stworzyc terenu gildii! Teren na polnoc stad jest juz zabezpieczony"
  986. stop
  987. player cannot build at block {ultimateclans.worldguard.size} meters northeast:
  988. send "%{tag}% &cNie mozna tutaj stworzyc terenu gildii! Teren na polnocny-wschod stad jest juz zajety"
  989. stop
  990. player cannot build at block {ultimateclans.worldguard.size} meters west:
  991. send "%{tag}% &cNie mozna tutaj stworzyc terenu gildii! Teren na zachod stad jest juz zajety"
  992. stop
  993. player cannot build at block {ultimateclans.worldguard.size} meters east:
  994. send "%{tag}% &cNie mozna tutaj stworzyc terenu gildii! Teren na wschod stad jest juz zajety"
  995. stop
  996. player cannot build at block {ultimateclans.worldguard.size} meters southwest:
  997. send "%{tag}% &cNie mozna tutaj stworzyc terenu gildii! Teren na poludniowy-zachod stad jest juz zajety"
  998. stop
  999. player cannot build at block {ultimateclans.worldguard.size} meters south:
  1000. send "%{tag}% &cNie mozna tutaj stworzyc terenu gildii! Teren na poludnie stad jest juz zajety"
  1001. stop
  1002. player cannot build at block {ultimateclans.worldguard.size} meters southeast:
  1003. send "%{tag}% &cNie mozna tutaj stworzyc terenu gildii! Teren na poludniowy-wschod stad jest juz zajety"
  1004. stop
  1005. send "%{tag}% Zabezpieczenie &8- &aTworzenie ..."
  1006. make console execute command "pex user %name of player% add worldguard.*"
  1007. make console execute command "pex user %name of player% add worldedit.*"
  1008. wait 1 tick
  1009. make player execute command "//pos1"
  1010. make player execute command "//pos2"
  1011. wait 1 tick
  1012. make player execute command "//expand %{ultimateclans.worldguard.size}% n"
  1013. make player execute command "//expand %{ultimateclans.worldguard.size}% s"
  1014. make player execute command "//expand %{ultimateclans.worldguard.size}% w"
  1015. make player execute command "//expand %{ultimateclans.worldguard.size}% e"
  1016. make player execute command "//expand vert"
  1017. wait 1 tick
  1018. make player execute command "/rg define clans-%arg 2%"
  1019. wait 1 tick
  1020. make console execute command "pex user %name of player% remove worldguard.*"
  1021. make console execute command "pex user %name of player% remove worldedit.*"
  1022. if {ultimateclans.tag} is true:
  1023. make console execute command "pex user %name of player% add NametagEdit.*"
  1024. wait 1 tick
  1025. make player execute command "ne prefix %name of player% &6[%arg 3%]&f"
  1026. make console execute command "pex user %name of player% remove NametagEdit.*"
  1027. make console execute command "rg addowner -w %world of player% clans-%arg 2% %name of player%"
  1028. make console execute command "rg setpriority -w %world of player% clans-%arg 2% 1"
  1029. if {ultimateclans.claim.wg.greeting} is true:
  1030. make console execute command "rg flag -w %world of player% clans-%arg 2% greeting &7Obecny teren nalezy do gildii: &f[&g%arg 2%&f]"
  1031. if {ultimateclans.claim.wg.farewell} is true:
  1032. make console execute command "rg flag -w %world of player% clans-%arg 2% farewell &7Opuszczono teren gildii: &f[&g%arg 2%&f]"
  1033. if {ultimateclans.claim.wg.chest} is true:
  1034. make console execute command "rg flag -w %world of player% clans-%arg 2% chest-access deny"
  1035. if {ultimateclans.claim.wg.chest} is false:
  1036. make console execute command "rg flag -w %world of player% clans-%arg 2% chest-access allow"
  1037. set {ultimateclans.clan.%arg 2%.claim.point.center} to location of player
  1038. loop 100 times:
  1039. send " "
  1040. send "%{tag}% Zabezpieczenie &8-&a Otrzymano teren!"
  1041. if {ultimateclans.setblock} is true:
  1042. set block under player to {@claim.setblock.type}
  1043. set {ultimateclans.clan.%arg 2%.claim.point} to location of player
  1044. add arg 2 to {ultimateclans.clanlist::*}
  1045. set {ultimateclans.%name of player%.owner.clanname} to arg 2
  1046. add arg 3 to {ultimateclans.tagclanlist::*}
  1047. set {ultimateclans.%name of player%.owner.tag} to arg 3
  1048. set {ultimateclans.%name of player%.owner} to true
  1049. set {ultimateclans.%name of player%.owner.name} to player
  1050. set {ultimateclans.clan.%arg 2%.tag} to arg 3
  1051. set {ultimateclans.clan.%arg 2%.name} to arg 2
  1052. set {ultimateclans.clan.%arg 3%.tag.fullname} to arg 2
  1053. set {ultimateclans.clan.%arg 3%.tagauth} to arg 3
  1054. set {ultimateclans.clan.%arg 2%.pvp} to {@pvp}
  1055. set {ultimateclans.%arg 2%.member-number} to 0
  1056. set {ultimateclans.clan.%arg 2%.ownername} to player
  1057. add 1 to {ultimateclans.%arg 2%.member-number}
  1058. add player to {ultimateclans.%arg 2%.members::*}
  1059. remove {@payitem.slot.1} from player
  1060. remove {@payitem.slot.2} from player
  1061. remove {@payitem.slot.3} from player
  1062. remove {@payitem.slot.4} from player
  1063. remove {@payitem.slot.5} from player
  1064. remove {@payitem.slot.6} from player
  1065. set {ultimateclans.clan.%arg 2%.killall} to 0
  1066. set {ultimateclans.clan.%arg 2%.deathall} to 0
  1067. set {ultimateclans.clan.%{ultimateclans.%name of player%.owner.clanname}%.claimset} to false
  1068. if {ultimateclans.level.take} is true:
  1069. reduce player's level by {@level.create}
  1070. send "%{tag}% &aStworzono gildie o nazwie: &7%arg 2%&a i tagu: &7%arg 3%"
  1071. broadcast "%{tag}% &aGracz: &7%name of player% &astworzyl gildie o nazwie: &7%arg 2% &ai tagu: &7%arg 3%"
  1072. # '
  1073. stop
  1074. else:
  1075. send "%{tag}% &cBlad! &8-&7 Skontaktuj sie z administratorem!"
  1076. stop
  1077. else:
  1078. send "%{tag}% &cJestes zbyt blisko spawnu!"
  1079. stop
  1080. else:
  1081. send "%{tag}% &cBlad! &8-&7 Skontaktuj sie z administratorem! Nieustawiono spawnpoint'u"
  1082. stop
  1083. else:
  1084. add arg 2 to {ultimateclans.clanlist::*}
  1085. set {ultimateclans.%name of player%.owner.clanname} to arg 2
  1086. add arg 3 to {ultimateclans.tagclanlist::*}
  1087. set {ultimateclans.%name of player%.owner.tag} to arg 3
  1088. set {ultimateclans.%name of player%.owner} to true
  1089. set {ultimateclans.%name of player%.owner.name} to player
  1090. set {ultimateclans.clan.%arg 2%.tag} to arg 3
  1091. set {ultimateclans.clan.%arg 2%.name} to arg 2
  1092. set {ultimateclans.clan.%arg 2%.pvp} to {@pvp}
  1093. set {ultimateclans.clan.%arg 3%.tag.fullname} to arg 2
  1094. set {ultimateclans.clan.%arg 3%.tagauth} to arg 3
  1095. set {ultimateclans.clan.%arg 2%.ownername} to player
  1096. set {ultimateclans.%arg 2%.member-number} to 0
  1097. set {ultimateclans.clan.%arg 2%.ownername} to player
  1098. add 1 to {ultimateclans.%arg 2%.member-number}
  1099. set {ultimateclans.clan.%arg 2%.killall} to 0
  1100. set {ultimateclans.clan.%arg 2%.deathall} to 0
  1101. add player to {ultimateclans.%arg 2%.members::*}
  1102. remove {@payitem.slot.1} from player
  1103. remove {@payitem.slot.2} from player
  1104. remove {@payitem.slot.3} from player
  1105. remove {@payitem.slot.4} from player
  1106. remove {@payitem.slot.5} from player
  1107. remove {@payitem.slot.6} from player
  1108. if {ultimateclans.level.take} is true:
  1109. reduce player's level by {@level.create}
  1110. send "%{tag}% &aStworzono gildie o nazwie: &7%arg 2%&a i tagu: &7%arg 3%"
  1111. broadcast "%{tag}% &aGracz: &7%name of player% &astworzyl gildie o nazwie: &7%arg 2% &ai tagu: &7%arg 3%"
  1112. stop
  1113. else:
  1114. send "%{tag}% &cBrakuje: &7{@payitem.slot.6}"
  1115. stop
  1116. else:
  1117. send "%{tag}% &cBrakuje: &7{@payitem.slot.5}"
  1118. stop
  1119. else:
  1120. send "%{tag}% &cBrakuje: &7{@payitem.slot.4}"
  1121. stop
  1122. else:
  1123. send "%{tag}% &cBrakuje: &7{@payitem.slot.3}"
  1124. stop
  1125. else:
  1126. send "%{tag}% &cBrakuje: &7{@payitem.slot.2}"
  1127. stop
  1128. else:
  1129. send "%{tag}% &cBrakuje: &7{@payitem.slot.1}"
  1130. stop
  1131. if {ultimateclans.paymoney.enable} is true:
  1132. if {ultimateclans.vault} is true:
  1133. set {_money} to player's money
  1134. if {_money} is greater than {@paymoney.create.cost}:
  1135. if {ultimateclans.%name of player%.member} is true:
  1136. send "%{tag}% &cJestes juz w gildii!"
  1137. stop trigger
  1138. if {ultimateclans.%name of player%.owner} is true:
  1139. send "%{tag}% &cMasz juz gildie!"
  1140. stop trigger
  1141. if {ultimateclans.clan.%arg 2%.tag} is set:
  1142. send "%{tag}% &cJest juz taka gildia!"
  1143. stop trigger
  1144. if {ultimateclans.clan.%arg 3%.tagauth} is set:
  1145. send "%{tag}% &cJest juz gildia! z takim tagiem!"
  1146. stop trigger
  1147. else:
  1148. if {ultimateclans.autoclaim.enable} is true:
  1149. if {ultimateclans.spawn.%world%} is set:
  1150. if distance between {ultimateclans.spawn.%world%} and location of player is greater than {@spawn.distance}+{claim.size}/2:
  1151. if {ultimateclans.claim.method} is "chunk":
  1152. if {ultimateclans.chunk::%chunk at player%} is not set:
  1153. set {ultimateclans.chunk::%chunk at player%} to arg 2
  1154. if {ultimateclans.setblock} is true:
  1155. set block under player to {@claim.setblock.type}
  1156. send "%{tag}% Zabezpieczenie &8-&a Otrzymano teren!"
  1157. set {ultimateclans.clan.%arg 2%.claim.point} to location of player
  1158. add arg 2 to {ultimateclans.clanlist::*}
  1159. set {ultimateclans.%name of player%.owner.clanname} to arg 2
  1160. add arg 3 to {ultimateclans.tagclanlist::*}
  1161. set {ultimateclans.%name of player%.owner.tag} to arg 3
  1162. set {ultimateclans.%name of player%.owner} to true
  1163. set {ultimateclans.%name of player%.owner.name} to player
  1164. set {ultimateclans.clan.%arg 2%.tag} to arg 3
  1165. set {ultimateclans.clan.%arg 2%.name} to arg 2
  1166. set {ultimateclans.clan.%arg 3%.tag.fullname} to arg 2
  1167. set {ultimateclans.clan.%arg 3%.tagauth} to arg 3
  1168. set {ultimateclans.clan.%arg 2%.ownername} to player
  1169. set {ultimateclans.%arg 2%.member-number} to 0
  1170. set {ultimateclans.clan.%arg 2%.ownername} to player
  1171. add 1 to {ultimateclans.%arg 2%.member-number}
  1172. set {ultimateclans.clan.%arg 2%.killall} to 0
  1173. set {ultimateclans.clan.%arg 2%.deathall} to 0
  1174. add player to {ultimateclans.%arg 2%.members::*}
  1175. set {ultimateclans.clan.%arg 2%.pvp} to {@pvp}
  1176. subtract {@paymoney.create.cost} from player's money
  1177. if {ultimateclans.level.take} is true:
  1178. reduce player's level by {@level.create}
  1179. send "%{tag}% &aStworzono gildie o nazwie: &7%arg 2%&a i tagu: &7%arg 3%"
  1180. broadcast "%{tag}% &aGracz: &7%name of player% &astworzyl gildie o nazwie: &7%arg 2% &ai tagu: &7%arg 3%"
  1181. stop
  1182. else:
  1183. send "%{tag}% &cTo miejsce ma juz inna gildia"
  1184. stop
  1185. if {ultimateclans.claim.method} is "wg" or "WG" or "Wg" or "WorldGuard" or "worldguard" or "Worldguard":
  1186. if player has permissions "ultimateclans.worldguard" or "ultimateclans.admin":
  1187. player cannot build at block under player:
  1188. send "%{tag}% &cNie mozna tutaj stworzyc terenu gildii! Teren pod Toba jest juz zabezpieczony"
  1189. stop
  1190. player cannot build at block {ultimateclans.worldguard.size} meters northwest:
  1191. send "%{tag}% &cNie mozna tutaj stworzyc terenu gildii! Teren na polnocny-zachod stad jest juz zabezpieczony"
  1192. stop
  1193. player cannot build at block {ultimateclans.worldguard.size} meters north:
  1194. send "%{tag}% &cNie mozna tutaj stworzyc terenu gildii! Teren na polnoc stad jest juz zabezpieczony"
  1195. stop
  1196. player cannot build at block {ultimateclans.worldguard.size} meters northeast:
  1197. send "%{tag}% &cNie mozna tutaj stworzyc terenu gildii! Teren na polnocny-wschod stad jest juz zajety"
  1198. stop
  1199. player cannot build at block {ultimateclans.worldguard.size} meters west:
  1200. send "%{tag}% &cNie mozna tutaj stworzyc terenu gildii! Teren na zachod stad jest juz zajety"
  1201. stop
  1202. player cannot build at block {ultimateclans.worldguard.size} meters east:
  1203. send "%{tag}% &cNie mozna tutaj stworzyc terenu gildii! Teren na wschod stad jest juz zajety"
  1204. stop
  1205. player cannot build at block {ultimateclans.worldguard.size} meters southwest:
  1206. send "%{tag}% &cNie mozna tutaj stworzyc terenu gildii! Teren na poludniowy-zachod stad jest juz zajety"
  1207. stop
  1208. player cannot build at block {ultimateclans.worldguard.size} meters south:
  1209. send "%{tag}% &cNie mozna tutaj stworzyc terenu gildii! Teren na poludnie stad jest juz zajety"
  1210. stop
  1211. player cannot build at block {ultimateclans.worldguard.size} meters southeast:
  1212. send "%{tag}% &cNie mozna tutaj stworzyc terenu gildii! Teren na poludniowy-wschod stad jest juz zajety"
  1213. stop
  1214. send "%{tag}% Zabezpieczenie &8- &aTworzenie ..."
  1215. make console execute command "pex user %name of player% add worldguard.*"
  1216. make console execute command "pex user %name of player% add worldedit.*"
  1217. wait 1 tick
  1218. make player execute command "//pos1"
  1219. make player execute command "//pos2"
  1220. wait 1 tick
  1221. make player execute command "//expand %{ultimateclans.worldguard.size}% n"
  1222. make player execute command "//expand %{ultimateclans.worldguard.size}% s"
  1223. make player execute command "//expand %{ultimateclans.worldguard.size}% w"
  1224. make player execute command "//expand %{ultimateclans.worldguard.size}% e"
  1225. make player execute command "//expand vert"
  1226. wait 1 tick
  1227. make player execute command "/rg define clans-%arg 2%"
  1228. wait 1 tick
  1229. make console execute command "pex user %name of player% remove worldguard.*"
  1230. make console execute command "pex user %name of player% remove worldedit.*"
  1231. if {ultimateclans.tag} is true:
  1232. make console execute command "pex user %name of player% add NametagEdit.*"
  1233. wait 1 tick
  1234. make player execute command "ne prefix %name of player% &6[%arg 3%]&f"
  1235. make console execute command "pex user %name of player% remove NametagEdit.*"
  1236. make console execute command "rg addowner -w %world of player% clans-%arg 2% %name of player%"
  1237. make console execute command "rg setpriority -w %world of player% clans-%arg 2% 1"
  1238. if {ultimateclans.claim.wg.greeting} is true:
  1239. make console execute command "rg flag -w %world of player% clans-%arg 2% greeting &7Obecny teren nalezy do gildii: &f[&g%arg 2%&f]"
  1240. if {ultimateclans.claim.wg.farewell} is true:
  1241. make console execute command "rg flag -w %world of player% clans-%arg 2% farewell &7Opuszczono teren gildii: &f[&g%arg 2%&f]"
  1242. if {ultimateclans.claim.wg.chest} is true:
  1243. make console execute command "rg flag -w %world of player% clans-%arg 2% chest-access deny"
  1244. if {ultimateclans.claim.wg.chest} is false:
  1245. make console execute command "rg flag -w %world of player% clans-%arg 2% chest-access allow"
  1246. set {ultimateclans.clan.%arg 2%.claim.point.center} to location of player
  1247. loop 100 times:
  1248. send " "
  1249. send "%{tag}% Zabezpieczenie &8-&a Otrzymano teren!"
  1250. if {ultimateclans.setblock} is true:
  1251. set block under player to {@claim.setblock.type}
  1252. set {ultimateclans.clan.%arg 2%.claim.point} to location of player
  1253. add arg 2 to {ultimateclans.clanlist::*}
  1254. set {ultimateclans.%name of player%.owner.clanname} to arg 2
  1255. add arg 3 to {ultimateclans.tagclanlist::*}
  1256. set {ultimateclans.%name of player%.owner.tag} to arg 3
  1257. set {ultimateclans.%name of player%.owner} to true
  1258. set {ultimateclans.%name of player%.owner.name} to name of player
  1259. set {ultimateclans.clan.%arg 2%.tag} to arg 3
  1260. subtract {@paymoney.create.cost}/2 from player's money
  1261. wait 1 tick
  1262. subtract {@paymoney.create.cost}/2 from player's money
  1263. set {ultimateclans.clan.%arg 2%.name} to arg 2
  1264. set {ultimateclans.clan.%arg 2%.pvp} to {@pvp}
  1265. set {ultimateclans.clan.%arg 3%.tag.fullname} to arg 2
  1266. set {ultimateclans.clan.%arg 3%.tagauth} to arg 3
  1267. set {ultimateclans.clan.%arg 2%.ownername} to name of player
  1268. set {ultimateclans.%arg 2%.member-number} to 0
  1269. set {ultimateclans.clan.%arg 2%.ownername} to player
  1270. add 1 to {ultimateclans.%arg 2%.member-number}
  1271. set {ultimateclans.clan.%arg 2%.killall} to 0
  1272. set {ultimateclans.clan.%arg 2%.deathall} to 0
  1273. add name of player to {ultimateclans.%arg 2%.members::*}
  1274. if {ultimateclans.level.take} is true:
  1275. reduce player's level by {@level.create}
  1276. set {ultimateclans.clan.%{ultimateclans.%name of player%.owner.clanname}%.claimset} to false
  1277. send "%{tag}% &aStworzono gildie o nazwie: &7%arg 2%&a i tagu: &7%arg 3%"
  1278. broadcast "%{tag}% &aGracz: &7%name of player% &astworzyl gildie o nazwie: &7%arg 2% &ai tagu: &7%arg 3%"
  1279. stop
  1280. else:
  1281. send "%{tag}% &cBlad! &8-&7 Skontaktuj sie z administratorem! Powod: Brak uprawnien - ultimateclans.worldguard"
  1282. stop
  1283. else:
  1284. send "%{tag}% &cJestes zbyt blisko spawnu!"
  1285. stop
  1286. else:
  1287. send "%{tag}% &cBlad! &8-&7 Skontaktuj sie z administratorem! Nieustawiono spawnpoint'u"
  1288. stop
  1289. else:
  1290. add arg 2 to {ultimateclans.clanlist::*}
  1291. if {ultimateclans.level.take} is true:
  1292. reduce player's level by {@level.create}
  1293. set {ultimateclans.%name of player%.owner.clanname} to arg 2
  1294. add arg 3 to {ultimateclans.tagclanlist::*}
  1295. set {ultimateclans.%name of player%.owner.tag} to arg 3
  1296. set {ultimateclans.%name of player%.owner} to true
  1297. set {ultimateclans.%name of player%.owner.name} to player
  1298. set {ultimateclans.clan.%arg 2%.tag} to arg 3
  1299. set {ultimateclans.clan.%arg 2%.name} to arg 2
  1300. set {ultimateclans.clan.%arg 3%.tag.fullname} to arg 2
  1301. set {ultimateclans.clan.%arg 3%.tagauth} to arg 3
  1302. set {ultimateclans.clan.%arg 2%.pvp} to {@pvp}
  1303. set {ultimateclans.clan.%arg 2%.ownername} to player
  1304. set {ultimateclans.%arg 2%.member-number} to 0
  1305. set {ultimateclans.clan.%arg 2%.ownername} to player
  1306. add 1 to {ultimateclans.%arg 2%.member-number}
  1307. set {ultimateclans.clan.%arg 2%.killall} to 0
  1308. set {ultimateclans.clan.%arg 2%.deathall} to 0
  1309. add player to {ultimateclans.%arg 2%.members::*}
  1310. subtract {@paymoney.create.cost}/2 from player's money
  1311. wait 1 tick
  1312. subtract {@paymoney.create.cost}/2 from player's money
  1313. send "%{tag}% &aStworzono gildie o nazwie: &7%arg 2%&a i tagu: &7%arg 3%"
  1314. broadcast "%{tag}% &aGracz: &7%name of player% &astworzyl gildie o nazwie: &7%arg 2% &ai tagu: &7%arg 3%"
  1315. stop
  1316. else:
  1317. send "%{tag}% &cNie masz wystarczajaco duzo pieniedzy!"
  1318. stop
  1319. else:
  1320. send "%{tag}% &cBlad! Skontaktuj sie z administratorem. Powod: &7Wymagany plugin Vault"
  1321. stop
  1322. else:
  1323. if {ultimateclans.autoclaim.enable} is true:
  1324. if {ultimateclans.spawn.%world%} is set:
  1325. if distance between {ultimateclans.spawn.%world%} and location of player is greater than {@spawn.distance}+{claim.size}/2:
  1326. if {ultimateclans.claim.method} is "chunk":
  1327. if {ultimateclans.chunk::%chunk at player%} is not set:
  1328. set {ultimateclans.chunk::%chunk at player%} to arg 2
  1329. if {ultimateclans.setblock} is true:
  1330. set block under player to {@claim.setblock.type}
  1331. send "%{tag}% Zabezpieczenie &8-&a Otrzymano teren!"
  1332. set {ultimateclans.clan.%arg 2%.claim.point} to location of player
  1333. add arg 2 to {ultimateclans.clanlist::*}
  1334. set {ultimateclans.%name of player%.owner.clanname} to arg 2
  1335. add arg 3 to {ultimateclans.tagclanlist::*}
  1336. set {ultimateclans.%name of player%.owner.tag} to arg 3
  1337. set {ultimateclans.%name of player%.owner} to true
  1338. set {ultimateclans.%name of player%.owner.name} to player
  1339. set {ultimateclans.clan.%arg 2%.tag} to arg 3
  1340. set {ultimateclans.clan.%arg 2%.name} to arg 2
  1341. set {ultimateclans.clan.%arg 3%.tag.fullname} to arg 2
  1342. set {ultimateclans.clan.%arg 3%.tagauth} to arg 3
  1343. set {ultimateclans.clan.%arg 2%.ownername} to player
  1344. set {ultimateclans.%arg 2%.member-number} to 0
  1345. set {ultimateclans.clan.%arg 2%.ownername} to player
  1346. add 1 to {ultimateclans.%arg 2%.member-number}
  1347. set {ultimateclans.clan.%arg 2%.killall} to 0
  1348. set {ultimateclans.clan.%arg 2%.deathall} to 0
  1349. set {ultimateclans.clan.%arg 2%.pvp} to {@pvp}
  1350. add player to {ultimateclans.%{ultimateclans.%name of player%.owner.clanname}%.members::*}
  1351. if {ultimateclans.level.take} is true:
  1352. reduce player's level by {@level.create}
  1353. send "%{tag}% &aStworzono gildie o nazwie: &7%arg 2%&a i tagu: &7%arg 3%"
  1354. broadcast "%{tag}% &aGracz: &7%name of player% &astworzyl gildie o nazwie: &7%arg 2% &ai tagu: &7%arg 3%"
  1355. stop
  1356. else:
  1357. send "%{tag}% &cTo miejsce ma juz inna gildia"
  1358. stop
  1359. if {ultimateclans.claim.method} is "wg" or "WG" or "Wg" or "WorldGuard" or "worldguard" or "Worldguard":
  1360. if player has permissions "ultimateclans.worldguard" or "ultimateclans.admin":
  1361. player cannot build at block under player:
  1362. send "%{tag}% &cNie mozna tutaj stworzyc terenu gildii! Teren pod Toba jest juz zabezpieczony"
  1363. stop
  1364. player cannot build at block {ultimateclans.worldguard.size} meters northwest:
  1365. send "%{tag}% &cNie mozna tutaj stworzyc terenu gildii! Teren na polnocny-zachod stad jest juz zabezpieczony"
  1366. stop
  1367. player cannot build at block {ultimateclans.worldguard.size} meters north:
  1368. send "%{tag}% &cNie mozna tutaj stworzyc terenu gildii! Teren na polnoc stad jest juz zabezpieczony"
  1369. stop
  1370. player cannot build at block {ultimateclans.worldguard.size} meters northeast:
  1371. send "%{tag}% &cNie mozna tutaj stworzyc terenu gildii! Teren na polnocny-wschod stad jest juz zajety"
  1372. stop
  1373. player cannot build at block {ultimateclans.worldguard.size} meters west:
  1374. send "%{tag}% &cNie mozna tutaj stworzyc terenu gildii! Teren na zachod stad jest juz zajety"
  1375. stop
  1376. player cannot build at block {ultimateclans.worldguard.size} meters east:
  1377. send "%{tag}% &cNie mozna tutaj stworzyc terenu gildii! Teren na wschod stad jest juz zajety"
  1378. stop
  1379. player cannot build at block {ultimateclans.worldguard.size} meters southwest:
  1380. send "%{tag}% &cNie mozna tutaj stworzyc terenu gildii! Teren na poludniowy-zachod stad jest juz zajety"
  1381. stop
  1382. player cannot build at block {ultimateclans.worldguard.size} meters south:
  1383. send "%{tag}% &cNie mozna tutaj stworzyc terenu gildii! Teren na poludnie stad jest juz zajety"
  1384. stop
  1385. player cannot build at block {ultimateclans.worldguard.size} meters southeast:
  1386. send "%{tag}% &cNie mozna tutaj stworzyc terenu gildii! Teren na poludniowy-wschod stad jest juz zajety"
  1387. stop
  1388. send "%{tag}% Zabezpieczenie &8- &aTworzenie ..."
  1389. make console execute command "pex user %name of player% add worldguard.*"
  1390. make console execute command "pex user %name of player% add worldedit.*"
  1391. wait 1 tick
  1392. make player execute command "//pos1"
  1393. make player execute command "//pos2"
  1394. wait 1 tick
  1395. make player execute command "//expand %{ultimateclans.worldguard.size}% n"
  1396. make player execute command "//expand %{ultimateclans.worldguard.size}% s"
  1397. make player execute command "//expand %{ultimateclans.worldguard.size}% w"
  1398. make player execute command "//expand %{ultimateclans.worldguard.size}% e"
  1399. make player execute command "//expand vert"
  1400. wait 1 tick
  1401. make player execute command "/rg define clans-%arg 2%"
  1402. wait 1 tick
  1403. make console execute command "pex user %name of player% remove worldguard.*"
  1404. make console execute command "pex user %name of player% remove worldedit.*"
  1405. if {ultimateclans.tag} is true:
  1406. make console execute command "pex user %name of player% add NametagEdit.*"
  1407. wait 1 tick
  1408. make player execute command "ne prefix %name of player% &6[%arg 3%]&f"
  1409. make console execute command "pex user %name of player% remove NametagEdit.*"
  1410. make console execute command "rg addowner -w %world of player% clans-%arg 2% %name of player%"
  1411. make console execute command "rg setpriority -w %world of player% clans-%arg 2% 1"
  1412. if {ultimateclans.claim.wg.greeting} is true:
  1413. make console execute command "rg flag -w %world of player% clans-%arg 2% greeting &7Obecny teren nalezy do gildii: &f[&g%arg 2%&f]"
  1414. if {ultimateclans.claim.wg.farewell} is true:
  1415. make console execute command "rg flag -w %world of player% clans-%arg 2% farewell &7Opuszczono teren gildii: &f[&g%arg 2%&f]"
  1416. if {ultimateclans.claim.wg.chest} is true:
  1417. make console execute command "rg flag -w %world of player% clans-%arg 2% chest-access deny"
  1418. if {ultimateclans.claim.wg.chest} is false:
  1419. make console execute command "rg flag -w %world of player% clans-%arg 2% chest-access allow"
  1420. set {ultimateclans.clan.%arg 2%.claim.point.center} to location of player
  1421. loop 100 times:
  1422. send " "
  1423. send "%{tag}% Zabezpieczenie &8-&a Otrzymano teren!"
  1424. if {ultimateclans.setblock} is true:
  1425. set block under player to {@claim.setblock.type}
  1426. set {ultimateclans.clan.%arg 2%.claim.point} to location of player
  1427. add arg 2 to {ultimateclans.clanlist::*}
  1428. set {ultimateclans.%name of player%.owner.clanname} to arg 2
  1429. add arg 3 to {ultimateclans.tagclanlist::*}
  1430. set {ultimateclans.%name of player%.owner.tag} to arg 3
  1431. set {ultimateclans.%name of player%.owner} to true
  1432. set {ultimateclans.%name of player%.owner.name} to name of player
  1433. set {ultimateclans.clan.%arg 2%.tag} to arg 3
  1434. set {ultimateclans.clan.%arg 2%.name} to arg 2
  1435. set {ultimateclans.clan.%arg 3%.tag.fullname} to arg 2
  1436. set {ultimateclans.clan.%arg 3%.tagauth} to arg 3
  1437. set {ultimateclans.clan.%arg 2%.pvp} to {@pvp}
  1438. set {ultimateclans.clan.%arg 2%.ownername} to name of player
  1439. set {ultimateclans.%arg 2%.member-number} to 0
  1440. set {ultimateclans.clan.%arg 2%.ownername} to player
  1441. add 1 to {ultimateclans.%arg 2%.member-number}
  1442. set {ultimateclans.clan.%arg 2%.killall} to 0
  1443. set {ultimateclans.clan.%arg 2%.deathall} to 0
  1444. add name of player to {ultimateclans.%arg 2%.members::*}
  1445. if {ultimateclans.level.take} is true:
  1446. reduce player's level by {@level.create}
  1447. set {ultimateclans.clan.%{ultimateclans.%name of player%.owner.clanname}%.claimset} to false
  1448. send "%{tag}% &aStworzono gildie o nazwie: &7%arg 2%&a i tagu: &7%arg 3%"
  1449. broadcast "%{tag}% &aGracz: &7%name of player% &astworzyl gildie o nazwie: &7%arg 2% &ai tagu: &7%arg 3%"
  1450. stop
  1451. else:
  1452. send "%{tag}% &cBlad! &8-&7 Skontaktuj sie z administratorem!"
  1453. stop
  1454. else:
  1455. send "%{tag}% &cJestes zbyt blisko spawnu!"
  1456. stop
  1457. else:
  1458. send "%{tag}% &cBlad! &8-&7 Skontaktuj sie z administratorem! Nieustawiono spawnpoint'u"
  1459. stop
  1460. else:
  1461. add arg 2 to {ultimateclans.clanlist::*}
  1462. set {ultimateclans.%name of player%.owner.clanname} to arg 2
  1463. add arg 3 to {ultimateclans.tagclanlist::*}
  1464. set {ultimateclans.%name of player%.owner.tag} to arg 3
  1465. set {ultimateclans.%name of player%.owner} to true
  1466. set {ultimateclans.%name of player%.owner.name} to player
  1467. set {ultimateclans.clan.%arg 2%.tag} to arg 3
  1468. set {ultimateclans.clan.%arg 2%.name} to arg 2
  1469. set {ultimateclans.clan.%arg 3%.tag.fullname} to arg 2
  1470. set {ultimateclans.clan.%arg 3%.tagauth} to arg 3
  1471. set {ultimateclans.clan.%arg 2%.ownername} to player
  1472. set {ultimateclans.clan.%arg 2%.pvp} to {@pvp}
  1473. set {ultimateclans.%arg 2%.member-number} to 0
  1474. set {ultimateclans.clan.%arg 2%.ownername} to player
  1475. add 1 to {ultimateclans.%arg 2%.member-number}
  1476. set {ultimateclans.clan.%arg 2%.killall} to 0
  1477. set {ultimateclans.clan.%arg 2%.deathall} to 0
  1478. add player to {ultimateclans.%arg 2%.members::*}
  1479. if {ultimateclans.level.take} is true:
  1480. reduce player's level by {@level.create}
  1481. set {ultimateclans.clan.%{ultimateclans.%name of player%.owner.clanname}%.claimset} to false
  1482. send "%{tag}% &aStworzono gildie o nazwie: &7%arg 2%&a i tagu: &7%arg 3%"
  1483. broadcast "%{tag}% &aGracz: &7%name of player% &astworzyl gildie o nazwie: &7%arg 2% &ai tagu: &7%arg 3%"
  1484. stop
  1485. else:
  1486. send "%{tag}% &cNie masz wystarczajacego poziomu. Wymagany poziom, to: &7{@level.create}"
  1487. stop
  1488. else:
  1489. if {ultimateclans.%name of player%.member} is true:
  1490. send "%{tag}% &cJestes juz w gildii!"
  1491. stop trigger
  1492. if {ultimateclans.%name of player%.owner} is true:
  1493. send "%{tag}% &cMasz juz gildie!"
  1494. stop trigger
  1495. if {ultimateclans.clan.%arg 2%.tag} is set:
  1496. send "%{tag}% &cJest juz taka gildia!"
  1497. stop trigger
  1498. if {ultimateclans.clan.%arg 3%.tagauth} is set:
  1499. send "%{tag}% &cJest juz gildia! z takim tagiem!"
  1500. stop trigger
  1501. else:
  1502. if {ultimateclans.autoclaim.enable} is true:
  1503. if {ultimateclans.spawn.%world%} is set:
  1504. if distance between {ultimateclans.spawn.%world%} and location of player is greater than {@spawn.distance}+{claim.size}/2:
  1505. if {ultimateclans.claim.method} is "chunk":
  1506. if {ultimateclans.chunk::%chunk at player%} is not set:
  1507. set {ultimateclans.chunk::%chunk at player%} to arg 2
  1508. if {ultimateclans.setblock} is true:
  1509. set block under player to {@claim.setblock.type}
  1510. send "%{tag}% Zabezpieczenie &8-&a Otrzymano teren!"
  1511. set {ultimateclans.clan.%arg 2%.claim.point} to location of player
  1512. add arg 2 to {ultimateclans.clanlist::*}
  1513. set {ultimateclans.%name of player%.owner.clanname} to arg 2
  1514. add arg 3 to {ultimateclans.tagclanlist::*}
  1515. set {ultimateclans.%name of player%.owner.tag} to arg 3
  1516. set {ultimateclans.%name of player%.owner} to true
  1517. set {ultimateclans.%name of player%.owner.name} to player
  1518. set {ultimateclans.clan.%arg 2%.tag} to arg 3
  1519. set {ultimateclans.clan.%arg 2%.pvp} to {@pvp}
  1520. set {ultimateclans.clan.%arg 2%.name} to arg 2
  1521. set {ultimateclans.clan.%arg 3%.tag.fullname} to arg 2
  1522. set {ultimateclans.clan.%arg 3%.tagauth} to arg 3
  1523. set {ultimateclans.clan.%arg 2%.ownername} to player
  1524. set {ultimateclans.%arg 2%.member-number} to 0
  1525. set {ultimateclans.clan.%arg 2%.ownername} to player
  1526. add 1 to {ultimateclans.%arg 2%.member-number}
  1527. set {ultimateclans.clan.%arg 2%.killall} to 0
  1528. set {ultimateclans.clan.%arg 2%.deathall} to 0
  1529. add player to {ultimateclans.%arg 2%.members::*}
  1530. send "%{tag}% &aStworzono gildie o nazwie: &7%arg 2%&a i tagu: &7%arg 3%"
  1531. broadcast "%{tag}% &aGracz: &7%name of player% &astworzyl gildie o nazwie: &7%arg 2% &ai tagu: &7%arg 3%"
  1532. stop
  1533. else:
  1534. send "%{tag}% &cTo miejsce ma juz inna gildia"
  1535. stop
  1536. if {ultimateclans.claim.method} is "wg" or "WG" or "Wg" or "WorldGuard" or "worldguard" or "Worldguard":
  1537. if player has permissions "ultimateclans.worldguard" or "ultimateclans.admin":
  1538. player cannot build at block under player:
  1539. send "%{tag}% &cNie mozna tutaj stworzyc terenu gildii! Teren pod Toba jest juz zabezpieczony"
  1540. stop
  1541. player cannot build at block {ultimateclans.worldguard.size} meters northwest:
  1542. send "%{tag}% &cNie mozna tutaj stworzyc terenu gildii! Teren na polnocny-zachod stad jest juz zabezpieczony"
  1543. stop
  1544. player cannot build at block {ultimateclans.worldguard.size} meters north:
  1545. send "%{tag}% &cNie mozna tutaj stworzyc terenu gildii! Teren na polnoc stad jest juz zabezpieczony"
  1546. stop
  1547. player cannot build at block {ultimateclans.worldguard.size} meters northeast:
  1548. send "%{tag}% &cNie mozna tutaj stworzyc terenu gildii! Teren na polnocny-wschod stad jest juz zajety"
  1549. stop
  1550. player cannot build at block {ultimateclans.worldguard.size} meters west:
  1551. send "%{tag}% &cNie mozna tutaj stworzyc terenu gildii! Teren na zachod stad jest juz zajety"
  1552. stop
  1553. player cannot build at block {ultimateclans.worldguard.size} meters east:
  1554. send "%{tag}% &cNie mozna tutaj stworzyc terenu gildii! Teren na wschod stad jest juz zajety"
  1555. stop
  1556. player cannot build at block {ultimateclans.worldguard.size} meters southwest:
  1557. send "%{tag}% &cNie mozna tutaj stworzyc terenu gildii! Teren na poludniowy-zachod stad jest juz zajety"
  1558. stop
  1559. player cannot build at block {ultimateclans.worldguard.size} meters south:
  1560. send "%{tag}% &cNie mozna tutaj stworzyc terenu gildii! Teren na poludnie stad jest juz zajety"
  1561. stop
  1562. player cannot build at block {ultimateclans.worldguard.size} meters southeast:
  1563. send "%{tag}% &cNie mozna tutaj stworzyc terenu gildii! Teren na poludniowy-wschod stad jest juz zajety"
  1564. stop
  1565. send "%{tag}% Zabezpieczenie &8- &aTworzenie ..."
  1566. make console execute command "pex user %name of player% add worldguard.*"
  1567. make console execute command "pex user %name of player% add worldedit.*"
  1568. wait 1 tick
  1569. make player execute command "//pos1"
  1570. make player execute command "//pos2"
  1571. wait 1 tick
  1572. make player execute command "//expand %{ultimateclans.worldguard.size}% n"
  1573. make player execute command "//expand %{ultimateclans.worldguard.size}% s"
  1574. make player execute command "//expand %{ultimateclans.worldguard.size}% w"
  1575. make player execute command "//expand %{ultimateclans.worldguard.size}% e"
  1576. make player execute command "//expand vert"
  1577. wait 1 tick
  1578. make player execute command "/rg define clans-%arg 2%"
  1579. set {ultimateclans.clan.%{ultimateclans.%name of player%.owner.clanname}%.claimset} to true
  1580. wait 1 tick
  1581. make console execute command "pex user %name of player% remove worldguard.*"
  1582. make console execute command "pex user %name of player% remove worldedit.*"
  1583. if {ultimateclans.tag} is true:
  1584. make console execute command "pex user %name of player% add NametagEdit.*"
  1585. wait 1 tick
  1586. make player execute command "ne prefix %name of player% &6[%arg 3%]&f"
  1587. make console execute command "pex user %name of player% remove NametagEdit.*"
  1588. make console execute command "rg addowner -w %world of player% clans-%arg 2% %name of player%"
  1589. make console execute command "rg setpriority -w %world of player% clans-%arg 2% 1"
  1590. if {ultimateclans.claim.wg.greeting} is true:
  1591. make console execute command "rg flag -w %world of player% clans-%arg 2% greeting &7Obecny teren nalezy do gildii: &f[&g%arg 2%&f]"
  1592. if {ultimateclans.claim.wg.farewell} is true:
  1593. make console execute command "rg flag -w %world of player% clans-%arg 2% farewell &7Opuszczono teren gildii: &f[&g%arg 2%&f]"
  1594. if {ultimateclans.claim.wg.chest} is true:
  1595. make console execute command "rg flag -w %world of player% clans-%arg 2% chest-access deny"
  1596. if {ultimateclans.claim.wg.chest} is false:
  1597. make console execute command "rg flag -w %world of player% clans-%arg 2% chest-access allow"
  1598. set {ultimateclans.clan.%arg 2%.claim.point.center} to location of player
  1599. loop 100 times:
  1600. send " "
  1601. send "%{tag}% Zabezpieczenie &8-&a Otrzymano teren!"
  1602. if {ultimateclans.setblock} is true:
  1603. set block under player to {@claim.setblock.type}
  1604. set {ultimateclans.clan.%arg 2%.claim.point} to location of player
  1605. add arg 2 to {ultimateclans.clanlist::*}
  1606. set {ultimateclans.%name of player%.owner.clanname} to arg 2
  1607. add arg 3 to {ultimateclans.tagclanlist::*}
  1608. set {ultimateclans.%name of player%.owner.tag} to arg 3
  1609. set {ultimateclans.%name of player%.owner} to true
  1610. set {ultimateclans.%name of player%.owner.name} to player
  1611. set {ultimateclans.clan.%arg 2%.tag} to arg 3
  1612. set {ultimateclans.clan.%arg 2%.pvp} to {@pvp}
  1613. set {ultimateclans.clan.%arg 2%.name} to arg 2
  1614. set {ultimateclans.clan.%arg 3%.tag.fullname} to arg 2
  1615. set {ultimateclans.clan.%arg 3%.tagauth} to arg 3
  1616. set {ultimateclans.clan.%arg 2%.ownername} to player
  1617. set {ultimateclans.%arg 2%.member-number} to 0
  1618. set {ultimateclans.clan.%arg 2%.ownername} to player
  1619. add 1 to {ultimateclans.%arg 2%.member-number}
  1620. set {ultimateclans.clan.%arg 2%.killall} to 0
  1621. set {ultimateclans.clan.%arg 2%.deathall} to 0
  1622. add player to {ultimateclans.%arg 2%.members::*}
  1623. set {ultimateclans.clan.%arg 2%.claimset} to false
  1624. send "%{tag}% &aStworzono gildie o nazwie: &7%arg 2%&a i tagu: &7%arg 3%"
  1625. broadcast "%{tag}% &aGracz: &7%name of player% &astworzyl gildie o nazwie: &7%arg 2% &ai tagu: &7%arg 3%"
  1626. stop
  1627. else:
  1628. send "%{tag}% &cBlad! &8-&7 Skontaktuj sie z administratorem!"
  1629. stop
  1630. else:
  1631. send "%{tag}% &cJestes zbyt blisko spawnu!"
  1632. stop
  1633. else:
  1634. send "%{tag}% &cBlad! &8-&7 Skontaktuj sie z administratorem! Nieustawiono spawnpoint'u"
  1635. stop
  1636. else:
  1637. add arg 2 to {ultimateclans.clanlist::*}
  1638. set {ultimateclans.%name of player%.owner.clanname} to arg 2
  1639. add arg 3 to {ultimateclans.tagclanlist::*}
  1640. set {ultimateclans.%name of player%.owner.tag} to arg 3
  1641. set {ultimateclans.%name of player%.owner} to true
  1642. set {ultimateclans.%name of player%.owner.name} to player
  1643. set {ultimateclans.clan.%arg 2%.tag} to arg 3
  1644. set {ultimateclans.clan.%arg 2%.name} to arg 2
  1645. set {ultimateclans.clan.%arg 2%.pvp} to {@pvp}
  1646. set {ultimateclans.clan.%arg 3%.tag.fullname} to arg 2
  1647. set {ultimateclans.clan.%arg 3%.tagauth} to arg 3
  1648. set {ultimateclans.clan.%arg 2%.ownername} to player
  1649. set {ultimateclans.%arg 2%.member-number} to 0
  1650. set {ultimateclans.clan.%arg 2%.ownername} to player
  1651. add 1 to {ultimateclans.%arg 2%.member-number}
  1652. set {ultimateclans.clan.%arg 2%.killall} to 0
  1653. set {ultimateclans.clan.%arg 2%.deathall} to 0
  1654. add player to {ultimateclans.%arg 2%.members::*}
  1655. set {ultimateclans.clan.%{ultimateclans.%name of player%.owner.clanname}%.claimset} to false
  1656. send "%{tag}% &aStworzono gildie o nazwie: &7%arg 2%&a i tagu: &7%arg 3%"
  1657. broadcast "%{tag}% &aGracz: &7%name of player% &astworzyl gildie o nazwie: &7%arg 2% &ai tagu: &7%arg 3%"
  1658. stop
  1659. if {ultimateclans.paymoney.enable} is true:
  1660. if {ultimateclans.vault} is true:
  1661. if {ultimateclans.%name of player%.member} is true:
  1662. send "%{tag}% &cJestes juz w gildii!"
  1663. stop trigger
  1664. if {ultimateclans.%name of player%.owner} is true:
  1665. send "%{tag}% &cMasz juz gildie!"
  1666. stop trigger
  1667. if {ultimateclans.clan.%arg 2%.tag} is set:
  1668. send "%{tag}% &cJest juz taka gildia!"
  1669. stop trigger
  1670. if {ultimateclans.clan.%arg 3%.tagauth} is set:
  1671. send "%{tag}% &cJest juz gildia! z takim tagiem!"
  1672. stop trigger
  1673. else:
  1674. if {ultimateclans.autoclaim.enable} is true:
  1675. if {ultimateclans.spawn.%world%} is set:
  1676. if distance between {ultimateclans.spawn.%world%} and location of player is greater than {@spawn.distance}+{claim.size}/2:
  1677. if {ultimateclans.claim.method} is "chunk":
  1678. if {ultimateclans.chunk::%chunk at player%} is not set:
  1679. set {ultimateclans.chunk::%chunk at player%} to arg 2
  1680. if {ultimateclans.setblock} is true:
  1681. set block under player to {@claim.setblock.type}
  1682. send "%{tag}% Zabezpieczenie &8-&a Otrzymano teren!"
  1683. set {ultimateclans.clan.%arg 2%.claim.point} to location of player
  1684. add arg 2 to {ultimateclans.clanlist::*}
  1685. set {ultimateclans.%name of player%.owner.clanname} to arg 2
  1686. add arg 3 to {ultimateclans.tagclanlist::*}
  1687. set {ultimateclans.%name of player%.owner.tag} to arg 3
  1688. set {ultimateclans.%name of player%.owner} to true
  1689. set {ultimateclans.%name of player%.owner.name} to player
  1690. set {ultimateclans.clan.%arg 2%.tag} to arg 3
  1691. set {ultimateclans.clan.%arg 2%.name} to arg 2
  1692. set {ultimateclans.clan.%arg 2%.pvp} to {@pvp}
  1693. set {ultimateclans.clan.%arg 3%.tag.fullname} to arg 2
  1694. set {ultimateclans.clan.%arg 3%.tagauth} to arg 3
  1695. set {ultimateclans.clan.%arg 2%.ownername} to player
  1696. set {ultimateclans.%arg 2%.member-number} to 0
  1697. set {ultimateclans.clan.%arg 2%.ownername} to player
  1698. add 1 to {ultimateclans.%arg 2%.member-number}
  1699. set {ultimateclans.clan.%arg 2%.killall} to 0
  1700. set {ultimateclans.clan.%arg 2%.deathall} to 0
  1701. add player to {ultimateclans.%arg 2%.members::*}
  1702. send "%{tag}% &aStworzono gildie o nazwie: &7%arg 2%&a i tagu: &7%arg 3%"
  1703. broadcast "%{tag}% &aGracz: &7%name of player% &astworzyl gildie o nazwie: &7%arg 2% &ai tagu: &7%arg 3%"
  1704. stop
  1705. else:
  1706. send "%{tag}% &cTo miejsce ma juz inna gildia"
  1707. stop
  1708. if {ultimateclans.claim.method} is "wg" or "WG" or "Wg" or "WorldGuard" or "worldguard" or "Worldguard":
  1709. if player has permissions "ultimateclans.worldguard" or "ultimateclans.admin":
  1710. player cannot build at block under player:
  1711. send "%{tag}% &cNie mozna tutaj stworzyc terenu gildii! Teren pod Toba jest juz zabezpieczony"
  1712. stop
  1713. player cannot build at block {ultimateclans.worldguard.size} meters northwest:
  1714. send "%{tag}% &cNie mozna tutaj stworzyc terenu gildii! Teren na polnocny-zachod stad jest juz zabezpieczony"
  1715. stop
  1716. player cannot build at block {ultimateclans.worldguard.size} meters north:
  1717. send "%{tag}% &cNie mozna tutaj stworzyc terenu gildii! Teren na polnoc stad jest juz zabezpieczony"
  1718. stop
  1719. player cannot build at block {ultimateclans.worldguard.size} meters northeast:
  1720. send "%{tag}% &cNie mozna tutaj stworzyc terenu gildii! Teren na polnocny-wschod stad jest juz zajety"
  1721. stop
  1722. player cannot build at block {ultimateclans.worldguard.size} meters west:
  1723. send "%{tag}% &cNie mozna tutaj stworzyc terenu gildii! Teren na zachod stad jest juz zajety"
  1724. stop
  1725. player cannot build at block {ultimateclans.worldguard.size} meters east:
  1726. send "%{tag}% &cNie mozna tutaj stworzyc terenu gildii! Teren na wschod stad jest juz zajety"
  1727. stop
  1728. player cannot build at block {ultimateclans.worldguard.size} meters southwest:
  1729. send "%{tag}% &cNie mozna tutaj stworzyc terenu gildii! Teren na poludniowy-zachod stad jest juz zajety"
  1730. stop
  1731. player cannot build at block {ultimateclans.worldguard.size} meters south:
  1732. send "%{tag}% &cNie mozna tutaj stworzyc terenu gildii! Teren na poludnie stad jest juz zajety"
  1733. stop
  1734. player cannot build at block {ultimateclans.worldguard.size} meters southeast:
  1735. send "%{tag}% &cNie mozna tutaj stworzyc terenu gildii! Teren na poludniowy-wschod stad jest juz zajety"
  1736. stop
  1737. send "%{tag}% Zabezpieczenie &8- &aTworzenie ..."
  1738. make console execute command "pex user %name of player% add worldguard.*"
  1739. make console execute command "pex user %name of player% add worldedit.*"
  1740. wait 1 tick
  1741. make player execute command "//pos1"
  1742. make player execute command "//pos2"
  1743. wait 1 tick
  1744. make player execute command "//expand %{ultimateclans.worldguard.size}% n"
  1745. make player execute command "//expand %{ultimateclans.worldguard.size}% s"
  1746. make player execute command "//expand %{ultimateclans.worldguard.size}% w"
  1747. make player execute command "//expand %{ultimateclans.worldguard.size}% e"
  1748. make player execute command "//expand vert"
  1749. wait 1 tick
  1750. make player execute command "/rg define clans-%arg 2%"
  1751. set {ultimateclans.clan.%{ultimateclans.%name of player%.owner.clanname}%.claimset} to true
  1752. wait 1 tick
  1753. make console execute command "pex user %name of player% remove worldguard.*"
  1754. make console execute command "pex user %name of player% remove worldedit.*"
  1755. if {ultimateclans.tag} is true:
  1756. make console execute command "pex user %name of player% add NametagEdit.*"
  1757. wait 1 tick
  1758. make player execute command "ne prefix %name of player% &6[%arg 3%]&f"
  1759. make console execute command "pex user %name of player% remove NametagEdit.*"
  1760. make console execute command "rg addowner -w %world of player% clans-%arg 2% %name of player%"
  1761. make console execute command "rg setpriority -w %world of player% clans-%arg 2% 1"
  1762. if {ultimateclans.claim.wg.greeting} is true:
  1763. make console execute command "rg flag -w %world of player% clans-%arg 2% greeting &7Obecny teren nalezy do gildii: &f[&g%arg 2%&f]"
  1764. if {ultimateclans.claim.wg.farewell} is true:
  1765. make console execute command "rg flag -w %world of player% clans-%arg 2% farewell &7Opuszczono teren gildii: &f[&g%arg 2%&f]"
  1766. if {ultimateclans.claim.wg.chest} is true:
  1767. make console execute command "rg flag -w %world of player% clans-%arg 2% chest-access deny"
  1768. if {ultimateclans.claim.wg.chest} is false:
  1769. make console execute command "rg flag -w %world of player% clans-%arg 2% chest-access allow"
  1770. set {ultimateclans.clan.%arg 2%.claim.point.center} to location of player
  1771. loop 100 times:
  1772. send " "
  1773. send "%{tag}% Zabezpieczenie &8-&a Otrzymano teren!"
  1774. if {ultimateclans.setblock} is true:
  1775. set block under player to {@claim.setblock.type}
  1776. set {ultimateclans.clan.%arg 2%.claim.point} to location of player
  1777. add arg 2 to {ultimateclans.clanlist::*}
  1778. set {ultimateclans.%name of player%.owner.clanname} to arg 2
  1779. add arg 3 to {ultimateclans.tagclanlist::*}
  1780. set {ultimateclans.%name of player%.owner.tag} to arg 3
  1781. set {ultimateclans.%name of player%.owner} to true
  1782. set {ultimateclans.%name of player%.owner.name} to name of player
  1783. set {ultimateclans.clan.%arg 2%.tag} to arg 3
  1784. set {ultimateclans.clan.%arg 2%.pvp} to {@pvp}
  1785. set {ultimateclans.clan.%arg 2%.name} to arg 2
  1786. set {ultimateclans.clan.%arg 3%.tag.fullname} to arg 2
  1787. set {ultimateclans.clan.%arg 3%.tagauth} to arg 3
  1788. set {ultimateclans.clan.%arg 2%.ownername} to name of player
  1789. set {ultimateclans.%arg 2%.member-number} to 0
  1790. set {ultimateclans.clan.%arg 2%.ownername} to player
  1791. add 1 to {ultimateclans.%arg 2%.member-number}
  1792. set {ultimateclans.clan.%arg 2%.killall} to 0
  1793. set {ultimateclans.clan.%arg 2%.deathall} to 0
  1794. add name of player to {ultimateclans.%arg 2%.members::*}
  1795. set {ultimateclans.clan.%arg 2%.claimset} to false
  1796. send "%{tag}% &aStworzono gildie o nazwie: &7%arg 2%&a i tagu: &7%arg 3%"
  1797. broadcast "%{tag}% &aGracz: &7%name of player% &astworzyl gildie o nazwie: &7%arg 2% &ai tagu: &7%arg 3%"
  1798. stop
  1799. else:
  1800. send "%{tag}% &cBlad! &8-&7 Skontaktuj sie z administratorem! Powod: Brak uprawnien - ultimateclans.worldguard"
  1801. stop
  1802. else:
  1803. send "%{tag}% &cJestes zbyt blisko spawnu!"
  1804. stop
  1805. else:
  1806. send "%{tag}% &cBlad! &8-&7 Skontaktuj sie z administratorem! Nieustawiono spawnpoint'u"
  1807. stop
  1808. else:
  1809. add arg 2 to {ultimateclans.clanlist::*}
  1810. set {ultimateclans.%name of player%.owner.clanname} to arg 2
  1811. add arg 3 to {ultimateclans.tagclanlist::*}
  1812. set {ultimateclans.%name of player%.owner.tag} to arg 3
  1813. set {ultimateclans.%name of player%.owner} to true
  1814. set {ultimateclans.%name of player%.owner.name} to player
  1815. set {ultimateclans.clan.%arg 2%.tag} to arg 3
  1816. set {ultimateclans.clan.%arg 2%.name} to arg 2
  1817. set {ultimateclans.clan.%arg 2%.pvp} to {@pvp}
  1818. set {ultimateclans.clan.%arg 3%.tag.fullname} to arg 2
  1819. set {ultimateclans.clan.%arg 3%.tagauth} to arg 3
  1820. set {ultimateclans.clan.%arg 2%.ownername} to player
  1821. set {ultimateclans.%arg 2%.member-number} to 0
  1822. set {ultimateclans.clan.%arg 2%.ownername} to player
  1823. add 1 to {ultimateclans.%arg 2%.member-number}
  1824. set {ultimateclans.clan.%arg 2%.killall} to 0
  1825. set {ultimateclans.clan.%arg 2%.deathall} to 0
  1826. add player to {ultimateclans.%arg 2%.members::*}
  1827. wait 1 tick
  1828. set {ultimateclans.clan.%{ultimateclans.%name of player%.owner.clanname}%.claimset} to false
  1829. send "%{tag}% &aStworzono gildie o nazwie: &7%arg 2%&a i tagu: &7%arg 3%"
  1830. broadcast "%{tag}% &aGracz: &7%name of player% &astworzyl gildie o nazwie: &7%arg 2% &ai tagu: &7%arg 3%"
  1831. stop
  1832. else:
  1833. send "%{tag}% &cBlad! Skontaktuj sie z administratorem. Powod: &7Wymagany plugin Vault"
  1834. stop
  1835. else:
  1836. if {ultimateclans.autoclaim.enable} is true:
  1837. if {ultimateclans.spawn.%world%} is set:
  1838. if distance between {ultimateclans.spawn.%world%} and location of player is greater than {@spawn.distance}+{claim.size}/2:
  1839. if {ultimateclans.claim.method} is "chunk":
  1840. if {ultimateclans.chunk::%chunk at player%} is not set:
  1841. set {ultimateclans.chunk::%chunk at player%} to arg 2
  1842. if {ultimateclans.setblock} is true:
  1843. set block under player to {@claim.setblock.type}
  1844. send "%{tag}% Zabezpieczenie &8-&a Otrzymano teren!"
  1845. set {ultimateclans.clan.%arg 2%.claim.point} to location of player
  1846. add arg 2 to {ultimateclans.clanlist::*}
  1847. set {ultimateclans.%name of player%.owner.clanname} to arg 2
  1848. add arg 3 to {ultimateclans.tagclanlist::*}
  1849. set {ultimateclans.%name of player%.owner.tag} to arg 3
  1850. set {ultimateclans.%name of player%.owner} to true
  1851. set {ultimateclans.%name of player%.owner.name} to player
  1852. set {ultimateclans.clan.%arg 2%.tag} to arg 3
  1853. set {ultimateclans.clan.%arg 2%.name} to arg 2
  1854. set {ultimateclans.clan.%arg 2%.pvp} to {@pvp}
  1855. set {ultimateclans.clan.%arg 3%.tag.fullname} to arg 2
  1856. set {ultimateclans.clan.%arg 3%.tagauth} to arg 3
  1857. set {ultimateclans.clan.%arg 2%.ownername} to player
  1858. set {ultimateclans.%arg 2%.member-number} to 0
  1859. set {ultimateclans.clan.%arg 2%.ownername} to player
  1860. add 1 to {ultimateclans.%arg 2%.member-number}
  1861. set {ultimateclans.clan.%arg 2%.killall} to 0
  1862. set {ultimateclans.clan.%arg 2%.deathall} to 0
  1863. add player to {ultimateclans.%arg 2%.members::*}
  1864. send "%{tag}% &aStworzono gildie o nazwie: &7%arg 2%&a i tagu: &7%arg 3%"
  1865. broadcast "%{tag}% &aGracz: &7%name of player% &astworzyl gildie o nazwie: &7%arg 2% &ai tagu: &7%arg 3%"
  1866. stop
  1867. else:
  1868. send "%{tag}% &cTo miejsce ma juz inna gildia"
  1869. stop
  1870. if {ultimateclans.claim.method} is "wg" or "WG" or "Wg" or "WorldGuard" or "worldguard" or "Worldguard":
  1871. if player has permissions "ultimateclans.worldguard" or "ultimateclans.admin":
  1872. player cannot build at block under player:
  1873. send "%{tag}% &cNie mozna tutaj stworzyc terenu gildii! Teren pod Toba jest juz zabezpieczony"
  1874. stop
  1875. player cannot build at block {ultimateclans.worldguard.size} meters northwest:
  1876. send "%{tag}% &cNie mozna tutaj stworzyc terenu gildii! Teren na polnocny-zachod stad jest juz zabezpieczony"
  1877. stop
  1878. player cannot build at block {ultimateclans.worldguard.size} meters north:
  1879. send "%{tag}% &cNie mozna tutaj stworzyc terenu gildii! Teren na polnoc stad jest juz zabezpieczony"
  1880. stop
  1881. player cannot build at block {ultimateclans.worldguard.size} meters northeast:
  1882. send "%{tag}% &cNie mozna tutaj stworzyc terenu gildii! Teren na polnocny-wschod stad jest juz zajety"
  1883. stop
  1884. player cannot build at block {ultimateclans.worldguard.size} meters west:
  1885. send "%{tag}% &cNie mozna tutaj stworzyc terenu gildii! Teren na zachod stad jest juz zajety"
  1886. stop
  1887. player cannot build at block {ultimateclans.worldguard.size} meters east:
  1888. send "%{tag}% &cNie mozna tutaj stworzyc terenu gildii! Teren na wschod stad jest juz zajety"
  1889. stop
  1890. player cannot build at block {ultimateclans.worldguard.size} meters southwest:
  1891. send "%{tag}% &cNie mozna tutaj stworzyc terenu gildii! Teren na poludniowy-zachod stad jest juz zajety"
  1892. stop
  1893. player cannot build at block {ultimateclans.worldguard.size} meters south:
  1894. send "%{tag}% &cNie mozna tutaj stworzyc terenu gildii! Teren na poludnie stad jest juz zajety"
  1895. stop
  1896. player cannot build at block {ultimateclans.worldguard.size} meters southeast:
  1897. send "%{tag}% &cNie mozna tutaj stworzyc terenu gildii! Teren na poludniowy-wschod stad jest juz zajety"
  1898. stop
  1899. send "%{tag}% Zabezpieczenie &8- &aTworzenie ..."
  1900. make console execute command "pex user %name of player% add worldguard.*"
  1901. make console execute command "pex user %name of player% add worldedit.*"
  1902. wait 1 tick
  1903. make player execute command "//pos1"
  1904. make player execute command "//pos2"
  1905. wait 1 tick
  1906. make player execute command "//expand %{ultimateclans.worldguard.size}% n"
  1907. make player execute command "//expand %{ultimateclans.worldguard.size}% s"
  1908. make player execute command "//expand %{ultimateclans.worldguard.size}% w"
  1909. make player execute command "//expand %{ultimateclans.worldguard.size}% e"
  1910. make player execute command "//expand vert"
  1911. wait 1 tick
  1912. make player execute command "/rg define clans-%arg 2%"
  1913. set {ultimateclans.clan.%{ultimateclans.%name of player%.owner.clanname}%.claimset} to true
  1914. wait 1 tick
  1915. make console execute command "pex user %name of player% remove worldguard.*"
  1916. make console execute command "pex user %name of player% remove worldedit.*"
  1917. if {ultimateclans.tag} is true:
  1918. make console execute command "pex user %name of player% add NametagEdit.*"
  1919. wait 1 tick
  1920. make player execute command "ne prefix %name of player% &6[%arg 3%]&f"
  1921. make console execute command "pex user %name of player% remove NametagEdit.*"
  1922. make console execute command "rg addowner -w %world of player% clans-%arg 2% %name of player%"
  1923. make console execute command "rg setpriority -w %world of player% clans-%arg 2% 1"
  1924. if {ultimateclans.claim.wg.greeting} is true:
  1925. make console execute command "rg flag -w %world of player% clans-%arg 2% greeting &7Obecny teren nalezy do gildii: &f[&g%arg 2%&f]"
  1926. if {ultimateclans.claim.wg.farewell} is true:
  1927. make console execute command "rg flag -w %world of player% clans-%arg 2% farewell &7Opuszczono teren gildii: &f[&g%arg 2%&f]"
  1928. if {ultimateclans.claim.wg.chest} is true:
  1929. make console execute command "rg flag -w %world of player% clans-%arg 2% chest-access deny"
  1930. if {ultimateclans.claim.wg.chest} is false:
  1931. make console execute command "rg flag -w %world of player% clans-%arg 2% chest-access allow"
  1932. set {ultimateclans.clan.%arg 2%.claim.point.center} to location of player
  1933. loop 100 times:
  1934. send " "
  1935. send "%{tag}% Zabezpieczenie &8-&a Otrzymano teren!"
  1936. if {ultimateclans.setblock} is true:
  1937. set block under player to {@claim.setblock.type}
  1938. set {ultimateclans.clan.%arg 2%.claim.point} to location of player
  1939. add arg 2 to {ultimateclans.clanlist::*}
  1940. set {ultimateclans.%name of player%.owner.clanname} to arg 2
  1941. add arg 3 to {ultimateclans.tagclanlist::*}
  1942. set {ultimateclans.%name of player%.owner.tag} to arg 3
  1943. set {ultimateclans.%name of player%.owner} to true
  1944. set {ultimateclans.%name of player%.owner.name} to name of player
  1945. set {ultimateclans.clan.%arg 2%.tag} to arg 3
  1946. set {ultimateclans.clan.%arg 2%.name} to arg 2
  1947. set {ultimateclans.clan.%arg 2%.pvp} to {@pvp}
  1948. set {ultimateclans.clan.%arg 3%.tag.fullname} to arg 2
  1949. set {ultimateclans.clan.%arg 3%.tagauth} to arg 3
  1950. set {ultimateclans.clan.%arg 2%.ownername} to name of player
  1951. set {ultimateclans.%arg 2%.member-number} to 0
  1952. set {ultimateclans.clan.%arg 2%.ownername} to player
  1953. add 1 to {ultimateclans.%arg 2%.member-number}
  1954. set {ultimateclans.clan.%arg 2%.killall} to 0
  1955. set {ultimateclans.clan.%arg 2%.deathall} to 0
  1956. add name of player to {ultimateclans.%arg 2%.members::*}
  1957. send "%{tag}% &aStworzono gildie o nazwie: &7%arg 2%&a i tagu: &7%arg 3%"
  1958. broadcast "%{tag}% &aGracz: &7%name of player% &astworzyl gildie o nazwie: &7%arg 2% &ai tagu: &7%arg 3%"
  1959. stop
  1960. else:
  1961. send "%{tag}% &cBlad! &8-&7 Skontaktuj sie z administratorem!"
  1962. stop
  1963. else:
  1964. send "%{tag}% &cJestes zbyt blisko spawnu!"
  1965. stop
  1966. else:
  1967. send "%{tag}% &cBlad! &8-&7 Skontaktuj sie z administratorem! Nieustawiono spawnpoint'u"
  1968. stop
  1969. else:
  1970. add arg 2 to {ultimateclans.clanlist::*}
  1971. set {ultimateclans.%name of player%.owner.clanname} to arg 2
  1972. add arg 3 to {ultimateclans.tagclanlist::*}
  1973. set {ultimateclans.%name of player%.owner.tag} to arg 3
  1974. set {ultimateclans.%name of player%.owner} to true
  1975. set {ultimateclans.%name of player%.owner.name} to player
  1976. set {ultimateclans.clan.%arg 2%.tag} to arg 3
  1977. set {ultimateclans.clan.%arg 2%.name} to arg 2
  1978. set {ultimateclans.clan.%arg 2%.pvp} to {@pvp}
  1979. set {ultimateclans.clan.%arg 3%.tag.fullname} to arg 2
  1980. set {ultimateclans.clan.%arg 3%.tagauth} to arg 3
  1981. set {ultimateclans.clan.%arg 2%.ownername} to player
  1982. set {ultimateclans.%arg 2%.member-number} to 0
  1983. set {ultimateclans.clan.%arg 2%.ownername} to player
  1984. add 1 to {ultimateclans.%arg 2%.member-number}
  1985. set {ultimateclans.clan.%arg 2%.killall} to 0
  1986. set {ultimateclans.clan.%arg 2%.deathall} to 0
  1987. add player to {ultimateclans.%arg 2%.members::*}
  1988. set {ultimateclans.clan.%{ultimateclans.%name of player%.owner.clanname}%.claimset} to false
  1989. send "%{tag}% &aStworzono gildie o nazwie: &7%arg 2%&a i tagu: &7%arg 3%"
  1990. broadcast "%{tag}% &aGracz: &7%name of player% &astworzyl gildie o nazwie: &7%arg 2% &ai tagu: &7%arg 3%"
  1991. stop
  1992. else:
  1993. send "%{tag}% &cNie podano tagu gildi!"
  1994. stop
  1995. if {ultimateclans.level.take.xxx} is true:
  1996. reduce player's level by {@level.create}
  1997. stop
  1998. # '
  1999. else:
  2000. send "%{tag}% &cNie podano nazwy gildii!"
  2001. stop
  2002.  
  2003. else:
  2004. send "&cNie masz uprawnien do uzywania tej komendy"
  2005. stop
  2006. else:
  2007. send "&cNa tym swiecie nie mozna zalozyc gildii!"
  2008. stop
  2009. if arg 1 is "usun" or "delete":
  2010. if player has permissions "ultimateclans.default" or "ultimateclans.admin":
  2011. if {ultimateclans.%name of player%.owner} is true:
  2012. set {ultimateclans.%name of player%.delete.confirm} to true
  2013. if {ultimateclans.lang} is "pl":
  2014. send "%{tag}% &cUwaga! &7Wlaczono procedure usuwania gildii. Aby ostatecznie rozwiazac gildie wpisz &c/{@prefix} potwierdz&7, aby anulowac uzyj &c/{@prefix} anuluj"
  2015. stop
  2016. if {ultimateclans.lang} is "eng":
  2017. send "%{tag}% &cUwaga! &7Wlaczono procedure usuwania gildii. Aby ostatecznie rozwiazac gildie wpisz &c/{@prefix} confirm&7, aby anulowac uzyj &c/{@prefix} cancel"
  2018. stop
  2019. else:
  2020. send "%{tag}% &cNie jestes zalozycielem zadnego klanu"
  2021. else:
  2022. send "&cNie masz uprawnien do uzywania tej komendy"
  2023. stop
  2024. if arg 1 is "potwierdz" or "confirm":
  2025. if player has permissions "ultimateclans.default" or "ultimateclans.admin":
  2026. if {ultimateclans.%name of player%.delete.confirm} is true:
  2027. if {ultimateclans.claim.method} is "chunk" or "Chunk":
  2028. if {ultimateclans.chunk::%chunk at player%} is {ultimateclans.%name of player%.owner.clanname}:
  2029. delete {ultimateclans.chunk::%chunk at player%}
  2030. loop {ultimateclans.clanlist::*}:
  2031. remove {ultimateclans.%name of player%.owner.clanname} from {ultimateclans.clanlist::*}
  2032. loop {ultimateclans.tagclanlist::*}:
  2033. remove {ultimateclans.%name of player%.owner.tag} from {ultimateclans.tagclanlist::*}
  2034. wait 1 tick
  2035. set {ultimateclans.%name of player%.owner} to false
  2036. clear {ultimateclans.clan.%{ultimateclans.%name of player%.owner.clanname}%.tag}
  2037. clear {ultimateclans.clan.%{ultimateclans.%name of player%.owner.clanname}%.name}
  2038. if {ultimateclans.setblock} is true:
  2039. set block under {ultimateclans.clan.%{ultimateclans.%name of player%.owner.clanname}%.claim.point.center} to air
  2040. clear {ultimateclans.clan.%{ultimateclans.%name of player%.owner.clanname}%.claim.point}
  2041. clear {ultimateclans.clan.%{ultimateclans.%name of player%.owner.clanname}%.claim.point.center}
  2042. clear {ultimateclans.clan.%{ultimateclans.%name of player%.owner.tag}%.tagauth}
  2043. clear {ultimateclans.clan.%{ultimateclans.%name of player%.owner.tag}%.tag.fullname}
  2044. clear {ultimateclans.clan.%{ultimateclans.%name of player%.owner.tag}%.ownername}
  2045. clear {ultimateclans.%{ultimateclans.%name of player%.owner.clanname}%.member-number}
  2046. clear {ultimateclans.clan.%{ultimateclans.%name of player%.owner.clanname}%.claim.point}
  2047. loop {ultimateclans.%{ultimateclans.%name of player%.owner.clanname}%.members::*}:
  2048. set {ultimateclans.%loop-value%.member} to false
  2049. delete {ultimateclans.%loop-value%.clan.tag}
  2050. delete {ultimateclans.%loop-value%.ownername}
  2051. delete {ultimateclans.%loop-value%.clan.name}
  2052. delete {ultimateclans.%{ultimateclans.%name of player%.owner.clanname}%.members::*}
  2053. delete {ultimateclans.%{ultimateclans.%name of player%.owner.clanname}%.member-number}
  2054. wait 2 tick
  2055. clear {ultimateclans.%name of player%.owner.tag}
  2056. clear {ultimateclans.%name of player%.owner.clanname}
  2057. send "%{tag}% &aPomyslnie usunieto klan!"
  2058. stop
  2059. else:
  2060. send "%{tag}% &cTo nie jest teren Twojej gildii!"
  2061. stop
  2062. #
  2063. if {ultimateclans.claim.method} is "wg" or "WG" or "Wg" or "WorldGuard" or "worldguard" or "Worldguard":
  2064. broadcast "%{tag}%&cGracz: &6%name of player% &cusunal gildie: &6%{ultimateclans.%name of player%.owner.clanname}%&c!"
  2065. if player has permissions "ultimateclans.default":
  2066. make console execute command "rg remove -w %world of player% Clans-%{ultimateclans.%name of player%.owner.clanname}%"
  2067. set {ultimateclans.clan.%{ultimateclans.%name of player%.owner.clanname}%.claimset} to false
  2068. if player has permissions "ultimateclans.admin":
  2069. make console execute command "rg remove -w %world of player% Clans-%{ultimateclans.%name of player%.owner.clanname}%"
  2070. set {ultimateclans.clan.%{ultimateclans.%name of player%.owner.clanname}%.claimset} to false
  2071. loop {ultimateclans.clanlist::*}:
  2072. remove {ultimateclans.%name of player%.owner.clanname} from {ultimateclans.clanlist::*}
  2073. loop {ultimateclans.tagclanlist::*}:
  2074. remove {ultimateclans.%name of player%.owner.tag} from {ultimateclans.tagclanlist::*}
  2075. wait 1 tick
  2076. set {ultimateclans.%name of player%.owner} to false
  2077. clear {ultimateclans.clan.%{ultimateclans.%name of player%.owner.clanname}%.tag}
  2078. clear {ultimateclans.clan.%{ultimateclans.%name of player%.owner.clanname}%.name}
  2079. if {ultimateclans.setblock} is true:
  2080. set block under {ultimateclans.clan.%{ultimateclans.%name of player%.owner.clanname}%.claim.point.center} to air
  2081. clear {ultimateclans.clan.%{ultimateclans.%name of player%.owner.clanname}%.claim.point}
  2082. clear {ultimateclans.clan.%{ultimateclans.%name of player%.owner.clanname}%.claim.point.center}
  2083. clear {ultimateclans.clan.%{ultimateclans.%name of player%.owner.tag}%.tagauth}
  2084. clear {ultimateclans.clan.%{ultimateclans.%name of player%.owner.tag}%.tag.fullname}
  2085. clear {ultimateclans.clan.%{ultimateclans.%name of player%.owner.tag}%.ownername}
  2086. clear {ultimateclans.clan.%{ultimateclans.%name of player%.owner.clanname}%.claim.point}
  2087. clear {ultimateclans.%{ultimateclans.%name of player%.owner.clanname}%.member-number}
  2088. clear {ultimateclans.clan.%{ultimateclans.%name of player%.owner.clanname}%.claimset}
  2089. loop {ultimateclans.%{ultimateclans.%name of player%.owner.clanname}%.members::*}:
  2090. set {ultimateclans.%loop-value%.loop-value} to true
  2091. set {ultimateclans.%name of player%.loop-value} to false
  2092. set {ultimateclans.%loop-value%.member} to false
  2093. delete {ultimateclans.%loop-value%.clan.tag}
  2094. delete {ultimateclans.%loop-value%.ownername}
  2095. delete {ultimateclans.%loop-value%.clan.name}
  2096. if {ultimateclans.tag} is true:
  2097. make console execute command "pex user %name of player% add NametagEdit.*"
  2098. wait 1 tick
  2099. make player execute command "ne prefix %name of player% &f"
  2100. make console execute command "pex user %name of player% remove NametagEdit.*"
  2101. delete {ultimateclans.%{ultimateclans.%name of player%.owner.clanname}%.members::*}
  2102. delete {ultimateclans.%{ultimateclans.%name of player%.owner.clanname}%.member-number}
  2103. wait 2 tick
  2104. clear {ultimateclans.%name of player%.owner.tag}
  2105. clear {ultimateclans.%name of player%.owner.clanname}
  2106. loop 100 times:
  2107. send ""
  2108. send "%{tag}% &aPomyslnie usunieto klan!"
  2109. stop
  2110. else:
  2111. send "%{tag}% &cBlad! &8-&7 Skontaktuj sie z administratorem!"
  2112. stop
  2113. else:
  2114. send "%{tag}% &cNie ma zadnych dzialan do potwierdzenia!"
  2115. stop
  2116. else:
  2117. send "&cNie masz uprawnien do uzywania tej komendy"
  2118. stop
  2119. if arg 1 is "claim" or "zabezpiecz":
  2120. if player has permissions "ultimateclans.default" or "ultimateclans.admin":
  2121. if {ultimateclans.%name of player%.owner} is true:
  2122. if {ultimateclans.clan.%{ultimateclans.%name of player%.owner.clanname}%.claimset} is false:
  2123. if {ultimateclans.autoclaim.enable} is false:
  2124. if {ultimateclans.spawn.%world%} is set:
  2125. if distance between {ultimateclans.spawn.%world%} and location of player is greater than {@spawn.distance}+{claim.size}/2:
  2126. if {ultimateclans.claim.method} is "chunk" or "Chunk":
  2127. if {ultimateclans.chunk::%chunk at player%} is not set:
  2128. set {ultimateclans.chunk::%chunk at player%} to {ultimateclans.%name of player%.owner.clanname}
  2129. if {ultimateclans.setblock} is true:
  2130. set block under player to {@claim.setblock.type}
  2131. send "%{tag}% Claim &8-&a Otrzymano teren!"
  2132. stop
  2133. else:
  2134. send "%{tag}% &cTo miesjce jest juz zajete!"
  2135. stop
  2136. if {ultimateclans.claim.method} is "wg" or "WG" or "Wg" or "WorldGuard" or "worldguard" or "Worldguard":
  2137. if player has permissions "ultimateclans.worldguard" or "ultimateclans.admin":
  2138. player cannot build at block under player:
  2139. send "%{tag}% &cNie mozna tutaj stworzyc terenu gildii! Teren pod Toba jest juz zabezpieczony"
  2140. stop
  2141. player cannot build at block {ultimateclans.worldguard.size} meters northwest:
  2142. send "%{tag}% &cNie mozna tutaj stworzyc terenu gildii! Teren na polnocny-zachod stad jest juz zabezpieczony"
  2143. stop
  2144. player cannot build at block {ultimateclans.worldguard.size} meters north:
  2145. send "%{tag}% &cNie mozna tutaj stworzyc terenu gildii! Teren na polnoc stad jest juz zabezpieczony"
  2146. stop
  2147. player cannot build at block {ultimateclans.worldguard.size} meters northeast:
  2148. send "%{tag}% &cNie mozna tutaj stworzyc terenu gildii! Teren na polnocny-wschod stad jest juz zajety"
  2149. stop
  2150. player cannot build at block {ultimateclans.worldguard.size} meters west:
  2151. send "%{tag}% &cNie mozna tutaj stworzyc terenu gildii! Teren na zachod stad jest juz zajety"
  2152. stop
  2153. player cannot build at block {ultimateclans.worldguard.size} meters east:
  2154. send "%{tag}% &cNie mozna tutaj stworzyc terenu gildii! Teren na wschod stad jest juz zajety"
  2155. stop
  2156. player cannot build at block {ultimateclans.worldguard.size} meters southwest:
  2157. send "%{tag}% &cNie mozna tutaj stworzyc terenu gildii! Teren na poludniowy-zachod stad jest juz zajety"
  2158. stop
  2159. player cannot build at block {ultimateclans.worldguard.size} meters south:
  2160. send "%{tag}% &cNie mozna tutaj stworzyc terenu gildii! Teren na poludnie stad jest juz zajety"
  2161. stop
  2162. player cannot build at block {ultimateclans.worldguard.size} meters southeast:
  2163. send "%{tag}% &cNie mozna tutaj stworzyc terenu gildii! Teren na poludniowy-wschod stad jest juz zajety"
  2164. stop
  2165. send "%{tag}% Zabezpieczenie &8- &aTworzenie ..."
  2166. wait 1 tick
  2167. make console execute command "pex user %name of player% add worldguard.*"
  2168. make console execute command "pex user %name of player% add worldedit.*"
  2169. wait 1 tick
  2170. make player execute command "//pos1"
  2171. make player execute command "//pos2"
  2172. wait 1 tick
  2173. make player execute command "//expand %{ultimateclans.worldguard.size}% n"
  2174. make player execute command "//expand %{ultimateclans.worldguard.size}% s"
  2175. make player execute command "//expand %{ultimateclans.worldguard.size}% w"
  2176. make player execute command "//expand %{ultimateclans.worldguard.size}% e"
  2177. make player execute command "//expand vert"
  2178. wait 1 tick
  2179. make player execute command "/rg define clans-%{ultimateclans.%name of player%.owner.clanname}%"
  2180. set {ultimateclans.clan.%{ultimateclans.%name of player%.owner.clanname}%.claimset} to true
  2181. wait 1 tick
  2182. make console execute command "pex user %name of player% remove worldguard.*"
  2183. make console execute command "pex user %name of player% remove worldedit.*"
  2184. make console execute command "rg addowner -w %world of player% clans-%{ultimateclans.%name of player%.owner.clanname}% %name of player%"
  2185. loop {ultimateclans.%{ultimateclans.%name of player%.owner.clanname}%.members::*}:
  2186. make console execute command "rg addmember -w %world of player% clans-%{ultimateclans.%name of player%.owner.clanname}% %loop-value%"
  2187. make console execute command "rg setpriority -w %world of player% clans-%{ultimateclans.%name of player%.owner.clanname}% 1"
  2188. if {ultimateclans.claim.wg.greeting} is true:
  2189. make console execute command "rg flag -w %world of player% clans-%{ultimateclans.%name of player%.owner.clanname}% greeting &7Obecny teren nalezy do gildii: &f[&g%{ultimateclans.%name of player%.owner.clanname}%&f]"
  2190. if {ultimateclans.claim.wg.farewell} is true:
  2191. make console execute command "rg flag -w %world of player% clans-%{ultimateclans.%name of player%.owner.clanname}% farewell &7Opuszczono teren gildii: &f[&g%{ultimateclans.%name of player%.owner.clanname}%&f]"
  2192. if {ultimateclans.claim.wg.chest} is true:
  2193. make console execute command "rg flag -w %world of player% clans-%{ultimateclans.%name of player%.owner.clanname}% chest-access deny"
  2194. if {ultimateclans.claim.wg.chest} is false:
  2195. make console execute command "rg flag -w %world of player% clans-%{ultimateclans.%name of player%.owner.clanname}% chest-access allow"
  2196. set {ultimateclans.clan.%{ultimateclans.%name of player%.owner.clanname}%.claim.point.center} to location of player
  2197. if {ultimateclans.setblock} is true:
  2198. set block under player to {@claim.setblock.type}
  2199. set {ultimateclans.clan.%{ultimateclans.%name of player%.owner.clanname}%.claim.point} to location of player
  2200. loop 100 times:
  2201. send " "
  2202. send "%{tag}% Zabezpieczenie &8-&a Otrzymano teren!"
  2203. else:
  2204. send "%{tag}% &cBlad! &8-&7 Skontaktuj sie z administratorem!"
  2205. stop
  2206. else:
  2207. send "%{tag}% &cJestes zbyt blisko spawnu!"
  2208. stop
  2209. else:
  2210. send "%{tag}% &cBlad! &8-&7 Skontaktuj sie z administratorem! Nieustawiono spawnpoint'u"
  2211. stop
  2212. else:
  2213. send "%{tag}% &cClaim jest automatycznie przydzielany po zalozeniu gildii!"
  2214. stop
  2215. else:
  2216. send "%{tag}% &cTwoja gildia posiada juz claim!"
  2217. stop
  2218. else:
  2219. send "%{tag}% &cAby zajac teren musisz byc zalozycielem!"
  2220. stop
  2221. else:
  2222. send "&cNie masz uprawnien do uzywania tej komendy"
  2223. stop
  2224. if arg 1 is "unclaim" or "odbezpiecz" or "porzuc":
  2225. if player has permissions "ultimateclans.default" or "ultimateclans.admin":
  2226. if {ultimateclans.%name of player%.owner} is true:
  2227. if {ultimateclans.autoclaim.enable} is false:
  2228. if {ultimateclans.claim.method} is "chunk" or "Chunk":
  2229. if {ultimateclans.chunk::%chunk at player%} is not set:
  2230. send "%{tag}% &cTen teren nie jest zabezpieczony"
  2231. stop
  2232. if {ultimateclans.chunk::%chunk at player%} is {ultimateclans.%name of player%.owner.clanname}:
  2233. delete {ultimateclans.chunk::%chunk at player%}
  2234. set block under {ultimateclans.clan.%{ultimateclans.%name of player%.owner.clanname}%.claim.point} to air
  2235. send "%{tag}% &aPomyslnie usunieto claim gildii!"
  2236. stop
  2237. else:
  2238. send "%{tag}% &cTo nie jest teren Twojej gildii!"
  2239. stop
  2240. if {ultimateclans.claim.method} is "wg" or "WG" or "Wg" or "WorldGuard" or "worldguard" or "Worldguard":
  2241. if player has permissions "ultimateclans.worldguard" or "ultimateclans.admin":
  2242. make console execute command "rg remove -w %world of player% Clans-%{ultimateclans.%name of player%.owner.clanname}%"
  2243. set {ultimateclans.clan.%{ultimateclans.%name of player%.owner.clanname}%.claimset} to false
  2244. send "%{tag}% &aPomyslnie usunieto claim gildii!"
  2245. clear {ultimateclans.clan.%{ultimateclans.%name of player%.owner.clanname}%.claim.point.center}
  2246. if {ultimateclans.setblock} is true:
  2247. set block under {ultimateclans.clan.%{ultimateclans.%name of player%.owner.clanname}%.claim.point} to air
  2248. set block under {ultimateclans.clan.%{ultimateclans.%name of player%.owner.clanname}%.claim.point} to air
  2249. stop
  2250. else:
  2251. send "%{tag}% Zabezpieczenie &8-&c Wlaczony auto claim, aby pozbyc sie terenu musisz usunac gildie!"
  2252. stop
  2253. else:
  2254. send "%{tag}% &cNie jestes zalozycielem gildii!"
  2255. stop
  2256. else:
  2257. send "&cNie masz uprawnien do uzywania tej komendy"
  2258. stop
  2259. if arg 1 is "anuluj" or "cancel":
  2260. if player has permissions "ultimateclans.default" or "ultimateclans.admin":
  2261. if {ultimateclans.%name of player%.delete.confirm} is true:
  2262. set {ultimateclans.%name of player%.delete.confirm} to false
  2263. send "%{tag}% &cAnulowano procedure usuwania gildii!"
  2264. stop
  2265. else:
  2266. send "%{tag}% &cNie ma zadnych dzialan do anulowania!"
  2267. stop
  2268. else:
  2269. send "&cNie masz uprawnien do uzywania tej komendy"
  2270. stop
  2271. if arg 1 is "reload" or "przeladuj":
  2272. if player has permissions "ultimateclans.reload" or "ultimateclans.admin":
  2273. send "%{tag}% &aPrzeladowywanie..."
  2274. wait 1 tick
  2275. set {ultimateclans.lang} to "{@lang}"
  2276. set {ultimateclans.mailbox.enable} to {@mailbox}
  2277. set {ultimateclans.payitem.enable} to {@payitem}
  2278. set {ultimateclans.autoclaim.enable} to {@auto.claim}
  2279. set {ultimateclans.stats.message} to {@stats.message}
  2280. set {ultimateclans.claim.method} to "{@claim.method}"
  2281. set {ultimateclans.chunk.msg} to {@chunk.msg}
  2282. set {ultimateclans.setblock} to {@claim.setblock}
  2283. set {ultimateclans.safe.chest} to {@claim.safe.chest}
  2284. set {ultimateclans.safe.break} to {@claim.safe.break}
  2285. set {ultimateclans.safe.place} to {@claim.safe.place}
  2286. set {ultimateclans.safe.flint and steel} to {@claim.safe.flint and steel}
  2287. set {ultimateclans.safe.bucket} to {@claim.safe.bucket}
  2288. set {ultimateclans.worldguard.size} to {@claim.size}/2-2
  2289. set {ultimateclans.setnamecolor} to {@set.name.color}
  2290. set {ultimateclans.pvp} to {@pvp}
  2291. set {ultimateclans.tp.cooldown} to {@tp.cooldown}
  2292. set {ultimateclans.pvp.ownerset} to {@pvp.owner}
  2293. set {ultimateclans.ultimatechat} to {@ultimatechat.enable}
  2294. set {ultimateclans.paymoney.cost} to {@paymoney.create.cost}
  2295. set {ultimateclans.paymoney.enable} to {@paymoney.enable}
  2296. set {ultimateclans.vault} to {@vault}
  2297. set {ultimateclans.paymoney.invite} to {@paymoney.invite}
  2298. set {ultimateclans.paymoney.invite.cost} to {@paymoney.invite.cost}
  2299. set {ultimateclans.payitem.invite} to {@payitem.invite}
  2300. set {ultimateclans.payitem.invite.cost} to "{@payitem.invite.cost}"
  2301. set {ultimateclans.claim.wg.farewell} to {@claim.wg.farewell}
  2302. set {ultimateclans.claim.wg.greeting} to {@claim.wg.greeting}
  2303. set {_chest} to {@claim.wg.chest}
  2304. set {ultimateclans.cliam.sethome} to {@claim.sethome}
  2305. set {ultimateclans.level.take} to {@level.take}
  2306. set {ultimateclans.broadcast} to {@broadcast.enable}
  2307. set {ultimateclans.broadcast.time} to {@broadcast.time}
  2308. set {ultimateclans.tab} to {@tab}
  2309. set {ultimateclans.tab.color} to "{@tab.color}"
  2310. set {ultimateclans.tag} to {@tag}
  2311. set {ultimateclans.tag.color} to "{@tag.color}"
  2312. set {ultimateclans.tag.color.nick} to "{@tag.color.nick}"
  2313. wait 1 tick
  2314. if {_chest} is true:
  2315. set {ultimateclans.wg.chest} to false
  2316. if {_chest} is false:
  2317. set {ultimateclans.wg.chest} to true
  2318. set {ultimateclans.style} to "{@style}"
  2319. if {ultimateclans.style} is "gy":
  2320. set {style} to "&7"
  2321. set {style2} to "&6"
  2322. if {ultimateclans.style} is "gg":
  2323. set {style} to "&a"
  2324. set {style2} to "&8"
  2325. if {ultimateclans.style} is "bg":
  2326. set {style} to "&9"
  2327. set {style2} to "&7"
  2328. if {ultimateclans.style} is "mg":
  2329. set {style} to "&3"
  2330. set {style2} to "&7"
  2331. if {style} is "&a":
  2332. set {tag} to "{@tag|gg}"
  2333. if {style} is "&7":
  2334. set {tag} to "{@tag|gy}"
  2335. if {style} is "&9":
  2336. set {tag} to "{@tag|bg}"
  2337. if {style} is "&3":
  2338. set {tag} to "{@tag|mg}"
  2339. if {ultimateclans.payitem.enable} is true:
  2340. set {ultimateclans.payitem.allitem} to "{@payitem.slot.1}, {@payitem.slot.2}, {@payitem.slot.3}, {@payitem.slot.4}, and {@payitem.slot.5}"
  2341. loop {ultimateclans.clanlist::*}:
  2342. if {ultimateclans.clan.%loop-value%.pvp} is not set:
  2343. set {ultimateclans.clan.%loop-value%.pvp} to {@pvp}
  2344. wait 1 tick
  2345. make console execute command "sk reload {@skname}"
  2346. wait 1 tick
  2347. send "%{tag}% &aPrzeladowano!"
  2348. stop
  2349. else:
  2350. send "&cNie masz uprawnien do uzywania tej komendy"
  2351. stop
  2352. if arg 1 is "zapros" or "invite":
  2353. if player has permissions "ultimateclans.default" or "ultimateclans.admin":
  2354. if {ultimateclans.%name of player%.owner} is true:
  2355. if {ultimateclans.payitem.invite} is true:
  2356. if player has {@payitem.invite.cost}:
  2357. if arg 2 is not empty:
  2358. if {ultimateclans.%arg 2%.member} is true:
  2359. send "%{tag}% &cTen gracz jest juz w innej gildii!"
  2360. stop
  2361. if {ultimateclans.%arg 2%.owner} is true:
  2362. send "%{tag}% &cTen gracz ma juz gildie!"
  2363. stop
  2364. else:
  2365. if {ultimateclans.%arg 2%.player} is true:
  2366. remove {@payitem.invite.cost} from player
  2367. set {ultimateclans.%arg 2%.i.invite} to true
  2368. set {ultimateclans.%arg 2%.i.invite.clanname} to {ultimateclans.%name of player%.owner.clanname}
  2369. set {ultimateclans.%arg 2%.i.invite.tag} to {ultimateclans.%name of player%.owner.tag}
  2370. set {ultimateclans.%arg 2%.i.invite.owner} to player
  2371. set {ultimateclans.%name of player%.invenable} to true
  2372. wait 1 tick
  2373. make player execute command "mngsendinvite %arg 2%"
  2374. stop
  2375. else:
  2376. send "%{tag}% &cTakiego gracza nigdy nie bylo na serwerze!"
  2377. stop
  2378. else:
  2379. if {ultimateclans.lang} is "pl":
  2380. send "%{tag}% &cMusisz podac gracza! &7/{@prefix} zapros [gracz]"
  2381. send "&aKoszt: &7{@payitem.invite.cost}"
  2382. stop
  2383. if {ultimateclans.lang} is "eng":
  2384. send "%{tag}% &cMusisz podac gracza! &7/{@prefix} invite [player]"
  2385. send "&aKoszt: &7{@payitem.invite.cost}"
  2386. stop
  2387. else:
  2388. send "%{tag}% &cAby zaprosic gracza potrzebujesz: &7{@payitem.invite.cost}"
  2389. stop
  2390. if {ultimateclans.paymoney.invite} is true:
  2391. set {_money} to player's money
  2392. if {@paymoney.invite.cost} is smaller than {_money}:
  2393. if arg 2 is not empty:
  2394. if {ultimateclans.%arg 2%.member} is true:
  2395. send "%{tag}% &cTen gracz jest juz w innej gildii!"
  2396. stop
  2397. if {ultimateclans.%arg 2%.owner} is false:
  2398. send "%{tag}% &cTen gracz ma juz gildie!"
  2399. stop
  2400. else:
  2401. if {ultimateclans.%arg 2%.player} is true:
  2402. remove {@paymoney.invite.cost} from player's money
  2403. set {ultimateclans.%arg 2%.i.invite} to true
  2404. set {ultimateclans.%arg 2%.i.invite.clanname} to {ultimateclans.%name of player%.owner.clanname}
  2405. set {ultimateclans.%arg 2%.i.invite.tag} to {ultimateclans.%name of player%.owner.tag}
  2406. set {ultimateclans.%arg 2%.i.invite.owner} to player
  2407. set {ultimateclans.%name of player%.invenable} to true
  2408. wait 1 tick
  2409. make player execute command "mngsendinvite %arg 2%"
  2410. stop
  2411. else:
  2412. send "%{tag}% &cTakiego gracza nigdy nie bylo na serwerze!"
  2413. stop
  2414. else:
  2415. if {ultimateclans.lang} is "pl":
  2416. send "%{tag}% &cMusisz podac gracza! &7/{@prefix} zapros [gracz]"
  2417. send "&aKoszt: &7{@paymoney.invite.cost}$"
  2418. stop
  2419. if {ultimateclans.lang} is "eng":
  2420. send "%{tag}% &cMusisz podac gracza! &7/{@prefix} invite [player]"
  2421. send "&aKoszt: &7{@paymoney.invite.cost}$"
  2422. stop
  2423. else:
  2424. send "%{tag}% &cNie masz wystarczajacej ilosci pieniedzy, aby zaprosic gracza"
  2425. stop
  2426. else:
  2427. if arg 2 is not empty:
  2428. if {ultimateclans.%arg 2%.member} is true:
  2429. send "%{tag}% &cTen gracz jest juz w innej gildii!"
  2430. stop
  2431. if {ultimateclans.%arg 2%.owner} is true:
  2432. send "%{tag}% &cTen gracz ma juz gildie!"
  2433. stop
  2434. else:
  2435. if {ultimateclans.%arg 2%.player} is true:
  2436. set {ultimateclans.%arg 2%.i.invite} to true
  2437. set {ultimateclans.%arg 2%.i.invite.clanname} to {ultimateclans.%name of player%.owner.clanname}
  2438. set {ultimateclans.%arg 2%.i.invite.tag} to {ultimateclans.%name of player%.owner.tag}
  2439. set {ultimateclans.%arg 2%.i.invite.owner} to player
  2440. set {ultimateclans.%name of player%.invenable} to true
  2441. wait 1 tick
  2442. make player execute command "mngsendinvite %arg 2%"
  2443. stop
  2444. else:
  2445. send "%{tag}% &cTakiego gracza nigdy nie bylo na serwerze!"
  2446. stop
  2447. else:
  2448. if {ultimateclans.lang} is "pl":
  2449. send "%{tag}% &cMusisz podac gracza! &7/{@prefix} zapros [gracz]"
  2450. stop
  2451. if {ultimateclans.lang} is "eng":
  2452. send "%{tag}% &cMusisz podac gracza! &7/{@prefix} invite [player]"
  2453. stop
  2454. if {ultimateclans.%name of player%.mod} is true:
  2455. if {ultimateclans.payitem.invite} is true:
  2456. if player has {@payitem.invite.cost}:
  2457. if arg 2 is not empty:
  2458. if {ultimateclans.%arg 2%.member} is true:
  2459. send "%{tag}% &cTen gracz jest juz w innej gildii!"
  2460. stop
  2461. if {ultimateclans.%arg 2%.owner} is true:
  2462. send "%{tag}% &cTen gracz ma juz gildie!"
  2463. stop
  2464. else:
  2465. if {ultimateclans.%arg 2%.player} is true:
  2466. remove {@payitem.invite.cost} from player
  2467. set {ultimateclans.%arg 2%.i.invite} to true
  2468. set {ultimateclans.%arg 2%.i.invite.clanname} to {ultimateclans.%name of player%.owner.clanname}
  2469. set {ultimateclans.%arg 2%.i.invite.tag} to {ultimateclans.%name of player%.owner.tag}
  2470. set {ultimateclans.%arg 2%.i.invite.owner} to player
  2471. set {ultimateclans.%name of player%.invenable} to true
  2472. wait 1 tick
  2473. make player execute command "mngsendinvite %arg 2%"
  2474. stop
  2475. else:
  2476. send "%{tag}% &cTakiego gracza nigdy nie bylo na serwerze!"
  2477. stop
  2478. else:
  2479. if {ultimateclans.lang} is "pl":
  2480. send "%{tag}% &cMusisz podac gracza! &7/{@prefix} zapros [gracz]"
  2481. send "&aKoszt: &7{@payitem.invite.cost}"
  2482. stop
  2483. if {ultimateclans.lang} is "eng":
  2484. send "%{tag}% &cMusisz podac gracza! &7/{@prefix} invite [player]"
  2485. send "&aKoszt: &7{@payitem.invite.cost}"
  2486. stop
  2487. else:
  2488. send "%{tag}% &cAby zaprosic gracza potrzebujesz: &7{@payitem.invite.cost}"
  2489. stop
  2490. if {ultimateclans.paymoney.invite} is true:
  2491. set {_money} to player's money
  2492. if {@paymoney.invite.cost} is smaller than {_money}:
  2493. if arg 2 is not empty:
  2494. if {ultimateclans.%arg 2%.member} is true:
  2495. send "%{tag}% &cTen gracz jest juz w innej gildii!"
  2496. stop
  2497. if {ultimateclans.%arg 2%.owner} is false:
  2498. send "%{tag}% &cTen gracz ma juz gildie!"
  2499. stop
  2500. else:
  2501. if {ultimateclans.%arg 2%.player} is true:
  2502. remove {@paymoney.invite.cost} from player's money
  2503. set {ultimateclans.%arg 2%.i.invite} to true
  2504. set {ultimateclans.%arg 2%.i.invite.clanname} to {ultimateclans.%name of player%.owner.clanname}
  2505. set {ultimateclans.%arg 2%.i.invite.tag} to {ultimateclans.%name of player%.owner.tag}
  2506. set {ultimateclans.%arg 2%.i.invite.owner} to player
  2507. set {ultimateclans.%name of player%.invenable} to true
  2508. wait 1 tick
  2509. make player execute command "mngsendinvite %arg 2%"
  2510. stop
  2511. else:
  2512. send "%{tag}% &cTakiego gracza nigdy nie bylo na serwerze!"
  2513. stop
  2514. else:
  2515. if {ultimateclans.lang} is "pl":
  2516. send "%{tag}% &cMusisz podac gracza! &7/{@prefix} zapros [gracz]"
  2517. send "&aKoszt: &7{@paymoney.invite.cost}$"
  2518. stop
  2519. if {ultimateclans.lang} is "eng":
  2520. send "%{tag}% &cMusisz podac gracza! &7/{@prefix} invite [player]"
  2521. send "&aKoszt: &7{@paymoney.invite.cost}$"
  2522. stop
  2523. else:
  2524. send "%{tag}% &cNie masz wystarczajacej ilosci pieniedzy, aby zaprosic gracza"
  2525. stop
  2526. else:
  2527. if arg 2 is not empty:
  2528. if {ultimateclans.%arg 2%.member} is true:
  2529. send "%{tag}% &cTen gracz jest juz w innej gildii!"
  2530. stop
  2531. if {ultimateclans.%arg 2%.owner} is true:
  2532. send "%{tag}% &cTen gracz ma juz gildie!"
  2533. stop
  2534. else:
  2535. if {ultimateclans.%arg 2%.player} is true:
  2536. set {ultimateclans.%arg 2%.i.invite} to true
  2537. set {ultimateclans.%arg 2%.i.invite.clanname} to {ultimateclans.%name of player%.owner.clanname}
  2538. set {ultimateclans.%arg 2%.i.invite.tag} to {ultimateclans.%name of player%.owner.tag}
  2539. set {ultimateclans.%arg 2%.i.invite.owner} to player
  2540. set {ultimateclans.%name of player%.invenable} to true
  2541. wait 1 tick
  2542. make player execute command "mngsendinvite %arg 2%"
  2543. stop
  2544. else:
  2545. send "%{tag}% &cTakiego gracza nigdy nie bylo na serwerze!"
  2546. stop
  2547. else:
  2548. if {ultimateclans.lang} is "pl":
  2549. send "%{tag}% &cMusisz podac gracza! &7/{@prefix} zapros [gracz]"
  2550. stop
  2551. if {ultimateclans.lang} is "eng":
  2552. send "%{tag}% &cMusisz podac gracza! &7/{@prefix} invite [player]"
  2553. stop
  2554. else:
  2555. send "%{tag}% &cNie jestes zalozycielem gildii!"
  2556. stop
  2557. else:
  2558. send "&cNie masz uprawnien do uzywania tej komendy"
  2559. stop
  2560. if arg 1 is "dolacz" or "join":
  2561. if player has permissions "ultimateclans.default" or "ultimateclans.admin":
  2562. if {ultimateclans.%name of player%.i.invite} is true:
  2563. if {ultimateclans.%name of player%.member} is true:
  2564. send "%{tag}% &cJestes juz w gildii!"
  2565. stop trigger
  2566. if {ultimateclans.%name of player%.owner} is true:
  2567. send "%{tag}% &cMasz juz gildie!"
  2568. stop trigger
  2569. else:
  2570. wait 1 tick
  2571. set {ultimateclans.%name of player%.clan.name} to {ultimateclans.%name of player%.i.invite.clanname}
  2572. set {ultimateclans.%name of player%.clan.ownername} to {ultimateclans.%name of player%.i.invite.owner}
  2573. set {ultimateclans.%name of player%.clan.tag} to {ultimateclans.%name of player%.i.invite.tag}
  2574. set {ultimateclans.%name of player%.member} to true
  2575. if {ultimateclans.tag} is true:
  2576. make console execute command "pex user %name of player% add NametagEdit.*"
  2577. wait 1 tick
  2578. make player execute command "ne prefix %name of player% &6[%{ultimateclans.%name of player%.clan.tag}%]&f"
  2579. make console execute command "pex user %name of player% remove NametagEdit.*"
  2580. add player to {ultimateclans.%{ultimateclans.%name of player%.clan.name}%.members::*}
  2581. add 1 to {ultimateclans.%{ultimateclans.%name of player%.clan.name}%.member-number}
  2582. wait 1 tick
  2583. if {ultimateclans.claim.method} is "wg" or "WG" or "Wg" or "WorldGuard" or "worldguard" or "Worldguard":
  2584. make console execute command "rg addmember -w {@world} clans-%{ultimateclans.%name of player%.clan.name}% %name of player%"
  2585. clear {ultimateclans.%name of player%.i.invite.tag}
  2586. clear {ultimateclans.%name of player%.i.invite.owner}
  2587. clear {ultimateclans.%name of player%.i.invite.clanname}
  2588. set {ultimateclans.%name of player%.i.invite} to false
  2589. loop 100 times:
  2590. send ""
  2591. send "%{tag}% &aDolaczono do gildii!"
  2592. stop
  2593. else:
  2594. send "%{tag}% &cNie masz zadnego zaproszenia!"
  2595. stop
  2596. else:
  2597. send "&cNie masz uprawnien do uzywania tej komendy"
  2598. stop
  2599. if arg 1 is "odrzuc" or "deny":
  2600. if player has permissions "ultimateclans.default" or "ultimateclans.admin":
  2601. if {ultimateclans.%name of player%.i.invite} is true:
  2602. make console execute command "mngsenddeny %name of player%"
  2603. wait 1 tick
  2604. clear {ultimateclans.%name of player%.i.invite.tag}
  2605. clear {ultimateclans.%name of player%.i.invite.owner}
  2606. clear {ultimateclans.%name of player%.i.invite.clanname}
  2607. set {ultimateclans.%name of player%.i.invite} to false
  2608. send "%{tag}% &cOdrzucono zaproszenie!"
  2609. stop
  2610. else:
  2611. send "%{tag}% &cNie jestes nigdzie zaproszony!"
  2612. stop
  2613. else:
  2614. send "&cNie masz uprawnien do uzywania tej komendy"
  2615. stop
  2616. if arg 1 is "odejdz" or "leave":
  2617. if player has permissions "ultimateclans.default":
  2618. if {ultimateclans.%name of player%.owner} is true:
  2619. if {ultimateclans.lang} is "pl":
  2620. send "%{tag}%&c Jestes zalozycielem gildii! Jezeli chcesz usunac klan, uzyj &7/{@prefix} usun"
  2621. stop
  2622. if {ultimateclans.lang} is "eng":
  2623. send "%{tag}%&c Jestes zalozycielem gildii! Jezeli chcesz usunac klan, uzyj &7/{@prefix} delete"
  2624. stop
  2625. if {ultimateclans.%name of player%.member} is true:
  2626. if {ultimateclans.tag} is true:
  2627. make console execute command "pex user %name of player% add NametagEdit.*"
  2628. wait 1 tick
  2629. make player execute command "ne prefix %name of player% &f"
  2630. make console execute command "pex user %name of player% remove NametagEdit.*"
  2631. remove 1 from {ultimateclans.%{ultimateclans.%name of player%.clan.name}%.member-number}
  2632. if {ultimateclans.claim.method} is "wg" or "WG" or "Wg" or "WorldGuard" or "worldguard" or "Worldguard":
  2633. make console execute command "rg removemember -w %world of player% clans-%{ultimateclans.%name of player%.clan.name}% %name of player%"
  2634. remove player from {ultimateclans.%{ultimateclans.%name of player%.clan.name}%.members::*}
  2635. clear {ultimateclans.%name of player%.clan.name}
  2636. clear {ultimateclans.%name of player%.ownername}
  2637. clear {ultimateclans.%name of player%.clan.tag}
  2638. clear {ultimateclans.%name of player%.member}
  2639. loop 100 times:
  2640. send ""
  2641. send "%{tag}% &aOpuszczono gildie &7%{ultimateclans.%name of player%.clan.name}%&a!"
  2642. if {ultimateclans.%name of player%.mod} is true:
  2643. set {ultimateclans.%name of player%.mod} to false
  2644. clear {ultimateclans.%arg 3%.owner.tag}
  2645. clear {ultimateclans.%arg 3%.owner.clanname}
  2646. clear {ultimateclans.%arg 3%.owner.name}
  2647. stop
  2648. stop
  2649. else:
  2650. send "%{tag}% &cNie jestes w gildii!"
  2651. stop
  2652. else:
  2653. send "&cNie masz uprawnien do uzywania tej komendy"
  2654. stop
  2655. if arg 1 is "profil" or "profile" or "info":
  2656. if player has permissions "ultimateclans.info" or "ultimateclans.admin":
  2657. if arg 2 is set:
  2658. if {ultimateclans.clan.%arg 2%.name} is set:
  2659. if {ultimateclans.clan.%arg 2%.info} is set:
  2660. send "&aZalozyciel: &7%{ultimateclans.clan.%arg 2%.ownername}%"
  2661. send "&aNazwa: &7%{ultimateclans.clan.%arg 2%.name}%"
  2662. send "&aTag: &7%{ultimateclans.clan.%arg 2%.tag}%"
  2663. send "&aLiczba czlonkow: &7%{ultimateclans.%arg 2%.member-number}%"
  2664. if {ultimateclans.clan.%arg 2%.killall} is set:
  2665. send "&aZabojstwa: &7%{ultimateclans.clan.%arg 2%.killall}%"
  2666. if {ultimateclans.clan.%arg 2%.killall} is not set:
  2667. send "&aZabojstwa: &70"
  2668. if {ultimateclans.clan.%arg 2%.deathall} is set:
  2669. send "&aSmierci: &7%{ultimateclans.clan.%arg 2%.deathall}%"
  2670. if {ultimateclans.clan.%arg 2%.deathall} is not set:
  2671. send "&aSmierci: &70"
  2672. send "&aInfo:&7 %{ultimateclans.clan.%arg 2%.info}%"
  2673. send "&aCzlonkowie: &7%{ultimateclans.%arg 2%.members::*}%"
  2674. stop
  2675. if {ultimateclans.clan.%arg 2%.info} is not set:
  2676. send "&aZalozyciel: &7%{ultimateclans.clan.%arg 2%.ownername}%"
  2677. send "&aNazwa: &7%{ultimateclans.clan.%arg 2%.name}%"
  2678. send "&aTag: &7%{ultimateclans.clan.%arg 2%.tag}%"
  2679. send "&aLiczba czlonkow: &7%{ultimateclans.%arg 2%.member-number}%"
  2680. if {ultimateclans.clan.%arg 2%.killall} is set:
  2681. send "&aZabojstwa: &7%{ultimateclans.clan.%arg 2%.killall}%"
  2682. if {ultimateclans.clan.%arg 2%.killall} is not set:
  2683. send "&aZabojstwa: &70"
  2684. if {ultimateclans.clan.%arg 2%.deathall} is set:
  2685. send "&aSmierci: &7%{ultimateclans.clan.%arg 2%.deathall}%"
  2686. if {ultimateclans.clan.%arg 2%.deathall} is not set:
  2687. send "&aSmierci: &70"
  2688. send "&aInfo: &7Nie ustawiono"
  2689. send "&aCzlonkowie: &7%{ultimateclans.%arg 2%.members::*}%"
  2690. stop
  2691. else:
  2692. if {ultimateclans.clan.%arg 2%.tagauth} is set:
  2693. if {ultimateclans.clan.%{ultimateclans.clan.%arg 2%.tag.fullname}%.tag} is set:
  2694. if {ultimateclans.clan.%{ultimateclans.clan.%arg 2%.tag.fullname}%.info} is set:
  2695. send "&aZalozyciel: &7%{ultimateclans.clan.%{ultimateclans.clan.%arg 2%.tag.fullname}%.ownername}%"
  2696. send "&aNazwa: &7%{ultimateclans.clan.%{ultimateclans.clan.%arg 2%.tag.fullname}%.name}%"
  2697. send "&aTag: &7%{ultimateclans.clan.%{ultimateclans.clan.%arg 2%.tag.fullname}%.tag}%"
  2698. send "&aLiczba czlonkow: &7%{ultimateclans.%{ultimateclans.clan.%arg 2%.tag.fullname}%.member-number}%"
  2699. if {ultimateclans.clan.%{ultimateclans.clan.%arg 2%.tag.fullname}%.killall} is set:
  2700. send "&aZabojstwa: &7%{ultimateclans.clan.%arg 2%.killall}%"
  2701. if {ultimateclans.clan.%{ultimateclans.clan.%arg 2%.tag.fullname}%.killall} is not set:
  2702. send "&aZabojstwa: &70"
  2703. if {ultimateclans.clan.%{ultimateclans.clan.%arg 2%.tag.fullname}%.deathall} is set:
  2704. send "&aSmierci: &7%{ultimateclans.clan.%arg 2%.deathall}%"
  2705. if {ultimateclans.clan.%{ultimateclans.clan.%arg 2%.tag.fullname}%.deathall} is not set:
  2706. send "&aSmierci: &70"
  2707. send "&aInfo:&7 %{ultimateclans.clan.%{ultimateclans.clan.%arg 2%.tag.fullname}%.info}%"
  2708. send "&aCzlonkowie: &7%{ultimateclans.%{ultimateclans.clan.%arg 2%.tag.fullname}%.members::*}%"
  2709. stop
  2710. send "&aInfo:&7 %{ultimateclans.clan.%{ultimateclans.clan.%arg 2%.tag.fullname}%.info}%"
  2711. if {ultimateclans.clan.%{ultimateclans.clan.%arg 2%.tag.fullname}%.info} is not set:
  2712. send "&aZalozyciel: &7%{ultimateclans.clan.%{ultimateclans.clan.%arg 2%.tag.fullname}%.ownername}%"
  2713. send "&aNazwa: &7%{ultimateclans.clan.%{ultimateclans.clan.%arg 2%.tag.fullname}%.name}%"
  2714. send "&aTag: &7%{ultimateclans.clan.%{ultimateclans.clan.%arg 2%.tag.fullname}%.tag}%"
  2715. send "&aLiczba czlonkow: &7%{ultimateclans.%{ultimateclans.clan.%arg 2%.tag.fullname}%.member-number}%"
  2716. if {ultimateclans.clan.%{ultimateclans.clan.%arg 2%.tag.fullname}%.killall} is set:
  2717. send "&aZabojstwa: &7%{ultimateclans.clan.%arg 2%.killall}%"
  2718. if {ultimateclans.clan.%{ultimateclans.clan.%arg 2%.tag.fullname}%.killall} is not set:
  2719. send "&aZabojstwa: &70"
  2720. if {ultimateclans.clan.%{ultimateclans.clan.%arg 2%.tag.fullname}%.deathall} is set:
  2721. send "&aSmierci: &7%{ultimateclans.clan.%arg 2%.deathall}%"
  2722. if {ultimateclans.clan.%{ultimateclans.clan.%arg 2%.tag.fullname}%.deathall} is not set:
  2723. send "&aSmierci: &70"
  2724. send "&aInfo: &7Nie ustawiono"
  2725. send "&aCzlonkowie: &7%{ultimateclans.%{ultimateclans.clan.%arg 2%.tag.fullname}%.members::*}%"
  2726. stop
  2727. else:
  2728. send "%{tag}% &cNie ma takiego klanu!"
  2729. stop
  2730. else:
  2731. send "%{tag}% &cNie ma takiego klanu!"
  2732. stop
  2733. else:
  2734. if {ultimateclans.%name of player%.member} is true:
  2735. if {ultimateclans.lang} is "pl":
  2736. make player execute command "clans info %{ultimateclans.%name of player%.clan.name}%"
  2737. wait 1 tick
  2738. stop
  2739. if {ultimateclans.lang} is "eng":
  2740. make player execute command "clans info %{ultimateclans.%name of player%.clan.name}%"
  2741. wait 1 tick
  2742. stop
  2743. if {ultimateclans.%name of player%.owner} is true:
  2744. if {ultimateclans.lang} is "pl":
  2745. make player execute command "clans info %{ultimateclans.%name of player%.owner.clanname}%"
  2746. wait 1 tick
  2747. stop
  2748. if {ultimateclans.lang} is "eng":
  2749. make player execute command "clans info %{ultimateclans.%name of player%.owner.clanname}%"
  2750. wait 1 tick
  2751. stop
  2752. else:
  2753. send "%{tag}% &cNie masz wlasnej gildii!"
  2754. send "%{tag}% &aW celu zobaczenia profilu innej gildii uzyj:"
  2755. if {ultimateclans.lang} is "pl":
  2756. send "&7/{@prefix} profil [nazwa/tag]"
  2757. stop
  2758. if {ultimateclans.lang} is "eng":
  2759. send "&7/{@prefix} profile [name/tag]"
  2760. stop
  2761. else:
  2762. send "&cNie masz uprawnien do uzywania tej komendy"
  2763. stop
  2764. if arg 1 is "setspawn":
  2765. if player has permissions "ultimateclans.admin":
  2766. set {ultimateclans.spawn.%world%} to location of player
  2767. send "%{tag}% Ustawiono punkt spawnu"
  2768. stop
  2769. else:
  2770. send "&cNie masz uprawnien do uzywania tej komendy"
  2771. stop
  2772. if arg 1 is "moderator" or "mod":
  2773. if arg 2 is set:
  2774. if {ultimateclans.%name of player%.owner} is true:
  2775. if {ultimateclans.%name of player%.owner.clanname} is {ultimateclans.%arg 2%.clan.name}:
  2776. if {ultimateclans.%arg 2%.mod} is true:
  2777. set {ultimateclans.%arg 2%.mod} to false
  2778. send "%{tag}% &aZabrano Moderatora!"
  2779. clear {ultimateclans.%arg 2%.owner.tag}
  2780. clear {ultimateclans.%arg 2%.owner.clanname}
  2781. clear {ultimateclans.%arg 2%.owner.name}
  2782. stop
  2783. if {ultimateclans.%arg 2%.mod} is false:
  2784. set {ultimateclans.%arg 2%.mod} to true
  2785. send "%{tag}% &aGracz: &7%arg 2% &aotrzymal &7Moderatora&a!"
  2786. set {ultimateclans.%arg 2%.owner.tag} to {ultimateclans.%name of player%.owner.tag}
  2787. set {ultimateclans.%arg 2%.owner.clanname} to {ultimateclans.%name of player%.owner.clanname}
  2788. set {ultimateclans.%arg 2%.owner.name} to {ultimateclans.%name of player%.owner.name}
  2789. stop
  2790. if {ultimateclans.%arg 2%.mod} is not set:
  2791. set {ultimateclans.%arg 2%.mod} to true
  2792. send "%{tag}% &aGracz: &7%arg 2% &aotrzymal &7Moderatora&a!"
  2793. set {ultimateclans.%arg 2%.owner.tag} to {ultimateclans.%name of player%.owner.tag}
  2794. set {ultimateclans.%arg 2%.owner.clanname} to {ultimateclans.%name of player%.owner.clanname}
  2795. set {ultimateclans.%arg 2%.owner.name} to {ultimateclans.%name of player%.owner.name}
  2796. stop
  2797. else:
  2798. send "&cBlad! Powod: &Mod Manage - Set"
  2799. stop
  2800. else:
  2801. send "%{tag}% &cTo nie jest czlonek Twojej gildii!"
  2802. stop
  2803. else:
  2804. send "&cNie jestes zalozycielem gildii!"
  2805. stop
  2806. else:
  2807. send "%{tag}% &cPodaj nazwe gracza!"
  2808. stop
  2809. if arg 1 is "setinfo":
  2810. make player execute command "{@prefix} manage setinfo"
  2811. stop
  2812. if arg 1 is "sethome" or "ustawdom":
  2813. make player execute command "{@prefix} manage sethome"
  2814. stop
  2815. if arg 1 is "zarzadzaj" or "manage":
  2816. if player has permissions "ultimateclans.default":
  2817. if {ultimateclans.%name of player%.owner} is true:
  2818. if arg 2 is not set:
  2819. if {ultimateclans.lang} is "pl":
  2820. send "&aTen system pozwala zarzadzac klanem"
  2821. send "%{tag}% &aKomenda: &7/{@prefix} zarzadzaj [funkcja]"
  2822. send "&7Funkcje: &aSetHome, SetInfo, Moderator"
  2823. stop
  2824. if {ultimateclans.lang} is "eng":
  2825. send "&aTen system pozwala zarzadzac klanem"
  2826. send "%{tag}% &aKomenda: &7/{@prefix} manage [function]"
  2827. send "&aFunkcje: &7SetHome, SetInfo, Moderator"
  2828. stop
  2829. if arg 2 is "ustawinfo" or "setinfo":
  2830. if player has permissions "ultimateclans.info" or "ultimateclans.admin":
  2831. if {ultimateclans.%name of player%.owner} is true:
  2832. clear {ultimateclans.clan.%{ultimateclans.%name of player%.owner.clanname}%.info}
  2833. clear {ultimateclans.clan.%{ultimateclans.%name of player%.owner.tag}%.info}
  2834. wait 1 tick
  2835. set {ultimateclans.info.set.%name of player%} to true
  2836. send "%{tag}%&a Teraz napisz info na chacie"
  2837. stop
  2838. else:
  2839. send "%{tag}% &cNie jestes zalozycielem zadnej gildii!"
  2840. stop
  2841. if arg 2 is "sethome" or "ustawdom":
  2842. if {ultimateclans.%name of player%.owner} is true:
  2843. if {ultimateclans.cliam.sethome} is true:
  2844. if {ultimateclans.claim.method} is "chunk":
  2845. if {ultimateclans.chunk::%chunk at player%} is {ultimateclans.%name of player%.clan.name}:
  2846. if {ultimateclans.clan.%{ultimateclans.%name of player%.owner.clanname}%.claim.point} is set:
  2847. set {ultimateclans.clan.%{ultimateclans.%name of player%.owner.clanname}%.claim.point} to location of player
  2848. send "%{tag}% &aUstawiono"
  2849. stop
  2850. if {ultimateclans.claim.method} is "wg" or "WG" or "Wg" or "WorldGuard" or "worldguard" or "Worldguard":
  2851. if distance between player and {ultimateclans.clan.%{ultimateclans.%name of player%.owner.clanname}%.claim.point.center} is smaller than {ultimateclans.worldguard.size}:
  2852. if {ultimateclans.clan.%{ultimateclans.%name of player%.owner.clanname}%.claim.point} is set:
  2853. set {ultimateclans.clan.%{ultimateclans.%name of player%.owner.clanname}%.claim.point} to location of player
  2854. send "%{tag}% &aUstawiono"
  2855. stop
  2856. else:
  2857. send "%{tag}% &aBlad! Skontaktuj sie z administratorem. Powod: &7Skladnia"
  2858. stop
  2859. else:
  2860. send "%{tag}% &cTo nie jest Twoj teren gildii!"
  2861. else:
  2862. send "%{tag}% &cBlad! Powod: &7Claim method"
  2863. stop
  2864. else:
  2865. send "%{tag}% &7Zablokowano ta mozliwosc"
  2866. stop
  2867. if arg 2 is "Moderator" or "Mod":
  2868. if arg 3 is set:
  2869. if {ultimateclans.%name of player%.owner.clanname} is {ultimateclans.%arg 3%.clan.name}:
  2870. if {ultimateclans.%arg 3%.mod} is true:
  2871. set {ultimateclans.%arg 3%.mod} to false
  2872. send "%{tag}% &aZabrano Moderatora!"
  2873. clear {ultimateclans.%arg 3%.owner.tag}
  2874. clear {ultimateclans.%arg 3%.owner.clanname}
  2875. clear {ultimateclans.%arg 3%.owner.name}
  2876. stop
  2877. if {ultimateclans.%arg 3%.mod} is false:
  2878. set {ultimateclans.%arg 3%.mod} to true
  2879. send "%{tag}% &aGracz: &7%arg 3% &aotrzymal &7Moderatora&a!"
  2880. set {ultimateclans.%arg 3%.owner.tag} to {ultimateclans.%name of player%.owner.tag}
  2881. set {ultimateclans.%arg 3%.owner.clanname} to {ultimateclans.%name of player%.owner.clanname}
  2882. set {ultimateclans.%arg 3%.owner.name} to {ultimateclans.%name of player%.owner.name}
  2883. stop
  2884. if {ultimateclans.%arg 3%.mod} is not set:
  2885. set {ultimateclans.%arg 3%.mod} to true
  2886. send "%{tag}% &aGracz: &7%arg 3% &aotrzymal &7Moderatora&a!"
  2887. set {ultimateclans.%arg 3%.owner.tag} to {ultimateclans.%name of player%.owner.tag}
  2888. set {ultimateclans.%arg 3%.owner.clanname} to {ultimateclans.%name of player%.owner.clanname}
  2889. set {ultimateclans.%arg 3%.owner.name} to {ultimateclans.%name of player%.owner.name}
  2890. stop
  2891. else:
  2892. send "&cBlad! Powod: &Mod Manage - Set"
  2893. stop
  2894. else:
  2895. send "%{tag}% &cTo nie jest czlonek Twojego klanu!"
  2896. stop
  2897. else:
  2898. send "%{tag}% &cPodaj nazwe gracza!"
  2899. stop
  2900. else:
  2901. send "%{tag}% &cZla funkcja!"
  2902. stop
  2903. if {ultimateclans.%name of player%.mod} is true:
  2904. if arg 2 is empty:
  2905. if {ultimateclans.lang} is "pl":
  2906. send "&aTen system pozwala zarzadzac klanem"
  2907. send "%{tag}% &aKomenda: &7/{@prefix} zarzadzaj [funkcja]"
  2908. send "&7Funkcje: &aSetHome, SetInfo"
  2909. stop
  2910. if {ultimateclans.lang} is "eng":
  2911. send "&aTen system pozwala zarzadzac klanem"
  2912. send "%{tag}% &aKomenda: &7/{@prefix} manage [function]"
  2913. send "&aFunkcje: &7SetHome, SetInfo"
  2914. stop
  2915. if arg 2 is "ustawinfo" or "setinfo":
  2916. if player has permissions "ultimateclans.info" or "ultimateclans.admin":
  2917. if {ultimateclans.%name of player%.mod} is true:
  2918. clear {ultimateclans.clan.%{ultimateclans.%name of player%.owner.clanname}%.info}
  2919. clear {ultimateclans.clan.%{ultimateclans.%name of player%.owner.tag}%.info}
  2920. wait 1 tick
  2921. set {ultimateclans.info.set.%name of player%} to true
  2922. send "%{tag}%&a Teraz napisz info na chacie"
  2923. stop
  2924. else:
  2925. send "%{tag}% &cNie jestes zalozycielem zadnej gildii!"
  2926. stop
  2927. if arg 2 is "sethome" or "ustawdom":
  2928. if {ultimateclans.%name of player%.mod} is true:
  2929. if {ultimateclans.cliam.sethome} is true:
  2930. if {ultimateclans.claim.method} is "chunk":
  2931. if {ultimateclans.chunk::%chunk at player%} is {ultimateclans.%name of player%.clan.name}:
  2932. if {ultimateclans.clan.%{ultimateclans.%name of player%.owner.clanname}%.claim.point} is set:
  2933. set {ultimateclans.clan.%{ultimateclans.%name of player%.owner.clanname}%.claim.point} to location of player
  2934. send "%{tag}% &aUstawiono"
  2935. stop
  2936. if {ultimateclans.claim.method} is "wg" or "WG" or "Wg" or "WorldGuard" or "worldguard" or "Worldguard":
  2937. if distance between player and {ultimateclans.clan.%{ultimateclans.%name of player%.owner.clanname}%.claim.point.center} is smaller than {ultimateclans.worldguard.size}:
  2938. if {ultimateclans.clan.%{ultimateclans.%name of player%.owner.clanname}%.claim.point} is set:
  2939. set {ultimateclans.clan.%{ultimateclans.%name of player%.owner.clanname}%.claim.point} to location of player
  2940. send "%{tag}% &aUstawiono"
  2941. stop
  2942. else:
  2943. send "%{tag}% &aBlad! Skontaktuj sie z administratorem. Powod: &7Skladnia"
  2944. stop
  2945. else:
  2946. send "%{tag}% &cTo nie jest Twoj teren gildii!"
  2947. else:
  2948. send "%{tag}% &cBlad! Powod: &7Claim method"
  2949. stop
  2950. else:
  2951. send "%{tag}% &7Zablokowano ta mozliwosc"
  2952. stop
  2953. else:
  2954. send "%{tag}% &cZla funkcja!"
  2955. stop
  2956.  
  2957. else:
  2958. send "%{tag}% &cNie jestes zalozycielem/moderatorem gildii!"
  2959. stop
  2960. else:
  2961. send "&cNie masz uprawnien do uzywania tej komendy"
  2962. stop
  2963. if arg 1 is "pakt" or "pakty" or "covenant" or "relation" or "relations":
  2964. if {ultimateclans.%name of player%.owner} is true:
  2965. if arg 2 is empty:
  2966. send "%{tag}% &aMozesz zawrzec nastepujace pakty, przy uzyciu &7/{@prefix} pakty [funkcje]"
  2967. send "&aFunkcje: &aSojusz,, Lista"
  2968. stop
  2969. if arg 2 is "list" or "lista":
  2970. if {ultimateclans.%{ultimateclans.%name of player%.owner.clanname}%.rellist::*} is set:
  2971. send "&7Sojusze:%{style2}% %{ultimateclans.%{ultimateclans.%name of player%.owner.clanname}%.rellist::*}%"
  2972. else:
  2973. send "&7Sojusze:%{style2}% Brak"
  2974. stop
  2975. if arg 2 is "sojusz" or "alliance":
  2976. if arg 3 is "accept" or "akceptuj":
  2977. if {ultimateclans.%{ultimateclans.%name of player%.owner.clanname}%.i.inviteclans} is true:
  2978. set {ultimateclans.%{ultimateclans.%{ultimateclans.%name of player%.owner.clanname}%.i.inviteclannameclans}%.rel.%{ultimateclans.%name of player%.owner.clanname}%} to true
  2979. add {ultimateclans.%{ultimateclans.%name of player%.owner.clanname}%.i.inviteclannameclans} to {ultimateclans.%{ultimateclans.%name of player%.owner.clanname}%.rellist::*}
  2980. add {ultimateclans.%name of player%.owner.clanname} to {ultimateclans.%{ultimateclans.%{ultimateclans.%name of player%.owner.clanname}%.i.inviteclannameclans}%.rellist::*}
  2981. send "%{tag}% &aNawiazano sojusz!"
  2982. set {ultimateclans.%{ultimateclans.%name of player%.owner.clanname}%.i.inviteclans} to false
  2983. set {ultimateclans.%{ultimateclans.%{ultimateclans.%name of player%.owner.clanname}%.i.inviteclannameclans}%.invenableclans} to false
  2984. send "%{style}%Gildia%{style2}% %{ultimateclans.%name of player%.owner.clanname}% %{style}%nawiazala sojusz z Twoja gildia!" to {ultimateclans.clan.%{ultimateclans.%{ultimateclans.%name of player%.owner.clanname}%.i.inviteclannameclans}%.ownername}
  2985. clear {ultimateclans.%{ultimateclans.%name of player%.owner.clanname}%.i.inviteclannameclans}
  2986. stop
  2987. else:
  2988. send "&cNie otrzymano zaproszenia!"
  2989. stop
  2990. if arg 3 is "odrzuc" or "deny":
  2991. if {ultimateclans.%{ultimateclans.%name of player%.owner.clanname}%.i.inviteclans} is true:
  2992. send "&cOdrzucono zaproszenie do sojuszu!"
  2993. send "%{style}%Gildia%{style2}% %{ultimateclans.%name of player%.owner.clanname}% %{style}%odrzucila zaproszenie do sojuszu!" to {ultimateclans.clan.%{ultimateclans.%{ultimateclans.%name of player%.owner.clanname}%.i.inviteclannameclans}%.ownername}
  2994. set {ultimateclans.%{ultimateclans.%name of player%.owner.clanname}%.i.inviteclans} to false
  2995. clear {ultimateclans.%{ultimateclans.%name of player%.owner.clanname}%.i.inviteclannameclans}
  2996. set {ultimateclans.%{ultimateclans.%{ultimateclans.%name of player%.owner.clanname}%.i.inviteclannameclans}%.invenableclans} to false
  2997. stop
  2998. if arg 3 is "rozwiaz" or "solve":
  2999. if arg 4 is set:
  3000. if {ultimateclans.%{ultimateclans.%name of player%.owner.clanname}%.rel.%arg 4%} is true:
  3001. remove "%arg 4%" from {ultimateclans.%{ultimateclans.%name of player%.owner.clanname}%.rellist::*}
  3002. remove {ultimateclans.%name of player%.owner.clanname} from {ultimateclans.%arg 4%.rellist::*}
  3003. set {ultimateclans.%{ultimateclans.%name of player%.owner.clanname}%.rel.%arg 4%} to false
  3004. send "%{style}%Rozwiazano sojusz z gildia%{style2}% %arg 4%"
  3005. send "%{style}%Gildia%{style2}% %{ultimateclans.%name of player%.owner.clanname}% %{style}%rozwiazala sojusz z Twoja gildia!" to {ultimateclans.clan.%arg 4%.ownername}
  3006. stop
  3007. else:
  3008. send "&CNie masz sojuszu z taka gildia!"
  3009. stop
  3010. if arg 3 is "zapros" or "invite":
  3011. if arg 4 is set:
  3012. if {ultimateclans.clan.%arg 4%.name} is set:
  3013. if {ultimateclans.%{ultimateclans.%name of player%.owner.clanname}%.rel.%arg 3%} is true:
  3014. send "%{tag}% &cMasz juz sojusz z ta gildia!"
  3015. stop
  3016. if arg 4 is {ultimateclans.%name of player%.owner.clanname}:
  3017. send "%{tag}% &cNie mozna nawiazac sojuszu z wlasna gildia!"
  3018. stop
  3019. else:
  3020. if {ultimateclans.%arg 4%.i.inviteclans} is true:
  3021. send "%{tag}% &cTa gildia ma jeszcze 1 nierozpatrzone zaproszenie. Sprobuj innym razem!"
  3022. stop
  3023. set {ultimateclans.%arg 4%.i.inviteclans} to true
  3024. set {ultimateclans.%arg 4%.i.inviteclannameclans} to {ultimateclans.%name of player%.owner.clanname}
  3025. set {ultimateclans.%name of player%.invenableclans} to true
  3026. wait 1 tick
  3027. make player execute command "mngalliancesend %{ultimateclans.clan.%arg 4%.ownername}%"
  3028. wait 1 tick
  3029. stop
  3030. stop
  3031. else:
  3032. if {ultimateclans.clan.%arg 4%.tag} is set:
  3033. send "%{tag}% &aMusisz podac pelna nazwe tej gildii!"
  3034. stop
  3035. else:
  3036. send "%{tag}% &cTaka gildia nie istnieje!"
  3037. stop
  3038. stop
  3039. else:
  3040. send "%{tag}% &cPodaj nazwe gildii!"
  3041. stop
  3042. else:
  3043. if {ultimateclans.lang} is "pl":
  3044. send "&cPoprawne funkcje to: zapros <nazwa>, rozwiaz <nazwa>, akceptuj lub odrzuc"
  3045. stop
  3046. if {ultimateclans.lang} is "eng":
  3047. send "&cPoprawne funkcje to: invite <name>, solve <name>, accept lub deny"
  3048. stop
  3049. stop
  3050. stop
  3051. else:
  3052. send "%{tag}% &cNie jestes zalozycielem/moderatorem gildii!"
  3053. stop
  3054. if arg 1 is "sojusz":
  3055. if arg 2 is set:
  3056. wait 1 tick
  3057. make player execute command "{@prefix} pakty sojusz zapros %arg 2%"
  3058. stop
  3059. else:
  3060. send "%{tag}% &cPodaj nazwe gildii!"
  3061. stop
  3062. if arg 1 is "rozwiaz" or "solve":
  3063. if arg 2 is set:
  3064. wait 1 tick
  3065. make player execute command "{@prefix} pakty sojusz rozwiaz %arg 2%"
  3066. stop
  3067. else:
  3068. send "%{tag}% &cPodaj nazwe gildii!"
  3069. stop
  3070. if arg 1 is "admin":
  3071. if player has permissions "ultimateclans.admin":
  3072. if arg 2 is not set:
  3073. send "%aTen system pozwala zarzadzac &7UltimateClans"
  3074. send "&aKomenda: &7/clans admin [funkcja]"
  3075. send "&aFunkcje: &7Delete"
  3076. send "&aFunkcje techniczne: &7DelArgList, AddArgList, DelIntList, AddIntList"
  3077. stop
  3078. if arg 2 is "delarglist":
  3079. if arg 3 is set:
  3080. if arg 4 is set:
  3081. remove arg 3 from {ultimateclans.%arg 4%.members::*}
  3082. send "Wyczysczono nieprawidlowego czlonka z listy klanu"
  3083. stop
  3084. if arg 2 is "addarglist":
  3085. if arg 3 is set:
  3086. if arg 4 is set:
  3087. add arg 3 to {ultimateclans.%arg 4%.members::*}
  3088. send "Dodano czlonka do listy klanu"
  3089. stop
  3090. if arg 2 is "delintlist":
  3091. if arg 3 is set:
  3092. remove 1 from {ultimateclans.%arg 3%.member-number}
  3093. send "Usunieto liczbe z listy listy klanu"
  3094. stop
  3095. if arg 2 is "addintlist":
  3096. if arg 3 is set:
  3097. add 1 to {ultimateclans.%arg 3%.member-number}
  3098. send "Dodano liczbe do listy listy klanu"
  3099. stop
  3100. if arg 2 is "Delete":
  3101. if arg 3 is not set:
  3102. send "&aAby usunac wybrany klan, uzyj: &7/{@prefix} admin delete [name]"
  3103. stop
  3104. if arg 3 is set:
  3105. # "
  3106. if {ultimateclans.clan.%arg 3%.name} is set:
  3107. if {ultimateclans.claim.method} is "chunk" or "Chunk":
  3108. delete {ultimateclans.chunk::%{ultimateclans.%{ultimateclans.clan.%arg 3%.ownername}%.owner.clanname}%}
  3109. loop {ultimateclans.clanlist::*}:
  3110. remove arg 3 from {ultimateclans.clanlist::*}
  3111. loop {ultimateclans.tagclanlist::*}:
  3112. remove {ultimateclans.%{ultimateclans.clan.%arg 3%.ownername}%.owner.tag} from {ultimateclans.tagclanlist::*}
  3113. wait 1 tick
  3114. set {ultimateclans.%{ultimateclans.clan.%arg 3%.ownername}%.owner} to false
  3115. clear {ultimateclans.clan.%arg 3%.tag}
  3116. clear {ultimateclans.clan.%arg 3%.name}
  3117. if {ultimateclans.setblock} is true:
  3118. set block under {ultimateclans.clan.%{ultimateclans.%{ultimateclans.clan.%arg 3%.ownername}%.owner.clanname}%.claim.point.center} to air
  3119. clear {ultimateclans.clan.%{ultimateclans.%{ultimateclans.clan.%arg 3%.ownername}%.owner.clanname}%.claim.point}
  3120. clear {ultimateclans.clan.%{ultimateclans.%{ultimateclans.clan.%arg 3%.ownername}%.owner.clanname}%.claim.point.center}
  3121. clear {ultimateclans.clan.%{ultimateclans.%{ultimateclans.clan.%arg 3%.ownername}%.owner.tag}%.tagauth}
  3122. clear {ultimateclans.clan.%{ultimateclans.%{ultimateclans.clan.%arg 3%.ownername}%.owner.tag}%.tag.fullname}
  3123. clear {ultimateclans.clan.%{ultimateclans.%{ultimateclans.clan.%arg 3%.ownername}%.owner.tag}%.ownername}
  3124. clear {ultimateclans.%{ultimateclans.%{ultimateclans.clan.%arg 3%.ownername}%.owner.clanname}%.member-number}
  3125. clear {ultimateclans.clan.%{ultimateclans.%{ultimateclans.clan.%arg 3%.ownername}%.owner.clanname}%.claim.point}
  3126. loop {ultimateclans.%{ultimateclans.%{ultimateclans.clan.%arg 3%.ownername}%.owner.clanname}%.members::*}:
  3127. set {ultimateclans.%loop-value%.member} to false
  3128. clear {ultimateclans.%loop-value%.clan.tag}
  3129. clear {ultimateclans.%loop-value%.ownername}
  3130. clear {ultimateclans.%loop-value%.clan.name}
  3131. exit loop
  3132. wait 2 tick
  3133. clear {ultimateclans.%{ultimateclans.clan.%arg 3%.ownername}%.owner.tag}
  3134. clear {ultimateclans.%{ultimateclans.clan.%arg 3%.ownername}%.owner.clanname}
  3135. send "%{tag}% &aPomyslnie usunieto klan!"
  3136. stop
  3137. #
  3138. if {ultimateclans.claim.method} is "wg" or "WG" or "Wg" or "WorldGuard" or "worldguard" or "Worldguard":
  3139. make console execute command "rg remove -w %world of player% Clans-%{ultimateclans.%name of player%.owner.clanname}%"
  3140. set {ultimateclans.clan.%{ultimateclans.%name of player%.owner.clanname}%.claimset} to false
  3141. loop {ultimateclans.clanlist::*}:
  3142. remove arg 3 from {ultimateclans.clanlist::*}
  3143. loop {ultimateclans.tagclanlist::*}:
  3144. remove {ultimateclans.%{ultimateclans.clan.%arg 3%.ownername}%.owner.tag} from {ultimateclans.tagclanlist::*}
  3145. wait 1 tick
  3146. set {ultimateclans.%{ultimateclans.clan.%arg 3%.ownername}%.owner} to false
  3147. clear {ultimateclans.clan.%arg 3%.tag}
  3148. clear {ultimateclans.clan.%arg 3%.name}
  3149. if {ultimateclans.setblock} is true:
  3150. set block under {ultimateclans.clan.%{ultimateclans.%{ultimateclans.clan.%arg 3%.ownername}%.owner.clanname}%.claim.point.center} to air
  3151. clear {ultimateclans.clan.%{ultimateclans.%{ultimateclans.clan.%arg 3%.ownername}%.owner.clanname}%.claim.point}
  3152. clear {ultimateclans.clan.%{ultimateclans.%{ultimateclans.clan.%arg 3%.ownername}%.owner.clanname}%.claim.point.center}
  3153. clear {ultimateclans.clan.%{ultimateclans.%{ultimateclans.clan.%arg 3%.ownername}%.owner.tag}%.tagauth}
  3154. clear {ultimateclans.clan.%{ultimateclans.%{ultimateclans.clan.%arg 3%.ownername}%.owner.tag}%.tag.fullname}
  3155. clear {ultimateclans.clan.%{ultimateclans.%{ultimateclans.clan.%arg 3%.ownername}%.owner.tag}%.ownername}
  3156. clear {ultimateclans.%{ultimateclans.%{ultimateclans.clan.%arg 3%.ownername}%.owner.clanname}%.member-number}
  3157. clear {ultimateclans.clan.%{ultimateclans.%{ultimateclans.clan.%arg 3%.ownername}%.owner.clanname}%.claim.point}
  3158. loop {ultimateclans.%{ultimateclans.%{ultimateclans.clan.%arg 3%.ownername}%.owner.clanname}%.members::*}:
  3159. set {ultimateclans.%loop-value%.member} to false
  3160. delete {ultimateclans.%loop-value%.clan.tag}
  3161. delete {ultimateclans.%loop-value%.ownername}
  3162. delete {ultimateclans.%loop-value%.clan.name}
  3163. delete {ultimateclans.%{ultimateclans.%{ultimateclans.clan.%arg 3%.ownername}%.owner.clanname}%.members::*}
  3164. delete {ultimateclans.%{ultimateclans.%{ultimateclans.clan.%arg 3%.ownername}%.owner.clanname}%.member-number}
  3165. wait 2 tick
  3166. clear {ultimateclans.%{ultimateclans.clan.%arg 3%.ownername}%.owner.tag}
  3167. clear {ultimateclans.%{ultimateclans.clan.%arg 3%.ownername}%.owner.clanname}
  3168. send "%{tag}% &aPomyslnie usunieto klan!"
  3169. stop
  3170. else:
  3171. send "&cBlad!"
  3172. else:
  3173. send "&cNie masz uprawnien do uzywania tej komendy"
  3174. stop
  3175. if arg 1 is "mail" or "poczta" or "msg" or "message":
  3176. if player has permissions "ultimateclans.mail" or "ultimateclans.admin":
  3177. if arg 2 is not set:
  3178. if {ultimateclans.%name of player%.mailbox.sub::*} is set:
  3179. send "%{tag}% &aTematy:&7 %{ultimateclans.%name of player%.mailbox.sub::*}%"
  3180. stop
  3181. else:
  3182. if {ultimateclans.lang} is "pl":
  3183. send "%{tag}% &7Nie masz nowych wiadomosci"
  3184. stop
  3185. if {ultimateclans.lang} is "eng":
  3186. send "%{tag}% &7Nie masz nowych wiadomosci"
  3187. stop
  3188. if arg 2 is "przeczytaj" or "read":
  3189. if player has permissions "ultimateclans.mail" or "ultimateclans.admin":
  3190. if arg 3 is set:
  3191. loop {ultimateclans.%name of player%.mailbox.sub::*}:
  3192. if arg 3 is loop-value:
  3193. send "%{tag}% %{ultimateclans.%name of player%.mailbox.%arg 3%::*}%"
  3194. remove arg 3 from {ultimateclans.%name of player%.mailbox.sub::*}
  3195. clear {ultimateclans.%name of player%.mailbox.%arg 3%::*}
  3196. stop
  3197. else:
  3198. send "%{tag}% &c Nie ma takiej wiadomosci"
  3199. stop
  3200. else:
  3201. send "%{tag}% &cPodaj temat wiadomosci!"
  3202. stop
  3203. else:
  3204. send "&cNie masz uprawnien do uzywania tej komendy"
  3205. stop
  3206. if arg 1 is not {@commands.list.1}:
  3207. if arg 1 is not {@commands.list.2}:
  3208. send "%{tag}% &cNie ma takiej komendy!"
  3209. stop
  3210. if arg 1 is "autor" or "author" or "dzikoysk" or "ultimateclans" or "donate" or "tworca" or "clans":
  3211. send "&8--------------------------------"
  3212. send " &7Autor: &aDzikoysk"
  3213. send " &7Nazwa: &aUltimateClans"
  3214. send "&7 &7&nStrona:&a &nwww.Dzikoysk.net"
  3215. send "&8--------------------------------"
  3216. stop
  3217. if arg 1 is "mailbox" or "skrzynkapocztowa":
  3218. if player has permissions "ultimateclans.mail" or "ultimateclans.admin":
  3219. if {ultimateclans.lang} is "pl":
  3220. send "%{style}%-----------------[ %{style2}%Mailbox Clans%{style}% ]-----------------"
  3221. send "%{style}%/{@prefix} poczta &8-%{style2}% Pokazuje tematy wiadomosci"
  3222. send "%{style}%/{@prefix} poczta przeczytaj [temat] &8-%{style2}% Pokazuje wiadomosci o podanym temacie"
  3223. stop
  3224. if {ultimateclans.lang} is "eng":
  3225. send "%{style}%-----------------[ %{style2}%Mailbox Clans%{style}% ]-----------------"
  3226. send "%{style}%/{@prefix} mail &8-%{style2}% Pokazuje tematy wiadomosci"
  3227. send "%{style}%/{@prefix} mail read [topic] &8-%{style2}% Pokazuje wiadomosci o podanym temacie"
  3228. stop
  3229. else:
  3230. send "&cNie masz uprawnien do uzywania tej komendy"
  3231. stop
  3232. if arg 1 is "help" or "pomoc" or "p":
  3233. if arg 2 is not set:
  3234. if {ultimateclans.lang} is "pl":
  3235. send "%{style2}%--------------------[ %{style}% {@b.prefix} %{style2}% ] [%{style}%1%{style2}%/%{style}%2%{style2}%]------------------"
  3236. send "%{style}%/{@prefix} lista &8-%{style2}% Lista gildii"
  3237. send "%{style}%/{@prefix} profil &8-%{style2}% Twoja gildia"
  3238. send "%{style}%/{@prefix} profil [nazwa/tag] &8-%{style2}% Profil wybranej gildii"
  3239. send "%{style}%/{@prefix} stworz [nazwa] [tag] &8-%{style2}% Tworzy gildie"
  3240. send "%{style}%/{@prefix} zapros [gracz] &8-%{style2}% Zaprasza gracza do gildii"
  3241. send "%{style}%/{@prefix} dolacz &8-%{style2}% Akceptuje zaproszenie do gildii"
  3242. send "%{style}%/{@prefix} odrzuc &8-%{style2}% Odrzuca zaproszenie do gildii"
  3243. send "%{style}%/{@prefix} odejdz &8-%{style2}% Pozwala odejsc z gildii"
  3244. send "%{style}%/{@prefix} usun &8-%{style2}% Usuwa gildie"
  3245. stop
  3246. if {ultimateclans.lang} is "eng":
  3247. send "%{style2}%--------------------[ %{style}% {@b.prefix} %{style2}% ] [%{style}%1%{style2}%/%{style}%2%{style2}%]------------------"
  3248. send "%{style}%/{@prefix} list &8-%{style2}% Lista gildii"
  3249. send "%{style}%/{@prefix} profile &8-%{style2}% Twoja gildia"
  3250. send "%{style}%/{@prefix} profile [name/tag] &8-%{style2}% Profil wybranej gildii"
  3251. send "%{style}%/{@prefix} create [name] [tag] &8-%{style2}% Tworzy gildie"
  3252. send "%{style}%/{@prefix} invite [player] &8-%{style2}% Zaprasza gracza do gildii"
  3253. send "%{style}%/{@prefix} join &8-%{style2}% Akceptuje zaproszenie do gildii"
  3254. send "%{style}%/{@prefix} deny &8-%{style2}% Odrzuca zaproszenie do gildii"
  3255. send "%{style}%/{@prefix} leave &8-%{style2}% Pozwala odejsc z gildii"
  3256. send "%{style}%/{@prefix} delete &8-%{style2}% Usuwa gildie"
  3257. stop
  3258. if arg 2 is "1":
  3259. if {ultimateclans.lang} is "pl":
  3260. send "%{style2}%--------------------[ %{style}% {@b.prefix} %{style2}% ] [%{style}%1%{style2}%/%{style}%2%{style2}%]------------------"
  3261. send "%{style}%/{@prefix} lista &8-%{style2}% Lista gildii"
  3262. send "%{style}%/{@prefix} profil &8-%{style2}% Twoja gildia"
  3263. send "%{style}%/{@prefix} profil [nazwa/tag] &8-%{style2}% Profil wybranej gildii"
  3264. send "%{style}%/{@prefix} stworz [nazwa] [tag] &8-%{style2}% Tworzy gildie"
  3265. send "%{style}%/{@prefix} zapros [gracz] &8-%{style2}% Zaprasza gracza do gildii"
  3266. send "%{style}%/{@prefix} dolacz &8-%{style2}% Akceptuje zaproszenie do gildii"
  3267. send "%{style}%/{@prefix} odrzuc &8-%{style2}% Odrzuca zaproszenie do gildii"
  3268. send "%{style}%/{@prefix} odejdz &8-%{style2}% Pozwala odejsc z gildii"
  3269. send "%{style}%/{@prefix} usun &8-%{style2}% Usuwa gildie"
  3270. stop
  3271. if {ultimateclans.lang} is "eng":
  3272. send "%{style2}%--------------------[ %{style}% {@b.prefix} %{style2}% ] [%{style}%1%{style2}%/%{style}%2%{style2}%]------------------"
  3273. send "%{style}%/{@prefix} list &8-%{style2}% Lista gildii"
  3274. send "%{style}%/{@prefix} profile &8-%{style2}% Twoja gildia"
  3275. send "%{style}%/{@prefix} profile [name/tag] &8-%{style2}% Profil wybranej gildii"
  3276. send "%{style}%/{@prefix} create [name] [tag] &8-%{style2}% Tworzy gildie"
  3277. send "%{style}%/{@prefix} invite [player] &8-%{style2}% Zaprasza gracza do gildii"
  3278. send "%{style}%/{@prefix} join &8-%{style2}% Akceptuje zaproszenie do gildii"
  3279. send "%{style}%/{@prefix} deny &8-%{style2}% Odrzuca zaproszenie do gildii"
  3280. send "%{style}%/{@prefix} leave &8-%{style2}% Pozwala odejsc z gildii"
  3281. send "%{style}%/{@prefix} delete &8-%{style2}% Usuwa gildie"
  3282. stop
  3283. if arg 2 is "2":
  3284. if {ultimateclans.lang} is "pl":
  3285. send "%{style2}%--------------------[ %{style}% {@b.prefix} %{style2}% ] [%{style}%2%{style2}%/%{style}%2%{style2}%]------------------"
  3286. send "%{style}%/@ [tekst]&8-%{style2}% Chat klanu"
  3287. send "%{style}%/{@prefix} sojusz [nazwa]&8-%{style2}% Nawiazuje sojusz z wybrana gildia"
  3288. send "%{style}%/{@prefix} rozwiaz [nazwa]&8-%{style2}% Rozwiazuje sojusz z wybrana gildia"
  3289. send "%{style}%/{@prefix} zarzadzaj &8-%{style2}% Informacje o zarzadzaniu gildia"
  3290. send "%{style}%/{@prefix} zarzadzaj [funkcja] &8-%{style2}% Zarzadza wybrana funkcja"
  3291. send "%{style}%/{@prefix} pakty &8-%{style2}% Wszystko o paktach"
  3292. send "%{style}%/{@prefix} autor &8-%{style2}% Informacje o autorze"
  3293. stop
  3294. if {ultimateclans.lang} is "eng":
  3295. send "%{style2}%--------------------[ %{style}% {@b.prefix} %{style2}% ] [%{style}%2%{style2}%/%{style}%2%{style2}%]------------------"
  3296. send "%{style}%/@ [text]&8-%{style2}% Chat klanu"
  3297. send "%{style}%/{@prefix} sojusz [nazwa]&8-%{style2}% Nawiazuje sojusz z wybrana gildia"
  3298. send "%{style}%/{@prefix} rozwiaz [nazwa]&8-%{style2}% Rozwiazuje sojusz z wybrana gildia"
  3299. send "%{style}%/{@prefix} manage &8-%{style2}% Informacje o zarzadzaniu klanem"
  3300. send "%{style}%/{@prefix} manage [function] &8-%{style2}% Zarzadza wybrana funkcja"
  3301. send "%{style}%/{@prefix} mailbox &8-%{style2}% Informacje o skrzynce pocztowej"
  3302. send "%{style}%/{@prefix} author &8-%{style2}% Informacje o autorze"
  3303. stop
  3304. if arg 1 is not set:
  3305. if {ultimateclans.lang} is "pl":
  3306. send "%{style2}%--------------------[ %{style}% {@b.prefix} %{style2}% ] [%{style}%1%{style2}%/%{style}%2%{style2}%]------------------"
  3307. send "%{style}%/{@prefix} lista &8-%{style2}% Lista gildii"
  3308. send "%{style}%/{@prefix} profil &8-%{style2}% Twoja gildia"
  3309. send "%{style}%/{@prefix} profil [nazwa/tag] &8-%{style2}% Profil wybranej gildii"
  3310. send "%{style}%/{@prefix} stworz [nazwa] [tag] &8-%{style2}% Tworzy gildie"
  3311. send "%{style}%/{@prefix} zapros [gracz] &8-%{style2}% Zaprasza gracza do gildii"
  3312. send "%{style}%/{@prefix} dolacz &8-%{style2}% Akceptuje zaproszenie do gildii"
  3313. send "%{style}%/{@prefix} odrzuc &8-%{style2}% Odrzuca zaproszenie do gildii"
  3314. send "%{style}%/{@prefix} odejdz &8-%{style2}% Pozwala odejsc z gildii"
  3315. send "%{style}%/{@prefix} usun &8-%{style2}% Usuwa gildie"
  3316. stop
  3317. if {ultimateclans.lang} is "eng":
  3318. send "%{style2}%--------------------[ %{style}% {@b.prefix} %{style2}% ] [%{style}%1%{style2}%/%{style}%2%{style2}%]------------------"
  3319. send "%{style}%/{@prefix} list &8-%{style2}% Lista gildii"
  3320. send "%{style}%/{@prefix} profile &8-%{style2}% Twoja gildia"
  3321. send "%{style}%/{@prefix} profile [name/tag] &8-%{style2}% Profil wybranej gildii"
  3322. send "%{style}%/{@prefix} create [name] [tag] &8-%{style2}% Tworzy gildie"
  3323. send "%{style}%/{@prefix} invite [player] &8-%{style2}% Zaprasza gracza do gildii"
  3324. send "%{style}%/{@prefix} join &8-%{style2}% Akceptuje zaproszenie do gildii"
  3325. send "%{style}%/{@prefix} deny &8-%{style2}% Odrzuca zaproszenie do gildii"
  3326. send "%{style}%/{@prefix} leave &8-%{style2}% Pozwala odejsc z gildii"
  3327. send "%{style}%/{@prefix} delete &8-%{style2}% Usuwa gildie"
  3328. stop
  3329. if arg 1 is "1":
  3330. if {ultimateclans.lang} is "pl":
  3331. send "%{style2}%--------------------[ %{style}% {@b.prefix} %{style2}% ] [%{style}%1%{style2}%/%{style}%2%{style2}%]------------------"
  3332. send "%{style}%/{@prefix} lista &8-%{style2}% Lista gildii"
  3333. send "%{style}%/{@prefix} profil &8-%{style2}% Twoja gildia"
  3334. send "%{style}%/{@prefix} profil [nazwa/tag] &8-%{style2}% Profil wybranej gildii"
  3335. send "%{style}%/{@prefix} stworz [nazwa] [tag] &8-%{style2}% Tworzy gildie"
  3336. send "%{style}%/{@prefix} zapros [gracz] &8-%{style2}% Zaprasza gracza do gildii"
  3337. send "%{style}%/{@prefix} dolacz &8-%{style2}% Akceptuje zaproszenie do gildii"
  3338. send "%{style}%/{@prefix} odrzuc &8-%{style2}% Odrzuca zaproszenie do gildii"
  3339. send "%{style}%/{@prefix} odejdz &8-%{style2}% Pozwala odejsc z gildii"
  3340. send "%{style}%/{@prefix} usun &8-%{style2}% Usuwa gildie"
  3341. stop
  3342. if {ultimateclans.lang} is "eng":
  3343. send "%{style2}%--------------------[ %{style}% {@b.prefix} %{style2}% ] [%{style}%1%{style2}%/%{style}%2%{style2}%]------------------"
  3344. send "%{style}%/{@prefix} list &8-%{style2}% Lista gildii"
  3345. send "%{style}%/{@prefix} profile &8-%{style2}% Twoja gildia"
  3346. send "%{style}%/{@prefix} profile [name/tag] &8-%{style2}% Profil wybranej gildii"
  3347. send "%{style}%/{@prefix} create [name] [tag] &8-%{style2}% Tworzy gildie"
  3348. send "%{style}%/{@prefix} invite [player] &8-%{style2}% Zaprasza gracza do gildii"
  3349. send "%{style}%/{@prefix} join &8-%{style2}% Akceptuje zaproszenie do gildii"
  3350. send "%{style}%/{@prefix} deny &8-%{style2}% Odrzuca zaproszenie do gildii"
  3351. send "%{style}%/{@prefix} leave &8-%{style2}% Pozwala odejsc z gildii"
  3352. send "%{style}%/{@prefix} delete &8-%{style2}% Usuwa gildie"
  3353. stop
  3354. if arg 1 is "2":
  3355. if {ultimateclans.lang} is "pl":
  3356. send "%{style2}%--------------------[ %{style}% {@b.prefix} %{style2}% ] [%{style}%2%{style2}%/%{style}%2%{style2}%]------------------"
  3357. send "%{style}%/@ [tekst]&8-%{style2}% Chat klanu"
  3358. send "%{style}%/{@prefix} sojusz [nazwa]&8-%{style2}% Nawiazuje sojusz z wybrana gildia"
  3359. send "%{style}%/{@prefix} rozwiaz [nazwa]&8-%{style2}% Rozwiazuje sojusz z wybrana gildia"
  3360. send "%{style}%/{@prefix} zarzadzaj &8-%{style2}% Informacje o zarzadzaniu gildia"
  3361. send "%{style}%/{@prefix} zarzadzaj [funkcja] &8-%{style2}% Zarzadza wybrana funkcja"
  3362. send "%{style}%/{@prefix} pakty &8-%{style2}% Wszystko o paktach"
  3363. send "%{style}%/{@prefix} autor &8-%{style2}% Informacje o autorze"
  3364. stop
  3365. if {ultimateclans.lang} is "eng":
  3366. send "%{style2}%--------------------[ %{style}% {@b.prefix} %{style2}% ] [%{style}%2%{style2}%/%{style}%2%{style2}%]------------------"
  3367. send "%{style}%/@ [text]&8-%{style2}% Chat klanu"
  3368. send "%{style}%/{@prefix} sojusz [nazwa]&8-%{style2}% Nawiazuje sojusz z wybrana gildia"
  3369. send "%{style}%/{@prefix} rozwiaz [nazwa]&8-%{style2}% Rozwiazuje sojusz z wybrana gildia"
  3370. send "%{style}%/{@prefix} manage &8-%{style2}% Informacje o zarzadzaniu klanem"
  3371. send "%{style}%/{@prefix} manage [function] &8-%{style2}% Zarzadza wybrana funkcja"
  3372. send "%{style}%/{@prefix} mailbox &8-%{style2}% Informacje o skrzynce pocztowej"
  3373. send "%{style}%/{@prefix} author &8-%{style2}% Informacje o autorze"
  3374. stop
  3375.  
  3376.  
  3377. # -- Manage Command -- #
  3378. command /mngplayer <text> <player>:
  3379. trigger:
  3380. if {ultimateclans.SkriptPermissions.enable} is true:
  3381. stop
  3382. else:
  3383. if arg 1 is "invite":
  3384. if player has permissions "ultimateclans.default" or "ultimateclans.admin":
  3385. set {ultimateclans.%arg player%.invite.true} to true
  3386. set {ultimateclans.%arg player%.clan.name} to {ultimateclans.%name of player%.owner.clanname}
  3387. set {ultimateclans.%arg player%.ownername} to {ultimateclans.%name of player%.owner.name}
  3388. if arg player is online:
  3389. if {ultimateclans.lang} is "pl":
  3390. send "%{tag}% &aOtrzymano zaproszenie do klanu: %{ultimateclans.%name of player%.owner.clanname}%" to arg player
  3391. send "&a Aby dolaczyc uzyj &7/{@prefix} dolacz&a, jezeli chcesz odrzucic, uzyj &7/{@prefix} odrzuc" to arg player
  3392. if {ultimateclans.lang} is "eng":
  3393. send "%{tag}% &aOtrzymano zaproszenie do klanu: %{ultimateclans.%name of player%.owner.clanname}%" to arg player
  3394. send "&a Aby dolaczyc uzyj &7/{@prefix} join&a, jezeli chcesz odrzucic, uzyj &7/{@prefix} deny" to arg player
  3395. stop
  3396. if arg player is offline:
  3397. set {ultimateclans.%arg player%.invite.true} to true
  3398. set {ultimateclans.%arg player%.invite.clan} to {ultimateclans.%name of player%.owner.clanname}
  3399. set {ultimateclans.%arg player%.ownername} to {ultimateclans.%name of player%.owner.name}
  3400. set {ultimateclans.%arg player%.invite.offlinemode.clan} to {ultimateclans.%name of player%.owner.clanname}
  3401. set {ultimateclans.%arg player%.invite.offlinemode.tag} to {ultimateclans.%name of player%.owner.tag}
  3402. stop
  3403. else:
  3404. send "&cNie masz uprawnien do uzywania tej komendy"
  3405. stop
  3406. if arg 1 is "kick":
  3407. if player has permissions "ultimateclans.default" or "ultimateclans.admin":
  3408. if {ultimateclans.%arg player%.online} is true:
  3409. if {ultimateclans.tag} is true:
  3410. make console execute command "pex user %name of player% add NametagEdit.*"
  3411. wait 1 tick
  3412. make player execute command "ne prefix %name of player% &f"
  3413. make console execute command "pex user %name of player% remove NametagEdit.*"
  3414. if {ultimateclans.claim.method} is "wg" or "WG" or "Wg" or "WorldGuard" or "worldguard" or "Worldguard":
  3415. make console execute command "rg removemember -w %world of player% clans-%{ultimateclans.%arg player%.clan.name}% %arg player%"
  3416. remove arg player from {ultimateclans.%{ultimateclans.%name of player%.owner.clanname}%.members::*}
  3417. remove 1 from {ultimateclans.%{ultimateclans.%name of player%.owner.clanname}%.member-number}
  3418. set {ultimateclans.%arg player%.member} to false
  3419. clear {ultimateclans.%arg player%.clan.tag}
  3420. clear {ultimateclans.%arg player%.ownername}
  3421. clear {ultimateclans.%arg player%.clan.name}
  3422. loop 100 times:
  3423. send ""
  3424. send "%{tag}% &cWyrzucono Cie z klanu!" to arg player
  3425. if {ultimateclans.%arg player%.online} is false:
  3426. set {ultimateclans.%arg player%.kick.true} to true
  3427. if {ultimateclans.claim.method} is "wg" or "WG" or "Wg" or "WorldGuard" or "worldguard" or "Worldguard":
  3428. make console execute command "rg removemember -w %world of player% clans-%{ultimateclans.%arg player%.clan.name}% %arg player%"
  3429. send "%{tag}% &cWyrzucono Cie z klanu!" to arg player
  3430. remove arg player from {ultimateclans.%{ultimateclans.%name of player%.owner.clanname}%.members::*}
  3431. remove 1 from {ultimateclans.%{ultimateclans.%name of player%.owner.clanname}%.member-number}
  3432. set {ultimateclans.%arg player%.member} to false
  3433. clear {ultimateclans.%arg player%.clan.tag}
  3434. clear {ultimateclans.%arg player%.ownername}
  3435. clear {ultimateclans.%arg player%.clan.name}
  3436. set {ultimateclans.%arg player%.kick.true} to true
  3437. stop
  3438. else:
  3439. send "%{tag}% &cBlad! Powod: &7Online-Kick"
  3440. stop
  3441. else:
  3442. send "&cNie masz uprawnien do uzywania tej komendy"
  3443. stop
  3444. if arg 1 is "senddeny":
  3445. if {ultimateclans.SkriptPermissions.enable} is true:
  3446. stop
  3447. else:
  3448. if player has permissions "ultimateclans.default" or "ultimateclans.admin":
  3449. if arg player is online:
  3450. send "%{tag}% &cGracz:&7 %arg player% &codrzucil zaproszenie" to {ultimateclans.%name of player%.ownername}
  3451. if {ultimateclans.payitem.invite} is true:
  3452. if {ultimateclans.lang} is "eng":
  3453. send "&aMozesz odebrac przedmioty wykorzystane do zaproszenie gracza. Uzyj: &7/{@prefix} returnitem"
  3454. set {ultimateclans.returnitem.%player%} to true
  3455. stop
  3456. if {ultimateclans.lang} is "pl":
  3457. send "&aMozesz odebrac przedmioty wykorzystane do zaproszenie gracza. Uzyj: &7/{@prefix} zwroc"
  3458. set {ultimateclans.returnitem.%player%} to true
  3459. stop
  3460. if arg player is offline:
  3461. add "&cOdrzucono zaproszenie" to {ultimateclans.%{ultimateclans.%name of player%.ownername}%.mailbox.sub::*}
  3462. if {ultimateclans.lang} is "eng":
  3463. add "&cGracz:&7 %arg player% &codrzucil zaproszenie&c. Aby odebrac przedmioty wykorzystane do zaproszenie gracza. Uzyj: &7/clans returnitem" to {ultimateclans.%{ultimateclans.%name of player%.ownername}%.mailbox.Odrzucono zaproszenie::*}
  3464. stop
  3465. if {ultimateclans.lang} is "pl":
  3466. add "&cGracz:&7 %arg player% &codrzucil zaproszenie&c. Aby odebrac przedmioty wykorzystane do zaproszenie gracza. Uzyj: &7/clans zwroc" to {ultimateclans.%{ultimateclans.%name of player%.ownername}%.mailbox.Odrzucono zaproszenie::*}
  3467. stop
  3468. else:
  3469. send "&cNie masz uprawnien do uzywania tej komendy"
  3470. stop
  3471.  
  3472. command /mngsendinvite <player>:
  3473. trigger:
  3474. if {ultimateclans.%name of player%.invenable} is true:
  3475. set {ultimateclans.%name of player%.invenable} to false
  3476. send "%{tag}% &aOtrzymano zaproszenie do gildii: &7%{ultimateclans.%arg player%.i.invite.clanname}%" to arg player
  3477. send "&a Aby dolaczyc uzyj &7/{@prefix} dolacz&a, jezeli chcesz odrzucic, uzyj &7/{@prefix} odrzuc" to arg player
  3478. send "%{tag}% &aZaproszono gracza: &7%arg player%" to player
  3479. stop
  3480.  
  3481. command /mngsendkick <player>:
  3482. trigger:
  3483. if {ultimateclans.%name of player%.kickenable} is true:
  3484. set {ultimateclans.%name of player%.kickenable} to false
  3485. send "%{tag}% &cWyrzucono Cie z gildii &7%{ultimateclans.%arg player%.clan.name}%&c!" to arg player
  3486. stop
  3487.  
  3488. command /mngalliancesend <player>:
  3489. trigger:
  3490. if {ultimateclans.%name of player%.invenableclans} is true:
  3491. set {ultimateclans.%name of player%.invenableclans} to false
  3492. send "&aOtrzymano zaproszenie do sojuszu od gildii:&6 %{ultimateclans.%{ultimateclans.%name of player%.owner.clanname}%.i.inviteclannameclans}%" to arg player
  3493. if {ultimateclans.lang} is "pl":
  3494. send "&aAby przyjac zaproszenie wpisz &7/{@prefix} pakt sojusz akceptuj" to arg player
  3495. send "&aJezeli chcesz odrzucic, uzyj &7/{@prefix} pakt sojusz odrzuc" to arg player
  3496. if {ultimateclans.lang} is "eng":
  3497. send "&aAby przyjac zaproszenie wpisz &7/{@prefix} relation alliance accpet" to arg player
  3498. send "&aJezeli chcesz odrzucic, uzyj &7/{@prefix} relation alliance deny" to arg player
  3499. send "%{tag}% &aZaproszono gildie do sojuszu!" to player
  3500. stop
  3501.  
  3502. command /mngkick <player>:
  3503. trigger:
  3504. if {ultimateclans.%name of player%.kickenable} is true:
  3505. if {ultimateclans.%name of player%.owner.clanname} is {ultimateclans.%arg player%.clan.name}:
  3506. if {ultimateclans.%arg player%.online} is true:
  3507. send "&aWyrzucono gracza z gildii"
  3508. make arg player execute command "clans odejdz"
  3509. stop
  3510. if {ultimateclans.%arg player%.online} is false:
  3511. send "&aWyrzucono gracza z gildii"
  3512. set {ultimateclans.%arg player%.kick.true} to true
  3513. stop
  3514.  
  3515. # -- End of Manage Commands -- #
  3516.  
  3517. # -- Clans Chat -- #
  3518. command /@ <text>:
  3519. trigger:
  3520. if {ultimateclans.%name of player%.owner} is true:
  3521. set {_prefix} to "&8@ &7&l[Zalozyciel]"
  3522. if {ultimateclans.%name of player%.member} is true:
  3523. set {_prefix} to "&8@ &7&o[Czlonek]"
  3524. if {ultimateclans.%name of player%.mod} is true:
  3525. set {_prefix} to "&8@ &7[Moderator]"
  3526. if {ultimateclans.%name of player%.owner} is true:
  3527. set {ultimateclans.%name of player%.member} to true
  3528. set {ultimateclans.%name of player%.clan.name} to {ultimateclans.%name of player%.owner.clanname}
  3529. wait 1 tick
  3530. if {ultimateclans.%name of player%.member} is true:
  3531. loop {ultimateclans.%{ultimateclans.%name of player%.clan.name}%.members::*}:
  3532. if loop-value is online:
  3533. send "%{_prefix}% %{style}%%name of player%&7: %arg 1%" to loop-value
  3534. set {ultimateclans.%name of player%.member} to false
  3535. clear {ultimateclans.%name of player%.clan.name}
  3536. stop
  3537. else:
  3538. send "&cNikt nie jest online!"
  3539. set {ultimateclans.%name of player%.member} to false
  3540. clear {ultimateclans.%name of player%.clan.name}
  3541. stop
  3542. stop
  3543. stop
  3544. if {ultimateclans.%name of player%.member} is true:
  3545. loop {ultimateclans.%{ultimateclans.%name of player%.clan.name}%.members::*}:
  3546. if loop-value is online:
  3547. send "%{_prefix}% %{style}%%name of player%&7: %arg 1%" to loop-value
  3548. stop
  3549. else:
  3550. send "&cNikt nie jest online!"
  3551. stop
  3552. else:
  3553. send "&cMusisz byc w gildii, aby uzywac tego czatu!!"
  3554. stop
  3555. # -- End of Clans Chat -- #
  3556.  
  3557. #--------#
  3558. # Events #
  3559. #--------#
  3560.  
  3561. # -- SetInfo Event
  3562. On chat:
  3563. if {ultimateclans.info.set.%name of player%} is true:
  3564. clear {ultimateclans.clan.%{ultimateclans.%name of player%.owner.clanname}%.info}
  3565. clear {ultimateclans.clan.%{ultimateclans.%name of player%.owner.tag}%.info}
  3566. send "%{tag}% &aUstawiono" to player
  3567. set {ultimateclans.clan.%{ultimateclans.%name of player%.owner.clanname}%.info} to message
  3568. set {ultimateclans.info.set.%name of player%} to false
  3569. cancel event
  3570.  
  3571.  
  3572. # -- Offline-mode
  3573. on join:
  3574. if {ultimateclans.%name of player%.i.invite} is true:
  3575. wait 10 second
  3576. if {ultimateclans.lang} is "pl":
  3577. send "%{tag}% &aOtrzymano zaproszenie do klanu: %{ultimateclans.%name of player%.i.invite.clanname}%" to player
  3578. send "&a Aby dolaczyc uzyj &7/{@prefix} dolacz&a, jezeli chcesz odrzucic, uzyj &7/{@prefix} odrzuc" to player
  3579. if {ultimateclans.lang} is "eng":
  3580. send "%{tag}% &aOtrzymano zaproszenie do klanu: %{ultimateclans.%name of player%.i.invite.clanname}%" to player
  3581. send "&a Aby dolaczyc uzyj &7/{@prefix} join&a, jezeli chcesz odrzucic, uzyj &7/{@prefix} deny" to player
  3582. if {ultimateclans.%name of player%.owner} is true:
  3583. if {ultimateclans.%{ultimateclans.%name of player%.owner.clanname}%.i.inviteclans} is true:
  3584. wait 10 seconds
  3585. send "&aOtrzymano zaproszenie do sojuszu od gildii: &6%{ultimateclans.%{ultimateclans.%name of player%.owner.clanname}%.i.inviteclannameclans}%"
  3586. if {ultimateclans.lang} is "pl":
  3587. send "&aAby przyjac zaproszenie wpisz &7/{@prefix} pakt sojusz akceptuj"
  3588. send "&aJezeli chcesz odrzucic, uzyj &7/{@prefix} pakt sojusz odrzuc"
  3589. if {ultimateclans.lang} is "eng":
  3590. send "&aAby przyjac zaproszenie wpisz &7/{@prefix} relation alliance accpet"
  3591. send "&aJezeli chcesz odrzucic, uzyj &7/{@prefix} relation alliance deny"
  3592. if {ultimateclans.%name of player%.kick.true} is true:
  3593. wait 15 seconds
  3594. if {ultimateclans.tag} is true:
  3595. make console execute command "pex user %name of player% add NametagEdit.*"
  3596. wait 1 tick
  3597. make player execute command "ne prefix %name of player% &f"
  3598. make console execute command "pex user %name of player% remove NametagEdit.*"
  3599. loop 100 times:
  3600. send ""
  3601. send "&cWyrzucono Cie z klanu!"
  3602. set {ultimateclans.%name of player%.kick.true} to false
  3603.  
  3604. # -- Support -- #
  3605. command /uctest [<text>]:
  3606. aliases: ucdzikoysk
  3607. trigger:
  3608. if arg 1 is "display":
  3609. send "1. Name Of Player = %name of player%"
  3610. send "2. Player = %player%"
  3611. send "3. Display Name Of Player = %display name of player%"
  3612. send "4. Coloured Player's Prefix = %coloured player's prefix%"
  3613. send "5. Uncoloured Player's Prefix = %uncoloured player's prefix%"
  3614. send "4. Coloured Player's Suffix = %coloured player's suffix%"
  3615. send "5. Uncoloured Player's Suffix = %uncoloured player's suffix%"
  3616. stop
  3617. else:
  3618. set {_dzikoysk} to "%name of player%"
  3619. if {_dzikoysk} is "Dzikoysk":
  3620. send "&cWitaj Dzikoysk! Ten serwer oparty jest o: &6UltimateClans"
  3621. send "&c* Dzikoysk say:"
  3622. send "&8----------------------------"
  3623. send "&8Serwerowa wersja Skript: %skript version%"
  3624. send "&8Wymagana: Skript Beta 10"
  3625. send "&8----------------------------"
  3626. send "&8Wersja skryptu: {@version}"
  3627. send "&8----------------------------"
  3628. send "&8----------------------------"
  3629. send "&8Prefix: {@prefix}"
  3630. send "&8----------------------------"
  3631. send "&8[Args] Display"
  3632. stop
  3633. # -- End of Support -- @#
  3634.  
  3635.  
  3636. # -- Config load on Start -- #
  3637. on Skript start:
  3638. send "" to console
  3639. send "&8--------------------------------------------------------------" to the console
  3640. send "&8| |" to the console
  3641. send "&8| Enable &eUltimateClans &8 |" to the console
  3642. send "&8| |" to the console
  3643. send "&8--------------------------------------------------------------" to the console
  3644. send "" to the console
  3645. send "&8Author: &eDzikoysk" to the console
  3646. send "&8Version: &7{@version}" to the console
  3647. send "" to the console
  3648. set {ultimateclans.lang} to "{@lang}"
  3649. set {ultimateclans.mailbox.enable} to {@mailbox}
  3650. set {ultimateclans.payitem.enable} to {@payitem}
  3651. set {ultimateclans.autoclaim.enable} to {@auto.claim}
  3652. set {ultimateclans.stats.message} to {@stats.message}
  3653. set {ultimateclans.claim.method} to "{@claim.method}"
  3654. set {ultimateclans.chunk.msg} to {@chunk.msg}
  3655. set {ultimateclans.setblock} to {@claim.setblock}
  3656. set {ultimateclans.safe.chest} to {@claim.safe.chest}
  3657. set {ultimateclans.safe.break} to {@claim.safe.break}
  3658. set {ultimateclans.safe.place} to {@claim.safe.place}
  3659. set {ultimateclans.safe.flint and steel} to {@claim.safe.flint and steel}
  3660. set {ultimateclans.safe.bucket} to {@claim.safe.bucket}
  3661. set {ultimateclans.worldguard.size} to {@claim.size}
  3662. set {ultimateclans.setnamecolor} to {@set.name.color}
  3663. set {ultimateclans.pvp} to {@pvp}
  3664. set {ultimateclans.tp.cooldown} to {@tp.cooldown}
  3665. set {ultimateclans.pvp.ownerset} to {@pvp.owner}
  3666. set {ultimateclans.ultimatechat} to {@ultimatechat.enable}
  3667. set {ultimateclans.paymoney.cost} to {@paymoney.create.cost}
  3668. set {ultimateclans.paymoney.enable} to {@paymoney.enable}
  3669. set {ultimateclans.vault} to {@vault}
  3670. set {ultimateclans.paymoney.invite} to {@paymoney.invite}
  3671. set {ultimateclans.paymoney.invite.cost} to {@paymoney.invite.cost}
  3672. set {ultimateclans.payitem.invite} to {@payitem.invite}
  3673. set {ultimateclans.payitem.invite.cost} to "{@payitem.invite.cost}"
  3674. set {ultimateclans.claim.wg.farewell} to {@claim.wg.farewell}
  3675. set {ultimateclans.claim.wg.greeting} to {@claim.wg.greeting}
  3676. set {_chest} to {@claim.wg.chest}
  3677. set {ultimateclans.cliam.sethome} to {@claim.sethome}
  3678. set {ultimateclans.level.take} to {@level.take}
  3679. set {ultimateclans.broadcast} to {@broadcast.enable}
  3680. set {ultimateclans.broadcast.time} to {@broadcast.time}
  3681. set {ultimateclans.tab} to {@tab}
  3682. set {ultimateclans.tab.color} to "{@tab.color}"
  3683. set {ultimateclans.tag} to {@tag}
  3684. set {ultimateclans.tag.color} to "{@tag.color}"
  3685. set {ultimateclans.tag.color.nick} to "{@tag.color.nick}"
  3686. wait 1 tick
  3687. if {_chest} is true:
  3688. set {ultimateclans.wg.chest} to false
  3689. if {_chest} is false:
  3690. set {ultimateclans.wg.chest} to true
  3691. set {ultimateclans.style} to "{@style}"
  3692. if {ultimateclans.style} is "gy":
  3693. set {style} to "&7"
  3694. set {style2} to "&6"
  3695. if {ultimateclans.style} is "gg":
  3696. set {style} to "&a"
  3697. set {style2} to "&8"
  3698. if {ultimateclans.style} is "bg":
  3699. set {style} to "&9"
  3700. set {style2} to "&7"
  3701. if {ultimateclans.style} is "mg":
  3702. set {style} to "&3"
  3703. set {style2} to "&7"
  3704. if {style} is "&a":
  3705. set {tag} to "{@tag|gg}"
  3706. if {style} is "&7":
  3707. set {tag} to "{@tag|gy}"
  3708. if {style} is "&9":
  3709. set {tag} to "{@tag|bg}"
  3710. if {style} is "&3":
  3711. set {tag} to "{@tag|mg}"
  3712. wait 1 tick
  3713. if {ultimateclans.payitem.enable} is true:
  3714. set {ultimateclans.payitem.allitem} to "{@payitem.slot.1}, {@payitem.slot.2}, {@payitem.slot.3}, {@payitem.slot.4}, and {@payitem.slot.5}"
  3715. set {broadcast.timmer} to 0
  3716. loop {ultimateclans.clanlist::*}:
  3717. if {ultimateclans.clan.%loop-value%.pvp} is not set:
  3718. set {ultimateclans.clan.%loop-value%.pvp} to {@pvp}
  3719.  
  3720. # -- End of Load -- #
  3721.  
  3722. # -- Plugins List -- #
  3723. on command "plugins":
  3724. wait 3 tick
  3725. stop
  3726. send "&6UltimateClans &7by Dzikoysk"
  3727.  
  3728. on command "pl":
  3729. wait 3 tick
  3730. stop
  3731. send "&6UltimateClans &7by Dzikoysk"
  3732.  
  3733. on command "plugin":
  3734. wait 3 tick
  3735. stop
  3736. send "&6UltimateClans &7by Dzikoysk"
  3737. # -- End of Plugin List -- #
  3738.  
  3739. # -- Mailbox and Player Info -- #
  3740. on join:
  3741. set {ultimateclans.%name of player%.player} to true
  3742. set {ultimateclans.%name of player%.online} to true
  3743. if {ultimateclans.%name of player%.kill} is not set:
  3744. set {ultimateclans.%name of player%.kill} to 0
  3745. if {ultimateclans.%name of player%.death} is not set:
  3746. set {ultimateclans.%name of player%.death} to 0
  3747. set {ultimateclans.%name of player%.lastlogin} to now
  3748. if {ultimateclans.mailbox.enable} is true:
  3749. if {ultimateclans.%name of player%.mailbox.msg} is true:
  3750. if {ultimateclans.lang} is "eng":
  3751. send "%{tag}% &8Masz nowe wiadomosci. Aby sprawdzic uzyj &7/{@prefix} mail"
  3752. stop
  3753. if {ultimateclans.lang} is "pl":
  3754. send "%{tag}% &8Masz nowe wiadomosci. Aby sprawdzic uzyj &7/{@prefix} poczta"
  3755. stop
  3756.  
  3757. # -- Logout -- #
  3758. on logout:
  3759. set {ultimateclans.%name of player%.online} to false
  3760. # -- End of Logout -- #
  3761.  
  3762. every 10 second:
  3763. loop all players:
  3764. if {ultimateclans.%loop-player%.loop-value} is true:
  3765. if {ultimateclans.tag} is true:
  3766. make console execute command "pex user %loop-player% add NametagEdit.*"
  3767. wait 1 tick
  3768. make loop-player execute command "ne prefix %loop-player% &f"
  3769. make console execute command "pex user %loop-player% remove NametagEdit.*"
  3770. set {ultimateclans.%loop-player%.loop-value} to false
  3771. loop 100 times:
  3772. send "" to loop-player
  3773. send "&cGildia zostala rozwiazana!" to loop-player
  3774.  
  3775. # -- Alert -- #
  3776. every 5 minutes:
  3777. loop all players:
  3778. if {ultimateclans.%name of loop-players%.i.invite} is true:
  3779. if {ultimateclans.lang} is "pl":
  3780. send "%{tag}% &aOtrzymano zaproszenie do klanu: %{ultimateclans.%loop-player%.i.invite.clanname}%" to loop-player
  3781. send "&a Aby dolaczyc uzyj &7/{@prefix} dolacz&a, jezeli chcesz odrzucic, uzyj &7/{@prefix} odrzuc" to loop-player
  3782. if {ultimateclans.lang} is "eng":
  3783. send "%{tag}% &aOtrzymano zaproszenie do klanu: %{ultimateclans.%loop-player%.i.invite.clanname}%" to loop-player
  3784. send "&a Aby dolaczyc uzyj &7/{@prefix} join&a, jezeli chcesz odrzucic, uzyj &7/{@prefix} deny" to loop-player
  3785. if {ultimateclans.%{ultimateclans.%name of loop-player%.owner.clanname}%.i.inviteclans} is true:
  3786. send "&aOtrzymano zaproszenie do sojuszu od gildii: &6%{ultimateclans.%{ultimateclans.%loop-player%.owner.clanname}%.i.inviteclannameclans}%" to loop-player
  3787. if {ultimateclans.lang} is "pl":
  3788. send "&aAby przyjac zaproszenie wpisz &7/{@prefix} pakt sojusz akceptuj" to loop-player
  3789. send "&aJezeli chcesz odrzucic, uzyj &7/{@prefix} pakt sojusz odrzuc" to loop-player
  3790. if {ultimateclans.lang} is "eng":
  3791. send "&aAby przyjac zaproszenie wpisz &7/{@prefix} relation alliance accpet" to loop-player
  3792. send "&aJezeli chcesz odrzucic, uzyj &7/{@prefix} relation alliance deny" to loop-player
  3793. # -- End of Alert -- #
  3794.  
  3795. # -- Broadcast -- #
  3796. every 1 minute:
  3797. if {ultimateclans.broadcast} is true:
  3798. add 1 to {broadcast.timmer}
  3799. if {broadcast.timmer} is greater than {ultimateclans.broadcast.time}-1:
  3800. loop all players in "{@world}":
  3801. send "%{style}%Nazwa gildii nie moze zawierac znakow specjalnych: %{style2}%@$&%{style}%, oraz nie moze zawierac %{style2}%spacji%{style}%. Tag nie moze byc dluzszy niz %{style2}%5 znakow!" to loop-player
  3802. set {broadcast.timmer} to 0
  3803. stop
  3804. # -- End of Broadcast -- #
  3805.  
  3806.  
  3807.  
  3808. # -- UltimateChat -- #
  3809. on chat:
  3810. set {_chat} to "{@ultimatechat}"
  3811. if {ultimateclans.%name of player%.owner} is true:
  3812. replace all "{TAG}" with "%{ultimateclans.%name of player%.owner.tag}%" in {_chat}
  3813. if {ultimateclans.%name of player%.member} is true:
  3814. replace all "{TAG}" with "%{ultimateclans.%name of player%.clan.tag}%" in {_chat}
  3815. replace all "{@ultimatechat-tag}" with "" in {_chat}
  3816. replace all "{RANK}" with "%colored player's prefix%" in {_chat}
  3817. replace all "{PLAYER}" with "%player%" in {_chat}
  3818. replace all "{DISPLAY}" with "%display name of player%" in {_chat}
  3819. replace all "{MESSAGE}" with "%message%" in {_chat}
  3820. send "%{_chat}%" to all players
  3821. cancel event
  3822. # -- End of UltimateChat -- #
  3823.  
  3824.  
  3825. # -- Script list -- #
  3826. on command "skrypty":
  3827. wait 3 tick
  3828. send "&7Script: &6UltimateClans &7by Dzikoysk"
  3829.  
  3830. on command "skrypt":
  3831. wait 3 tick
  3832. send "&7Script: &6UltimateClans &7by Dzikoysk"
  3833.  
  3834. on command "skript":
  3835. wait 3 tick
  3836. send "&7Script: &6UltimateClans &7by Dzikoysk"
  3837. # -- End of Script List -- #
  3838.  
  3839. # -- Stats events -- #
  3840. on death:
  3841. if victim is a player:
  3842. if victim's world isn't "{@disable}":
  3843. add 1 to {ultimateclans.%victim%.death}
  3844. if {ultimateclans.stats.message} is true:
  3845. send "{@tag.stats} &a+1" to attacker
  3846. if {ultimateclans.%name of attacker%.member} is true:
  3847. add 1 to {ultimateclans.clan.%{ultimateclans.%name of attacker%.clan.name}%.killall}
  3848. if {ultimateclans.%name of victim%.member} is true:
  3849. add 1 to {ultimateclans.clan.%{ultimateclans.%name of victim%.clan.name}%.deathall}
  3850. if {ultimateclans.%name of attacker%.owner} is true:
  3851. add 1 to {ultimateclans.clan.%{ultimateclans.%name of attacker%.owner.clanname}%.killall}
  3852. if {ultimateclans.%name of victim%.owner} is true:
  3853. add 1 to {ultimateclans.clan.%{ultimateclans.%name of victim%.owner.clanname}%.deathall}
  3854. if {ultimateclans.stats.message} is true:
  3855. send "{@tag.stats} &c-1" to victim
  3856. # -- End of Stats -- #
  3857.  
  3858.  
  3859.  
  3860. # Chunk events
  3861. on break:
  3862. if player's world isn't "{@disable}":
  3863. if {ultimateclans.claim.method} is "chunk" or "Chunk":
  3864. if {ultimateclans.safe.break} is true:
  3865. if {ultimateclans.chunk::%chunk at player%} is set:
  3866. if {ultimateclans.chunk::%chunk at player%} is {ultimateclans.%name of player%.clan.name}:
  3867. stop
  3868. if {ultimateclans.chunk::%chunk at player%} is {ultimateclans.%name of player%.owner.clanname}:
  3869. stop
  3870. else:
  3871. cancel event
  3872. send "%{tag}% &cNie mozna niszczyc na terenie innej gildii!"
  3873. stop
  3874.  
  3875. on place:
  3876. if player's world isn't "{@disable}":
  3877. if {ultimateclans.claim.method} is "chunk" or "Chunk":
  3878. if {ultimateclans.safe.place} is true:
  3879. if {ultimateclans.chunk::%chunk at player%} is set:
  3880. if {ultimateclans.chunk::%chunk at player%} is {ultimateclans.%name of player%.clan.name}:
  3881. stop
  3882. if {ultimateclans.chunk::%chunk at player%} is {ultimateclans.%name of player%.owner.clanname}:
  3883. stop
  3884. else:
  3885. cancel event
  3886. send "%{tag}% &cNie mozna budowac na terenie innej gildii!"
  3887. stop
  3888.  
  3889. On Bucket fill:
  3890. if player's world isn't "{@disable}":
  3891. if {ultimateclans.claim.method} is "chunk" or "Chunk":
  3892. if {ultimateclans.safe.bucket} is true:
  3893. if {ultimateclans.chunk::%chunk at player%} is set:
  3894. if {ultimateclans.chunk::%chunk at player%} is {ultimateclans.%name of player%.clan.name}:
  3895. stop
  3896. if {ultimateclans.chunk::%chunk at player%} is {ultimateclans.%name of player%.owner.clanname}:
  3897. stop
  3898. else:
  3899. cancel event
  3900. send "%{tag}% &cNie mozna zabierac wody/lawy z terenu innej gildii!"
  3901. stop
  3902.  
  3903. On Bucket Empty:
  3904. if player's world isn't "{@disable}":
  3905. if {ultimateclans.claim.method} is "chunk" or "Chunk":
  3906. if {ultimateclans.safe.bucket} is true:
  3907. if {ultimateclans.chunk::%chunk at player%} is set:
  3908. if {ultimateclans.chunk::%chunk at player%} is {ultimateclans.%name of player%.clan.name}:
  3909. stop
  3910. if {ultimateclans.chunk::%chunk at player%} is {ultimateclans.%name of player%.owner.clanname}:
  3911. stop
  3912. else:
  3913. cancel event
  3914. send "%{tag}% &cNie mozna wylewac wody/lawy na teren innej gildii!"
  3915. stop
  3916.  
  3917. On rightclick on chest:
  3918. if player's world isn't "{@disable}":
  3919. if {ultimateclans.claim.method} is "chunk" or "Chunk":
  3920. if {ultimateclans.safe.chest} is true:
  3921. if {ultimateclans.chunk::%chunk at player%} is set:
  3922. if {ultimateclans.chunk::%chunk at player%} is {ultimateclans.%name of player%.clan.name}:
  3923. stop
  3924. if {ultimateclans.chunk::%chunk at player%} is {ultimateclans.%name of player%.owner.clanname}:
  3925. stop
  3926. else:
  3927. send "%{tag}% &cNie mozna otwierac skrzyn innej gildii!"
  3928. cancel event
  3929.  
  3930. On rightclick holding a flint and steel:
  3931. if player's world isn't "{@disable}":
  3932. if {ultimateclans.claim.method} is "chunk" or "Chunk":
  3933. if {ultimateclans.safe.flint and steel} is true:
  3934. if {ultimateclans.chunk::%chunk at player%} is set:
  3935. if {ultimateclans.chunk::%chunk at player%} is {ultimateclans.%name of player%.clan.name}:
  3936. stop
  3937. if {ultimateclans.chunk::%chunk at player%} is {ultimateclans.%name of player%.owner.clanname}:
  3938. stop
  3939. else:
  3940. send "%{tag}% &cNie mozna podpalac terenu innej gildii!"
  3941. cancel event
  3942.  
  3943. On Bed Enter:
  3944. if player's world isn't "{@disable}":
  3945. if {ultimateclans.claim.method} is "chunk" or "Chunk":
  3946. if {ultimateclans.safe.bed} is true:
  3947. if {ultimateclans.chunk::%chunk at player%} is set:
  3948. if {ultimateclans.chunk::%chunk at player%} is {ultimateclans.%name of player%.clan.name}:
  3949. stop
  3950. if {ultimateclans.chunk::%chunk at player%} is {ultimateclans.%name of player%.owner.clanname}:
  3951. stop
  3952. else:
  3953. send "%{tag}% &cNie mozna spac na terenie innej gildii!"
  3954. cancel event
  3955.  
  3956. # -- PvP Disable Event -- #
  3957. on damage:
  3958. if victim is a player:
  3959. if victim's world isn't "{@disable}":
  3960. if attacker is a player:
  3961. if {ultimateclans.%name of victim%.owner.clanname} is {ultimateclans.%name of attacker%.clan.name}:
  3962. cancel event
  3963. stop
  3964. if {ultimateclans.%name of victim%.owner.clanname} is {ultimateclans.%name of attacker%.owner.clanname}:
  3965. cancel event
  3966. stop
  3967. if {ultimateclans.%name of victim%.clan.name} is {ultimateclans.%name of attacker%.clan.name}:
  3968. cancel event
  3969. stop
  3970. if {ultimateclans.%name of victim%.clan.name} is {ultimateclans.%name of attacker%.owner.clanname}:
  3971. cancel event
  3972. stop
  3973. else:
  3974. if {ultimateclans.%{ultimateclans.%name of attacker%.clan.name}%.rel.%{ultimateclans.%name of attacker%.clan.name}%} is true:
  3975. cancel event
  3976. stop
  3977. if {ultimateclans.%{ultimateclans.%name of attacker%.clan.name}%.rel.%{ultimateclans.%name of attacker%.owner.clanname}%} is true:
  3978. cancel event
  3979. stop
  3980. if {ultimateclans.%{ultimateclans.%name of attacker%.owner.clanname}%.rel.%{ultimateclans.%name of attacker%.clan.name}%} is true:
  3981. cancel event
  3982. stop
  3983. if {ultimateclans.%{ultimateclans.%name of attacker%.owner.clanname}%.rel.%{ultimateclans.%name of attacker%.owner.clanname}%} is true:
  3984. cancel event
  3985. stop
  3986. if {ultimateclans.%{ultimateclans.%name of victim%.clan.name}%.rel.%{ultimateclans.%name of attacker%.clan.name}%} is true:
  3987. cancel event
  3988. stop
  3989. if {ultimateclans.%{ultimateclans.%name of victim%.clan.name}%.rel.%{ultimateclans.%name of attacker%.owner.clanname}%} is true:
  3990. cancel event
  3991. stop
  3992. if {ultimateclans.%{ultimateclans.%name of victim%.owner.clanname}%.rel.%{ultimateclans.%name of attacker%.clan.name}%} is true:
  3993. cancel event
  3994. stop
  3995. if {ultimateclans.%{ultimateclans.%name of victim%.owner.clanname}%.rel.%{ultimateclans.%name of attacker%.owner.clanname}%} is true:
  3996. cancel event
  3997. stop
  3998.  
  3999. # -- End of PvP Disable Event -- #
  4000.  
  4001.  
  4002. # -- Walking event - Chunk Function -- #
  4003. on walking on stone or grass or cobblestone or wood or any wool or sandstone or netherrack or glowstone or sand or gravel or snow or stone brick:
  4004. if player's world is "{@world}":
  4005. # '
  4006. if {ultimateclans.claim.method} is "chunk" or "Chunk":
  4007. if {ultimateclans.chunk.msg} is true:
  4008. if {ultimateclans.chunk::%chunk at player%} is set:
  4009. if {ultimateclans.chunk::%chunk at player%} is {ultimateclans.%name of player%.clan.name}:
  4010. if {ultimateclans.chunk.number.%name of player%} is 1:
  4011. stop
  4012. else:
  4013. send "%{tag}% &aJestes na terenie swojej gildii!"
  4014. add 1 to {ultimateclans.chunk.setmy.number.%name of player%}
  4015. set {ultimateclans.chunk.set.my.%name of player%} to true
  4016. if {ultimateclans.setnamecolor} is true:
  4017. set the player's display name to "&a%name of player%"
  4018. stop
  4019. if {ultimateclans.chunk::%chunk at player%} is {ultimateclans.%name of player%.owner.clanname}:
  4020. if {ultimateclans.chunk.setmy.number.%name of player%} is 1:
  4021. stop
  4022. else:
  4023. send "%{tag}% &aJestes na terenie swojej gildii!"
  4024. add 1 to {ultimateclans.chunk.setmy.number.%name of player%}
  4025. set {ultimateclans.chunk.set.my.%name of player%} to true
  4026. if {ultimateclans.setnamecolor} is true:
  4027. set the player's display name to "&a%name of player%"
  4028. stop
  4029. else:
  4030. if {ultimateclans.chunk.set.number.%name of player%} is 1:
  4031. stop
  4032. else:
  4033. send "%{tag}% &7Znajdujesz sie na terenie innej gildii! &7[%{ultimateclans.clan.%{ultimateclans.chunk::%chunk at player%}%.name}%]"
  4034. set {ultimateclans.chunk.info.%name of player%} to {ultimateclans.clan.%{ultimateclans.chunk::%chunk at player%}%.name}
  4035. add 1 to {ultimateclans.chunk.set.number.%name of player%}
  4036. set {ultimateclans.chunk.set.other.%name of player%} to true
  4037. if {ultimateclans.setnamecolor} is true:
  4038. set the player's display name to "&c%name of player%"
  4039. stop
  4040. else:
  4041. # '
  4042. if {ultimateclans.chunk.set.other.%name of player%} is true:
  4043. send "%{tag}% &7Opuszczono teren gildii &7%{ultimateclans.chunk.info.%name of player%}%"
  4044. set {ultimateclans.chunk.set.other.%name of player%} to false
  4045. remove 1 from {ultimateclans.chunk.set.number.%name of player%}
  4046. clear {ultimateclans.chunk.info.%name of player%}
  4047. if {ultimateclans.setnamecolor} is true:
  4048. set the player's display name to "&f%name of player%"
  4049. stop
  4050. # '
  4051. if {ultimateclans.chunk.set.my.%name of player%} is true:
  4052. send "%{tag}% &cNie jestes juz na terenie swojej gildii!"
  4053. set {ultimateclans.chunk.set.my.%name of player%} to false
  4054. remove 1 from {ultimateclans.chunk.setmy.number.%name of player%}
  4055. if {ultimateclans.setnamecolor} is true:
  4056. set the player's display name to "&f%name of player%"
  4057. # '
  4058. stop
  4059. # -- End of walking event -- #
  4060.  
  4061.  
  4062. #------------------------------------------------ End of Script / Thanks for Use ------------------------------------------------#
  4063. #--------------------------------------- © by Dzikoysk - Author / Site: www.Dzikoysk.net ----------------------------------------#
Advertisement
Add Comment
Please, Sign In to add comment