Advertisement
Guest User

Untitled

a guest
Jan 24th, 2020
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 25.17 KB | None | 0 0
  1. options:
  2. #--------------------------> Start Konfiguracji <-----------------------------#
  3. # +-----------------------------------------------+ #
  4. # Ustawienia generalne #
  5. # +-----------------------------------------------+ #
  6. # Na którym świecie mają działać działki:
  7. world: world
  8.  
  9. # Tag skryptu:
  10. tag: &4&lDZIALKA &8&l>
  11. # +-----------------------------------------------+ #
  12. # Ustawienia platnosci #
  13. # +-----------------------------------------------+ #
  14.  
  15. # Płatność itemami (true/false):
  16. payitem: false
  17.  
  18. # Przedmioty do stworzenia cuba (ilosc item/none):
  19. payitem.slot.1: 2 diamond
  20. payitem.slot.2: 5 gold ingot
  21. payitem.slot.3: 20 coal
  22. payitem.slot.4: 2 obsidian
  23. payitem.slot.5: 10 iron ingot
  24.  
  25. # +-----------------------------------------------+ #
  26. # Ustawienia Dzialki #
  27. # +-----------------------------------------------+ #
  28.  
  29. # Odleglosc od spawnu, gdzie mozna juz stawiac dzialki:
  30. spawn.distance: 300
  31.  
  32. # Wielkosc dzialki (promien):
  33. dzialka.size: 30
  34.  
  35. # Wielkosc dzialki VIP (promien):
  36. dzialka.size.vip: 70
  37.  
  38. # Mozliwosc dodania osob do dzialki:
  39. dzialka.dodaj: true
  40.  
  41. # Wylaczenie pvp na dzialce:
  42. dzialka.pvp: true
  43.  
  44. # Wiadomosc po wejsciu na teren:
  45. dzialka.greeting: true
  46.  
  47. # Wiadomosc po wyjsciu z terenu:
  48. dzialka.farewell: true
  49.  
  50. #--------------------------> Koniec Konfiguracji <-----------------------------#
  51.  
  52. variables:
  53. {dzialka.%player%.ilosc} = 0
  54.  
  55.  
  56. command /dzialka [<text>] [<text>]:
  57. trigger:
  58. if arg 1 is not set:
  59. if player has permissions "dzialka.gracz" or "dzialka.admin" or "dzialka.*":
  60. send "&2&m-------------------------------------------------"
  61. send " &6» /dzialka info &7- informacje"
  62. send " &6» /dzialka stworz &7- tworzy dzialke"
  63. send " &6» /dzialka usun &7- usuwa dzialke"
  64. send " &6» /dzialka dodaj <nick> &7- dodaje gracza do działki"
  65. send " &6» /dzialka wyrzuc <nick> &7- usun gracza do działki"
  66. send "&2&m-------------------------------------------------"
  67. stop
  68. else:
  69. send "{@tag} &cNie masz uprawnien do uzywania tej komendy!"
  70. stop
  71. if arg 1 is "info":
  72. if player has permissions "dzialka.gracz" or "dzialka.admin" or "dzialka.*":
  73. send "&2&m-------------------------------------------------"
  74. send "&6» &c&lRozmiary dzialki:"
  75. send "&6» &7Gracz: &c30x30"
  76. send "&6» &eVIP: &c70x70"
  77. send "&6» &c&lItemy potrzebne do zalozenia wlasnej dzialki:"
  78. send " &7{@payitem.slot.1}, {@payitem.slot.2}, {@payitem.slot.3}, {@payitem.slot.4}, {@payitem.slot.5}"
  79. send "&2&m-------------------------------------------------"
  80. stop
  81. else:
  82. send "{@tag} &cNie masz uprawnien do uzywania tej komendy!"
  83. stop
  84. if arg 1 is "setspawn":
  85. if player has permissions "dzialka.admin" or "dzialka.*":
  86. if player's world is "{@world}":
  87. set {dzialka.spawn.%world%} to location of player
  88. send "{@tag} Ustawiono punkt spawnu!"
  89. stop
  90. else:
  91. send "{@tag} &cAby ustawic spawn musisz byc na swiecie glownym!"
  92. else:
  93. send "{@tag} &cNie masz uprawnien do uzywania tej komendy!"
  94. stop
  95. if arg 1 is "stworz":
  96. if player has permissions "dzialka.gracz" or "dzialka.admin" or "dzialka.*":
  97. if player's world is "{@world}":
  98. if {dzialka.%player%.ilosc} is 0:
  99. if player doesn't have the permissions "dzialka.vip":
  100. if {@payitem} is true:
  101. if player has {@payitem.slot.1}:
  102. if player has {@payitem.slot.2}:
  103. if player has {@payitem.slot.3}:
  104. if player has {@payitem.slot.4}:
  105. if player has {@payitem.slot.5}:
  106. if {dzialka.spawn.%world%} is set:
  107. if distance between {dzialka.spawn.%world%} and location of player is greater than {@spawn.distance}+{claim.size}/2:
  108. player cannot build at block under player:
  109. send "{@tag} &cNie mozna tutaj stworzyc dzialki! Teren pod Toba jest juz zabezpieczony"
  110. stop
  111. player cannot build at block {@dzialka.size} meters northwest:
  112. send "{@tag} &cNie mozna tutaj stworzyc dzialki! Teren na polnocny-zachod stad jest juz zabezpieczony"
  113. stop
  114. player cannot build at block {@dzialka.size} meters north:
  115. send "{@tag} &cNie mozna tutaj stworzyc dzialki! Teren na polnoc stad jest juz zabezpieczony"
  116. stop
  117. player cannot build at block {@dzialka.size} meters northeast:
  118. send "{@tag} &cNie mozna tutaj stworzyc dzialki! Teren na polnocny-wschod stad jest juz zajety"
  119. stop
  120. player cannot build at block {@dzialka.size} meters west:
  121. send "{@tag} &cNie mozna tutaj stworzyc dzialki! Teren na zachod stad jest juz zajety"
  122. stop
  123. player cannot build at block {@dzialka.size} meters east:
  124. send "{@tag} &cNie mozna tutaj stworzyc dzialki! Teren na wschod stad jest juz zajety"
  125. stop
  126. player cannot build at block {@dzialka.size} meters southwest:
  127. send "{@tag} &cNie mozna tutaj stworzyc dzialki! Teren na poludniowy-zachod stad jest juz zajety"
  128. stop
  129. player cannot build at block {@dzialka.size} meters south:
  130. send "{@tag} &cNie mozna tutaj stworzyc dzialki! Teren na poludnie stad jest juz zajety"
  131. stop
  132. player cannot build at block {@dzialka.size} meters southeast:
  133. send "{@tag} &cNie mozna tutaj stworzyc dzialki! Teren na poludniowy-wschod stad jest juz zajety"
  134. stop
  135. send "{@tag} &8- &aTworzenie ..."
  136. apply slowness 100 to the player for 3 seconds
  137. make console execute command "pex user %name of player% add worldguard.*"
  138. make console execute command "pex user %name of player% add worldedit.*"
  139. wait 1 tick
  140. make player execute command "//pos1"
  141. make player execute command "//pos2"
  142. wait 1 tick
  143. make player execute command "//expand {@dzialka.size} n"
  144. make player execute command "//expand {@dzialka.size} s"
  145. make player execute command "//expand {@dzialka.size} w"
  146. make player execute command "//expand {@dzialka.size} e"
  147. make player execute command "//expand vert"
  148. wait 1 tick
  149. make player execute command "/rg define %name of player%"
  150. wait 1 tick
  151. make console execute command "pex user %name of player% remove worldguard.*"
  152. make console execute command "pex user %name of player% remove worldedit.*"
  153. make console execute command "rg addowner -w %world of player% %name of player% %name of player%"
  154. make console execute command "rg setpriority -w %world of player% %name of player% 1"
  155. if {@dzialka.pvp} is true:
  156. make console execute command "rg flag -w %world of player% %name of player% pvp deny"
  157. if {@dzialka.greeting} is true:
  158. make console execute command "rg flag -w %world of player% %name of player% greeting &8[&6AutoDzialka&8] &7Obecny teren nalezy do: &2%name of player%"
  159. if {@dzialka.farewell} is true:
  160. make console execute command "rg flag -w %world of player% %name of player% farewell &8[&6AutoDzialka&8] &7Opuszczono teren nalezacy do: &2%name of player%"
  161. send "{@tag} &8-&a Otrzymano teren!"
  162. set {dzialka.%player%.ilosc} to 1
  163. remove {@payitem.slot.1} from player
  164. remove {@payitem.slot.2} from player
  165. remove {@payitem.slot.3} from player
  166. remove {@payitem.slot.4} from player
  167. remove {@payitem.slot.5} from player
  168. else:
  169. send "{@tag} &cJestes zbyt blisko spawnu!"
  170. stop
  171. else:
  172. send "{@tag} &cBlad! &8-&7 Nie ustawiono punktu spawnu!"
  173. stop
  174. else:
  175. send "{@tag} &cBrakuje: &7{@payitem.slot.5}"
  176. stop
  177. else:
  178. send "{@tag} &cBrakuje: &7{@payitem.slot.4}"
  179. stop
  180. else:
  181. send "{@tag} &cBrakuje: &7{@payitem.slot.3}"
  182. stop
  183. else:
  184. send "{@tag} &cBrakuje: &7{@payitem.slot.2}"
  185. stop
  186. else:
  187. send "{@tag} &cBrakuje: &7{@payitem.slot.1}"
  188. stop
  189. else:
  190. if {dzialka.spawn.%world%} is set:
  191. if distance between {dzialka.spawn.%world%} and location of player is greater than {@spawn.distance}+{claim.size}/2:
  192. player cannot build at block under player:
  193. send "{@tag} &cNie mozna tutaj stworzyc dzialki! Teren pod Toba jest juz zabezpieczony"
  194. stop
  195. player cannot build at block {@dzialka.size} meters northwest:
  196. send "{@tag} &cNie mozna tutaj stworzyc dzialki! Teren na polnocny-zachod stad jest juz zabezpieczony"
  197. stop
  198. player cannot build at block {@dzialka.size} meters north:
  199. send "{@tag} &cNie mozna tutaj stworzyc dzialki! Teren na polnoc stad jest juz zabezpieczony"
  200. stop
  201. player cannot build at block {@dzialka.size} meters northeast:
  202. send "{@tag} &cNie mozna tutaj stworzyc dzialki! Teren na polnocny-wschod stad jest juz zajety"
  203. stop
  204. player cannot build at block {@dzialka.size} meters west:
  205. send "{@tag} &cNie mozna tutaj stworzyc dzialki! Teren na zachod stad jest juz zajety"
  206. stop
  207. player cannot build at block {@dzialka.size} meters east:
  208. send "{@tag} &cNie mozna tutaj stworzyc dzialki! Teren na wschod stad jest juz zajety"
  209. stop
  210. player cannot build at block {@dzialka.size} meters southwest:
  211. send "{@tag} &cNie mozna tutaj stworzyc dzialki! Teren na poludniowy-zachod stad jest juz zajety"
  212. stop
  213. player cannot build at block {@dzialka.size} meters south:
  214. send "{@tag} &cNie mozna tutaj stworzyc dzialki! Teren na poludnie stad jest juz zajety"
  215. stop
  216. player cannot build at block {@dzialka.size} meters southeast:
  217. send "{@tag} &cNie mozna tutaj stworzyc dzialki! Teren na poludniowy-wschod stad jest juz zajety"
  218. stop
  219. send "{@tag} &8- &aTworzenie ..."
  220. apply slowness 100 to the player for 3 seconds
  221. make console execute command "lp user %name of player% add worldguard.*"
  222. make console execute command "lp user %name of player% add worldedit.*"
  223. wait 1 tick
  224. make player execute command "//pos1"
  225. make player execute command "//pos2"
  226. wait 1 tick
  227. make player execute command "//expand {@dzialka.size} n"
  228. make player execute command "//expand {@dzialka.size} s"
  229. make player execute command "//expand {@dzialka.size} w"
  230. make player execute command "//expand {@dzialka.size} e"
  231. make player execute command "//expand vert"
  232. wait 1 tick
  233. make player execute command "/rg define %name of player%"
  234. wait 1 tick
  235. make console execute command "pex user %name of player% remove worldguard.*"
  236. make console execute command "pex user %name of player% remove worldedit.*"
  237. make console execute command "rg addowner -w %world of player% %name of player% %name of player%"
  238. make console execute command "rg setpriority -w %world of player% %name of player% 1"
  239. if {@dzialka.pvp} is true:
  240. make console execute command "rg flag -w %world of player% %name of player% pvp deny"
  241. if {@dzialka.greeting} is true:
  242. make console execute command "rg flag -w %world of player% %name of player% greeting &8[&6AutoDzialka&8] &7Obecny teren nalezy do: &2%name of player%"
  243. if {@dzialka.farewell} is true:
  244. make console execute command "rg flag -w %world of player% %name of player% farewell &8[&6AutoDzialka&8] &7Opuszczono teren nalezacy do: &2%name of player%"
  245. send "{@tag} &8-&a Otrzymano teren!"
  246. set {dzialka.%player%.ilosc} to 1
  247. else:
  248. send "{@tag} &cJestes zbyt blisko spawnu!"
  249. stop
  250. else:
  251. send "{@tag} &cBlad! &8-&7 Nie ustawiono punktu spawnu!"
  252. stop
  253. else:
  254. if {@payitem} is true:
  255. if player has {@payitem.slot.1}:
  256. if player has {@payitem.slot.2}:
  257. if player has {@payitem.slot.3}:
  258. if player has {@payitem.slot.4}:
  259. if player has {@payitem.slot.5}:
  260. if {dzialka.spawn.%world%} is set:
  261. if distance between {dzialka.spawn.%world%} and location of player is greater than {@spawn.distance}+{claim.size}/2:
  262. player cannot build at block under player:
  263. send "{@tag} &cNie mozna tutaj stworzyc dzialki! Teren pod Toba jest juz zabezpieczony"
  264. stop
  265. player cannot build at block {@dzialka.size.vip} meters northwest:
  266. send "{@tag} &cNie mozna tutaj stworzyc dzialki! Teren na polnocny-zachod stad jest juz zabezpieczony"
  267. stop
  268. player cannot build at block {@dzialka.size.vip} meters north:
  269. send "{@tag} &cNie mozna tutaj stworzyc dzialki! Teren na polnoc stad jest juz zabezpieczony"
  270. stop
  271. player cannot build at block {@dzialka.size.vip} meters northeast:
  272. send "{@tag} &cNie mozna tutaj stworzyc dzialki! Teren na polnocny-wschod stad jest juz zajety"
  273. stop
  274. player cannot build at block {@dzialka.size.vip} meters west:
  275. send "{@tag} &cNie mozna tutaj stworzyc dzialki! Teren na zachod stad jest juz zajety"
  276. stop
  277. player cannot build at block {@dzialka.size.vip} meters east:
  278. send "{@tag} &cNie mozna tutaj stworzyc dzialki! Teren na wschod stad jest juz zajety"
  279. stop
  280. player cannot build at block {@dzialka.size.vip} meters southwest:
  281. send "{@tag} &cNie mozna tutaj stworzyc dzialki! Teren na poludniowy-zachod stad jest juz zajety"
  282. stop
  283. player cannot build at block {dzialka.size.vip} meters south:
  284. send "{@tag} &cNie mozna tutaj stworzyc dzialki! Teren na poludnie stad jest juz zajety"
  285. stop
  286. player cannot build at block {dzialka.size.vip} meters southeast:
  287. send "{@tag} &cNie mozna tutaj stworzyc dzialki! Teren na poludniowy-wschod stad jest juz zajety"
  288. stop
  289. send "{@tag} &8- &aTworzenie ..."
  290. apply slowness 100 to the player for 3 seconds
  291. make console execute command "pex user %name of player% add worldguard.*"
  292. make console execute command "pex user %name of player% add worldedit.*"
  293. wait 1 tick
  294. make player execute command "//pos1"
  295. make player execute command "//pos2"
  296. wait 1 tick
  297. make player execute command "//expand {@dzialka.size.vip} n"
  298. make player execute command "//expand {@dzialka.size.vip} s"
  299. make player execute command "//expand {@dzialka.size.vip} w"
  300. make player execute command "//expand {@dzialka.size.vip} e"
  301. make player execute command "//expand vert"
  302. wait 1 tick
  303. make player execute command "/rg define %name of player%"
  304. wait 1 tick
  305. make console execute command "pex user %name of player% remove worldguard.*"
  306. make console execute command "pex user %name of player% remove worldedit.*"
  307. make console execute command "rg addowner -w %world of player% %name of player% %name of player%"
  308. make console execute command "rg setpriority -w %world of player% %name of player% 1"
  309. if {@dzialka.pvp} is true:
  310. make console execute command "rg flag -w %world of player% %name of player% pvp deny"
  311. if {@dzialka.greeting} is true:
  312. make console execute command "rg flag -w %world of player% %name of player% greeting &8[&6AutoDzialka&8] &7Obecny teren nalezy do: &2%name of player%"
  313. if {@dzialka.farewell} is true:
  314. make console execute command "rg flag -w %world of player% %name of player% farewell &8[&6AutoDzialka&8] &7Opuszczono teren nalezacy do: &2%name of player%"
  315. send "{@tag} &8-&a Otrzymano teren!"
  316. set {dzialka.%player%.ilosc} to 1
  317. remove {@payitem.slot.1} from player
  318. remove {@payitem.slot.2} from player
  319. remove {@payitem.slot.3} from player
  320. remove {@payitem.slot.4} from player
  321. remove {@payitem.slot.5} from player
  322. else:
  323. send "{@tag} &cJestes zbyt blisko spawnu!"
  324. stop
  325. else:
  326. send "{@tag} &cBlad! &8-&7 Nie ustawiono punktu spawnu!"
  327. stop
  328. else:
  329. send "{@tag} &cBrakuje: &7{@payitem.slot.5}"
  330. stop
  331. else:
  332. send "{@tag} &cBrakuje: &7{@payitem.slot.4}"
  333. stop
  334. else:
  335. send "{@tag} &cBrakuje: &7{@payitem.slot.3}"
  336. stop
  337. else:
  338. send "{@tag} &cBrakuje: &7{@payitem.slot.2}"
  339. stop
  340. else:
  341. send "{@tag} &cBrakuje: &7{@payitem.slot.1}"
  342. stop
  343. else:
  344. if {dzialka.spawn.%world%} is set:
  345. if distance between {dzialka.spawn.%world%} and location of player is greater than {@spawn.distance}+{claim.size}/2:
  346. player cannot build at block under player:
  347. send "{@tag} &cNie mozna tutaj stworzyc dzialki! Teren pod Toba jest juz zabezpieczony"
  348. stop
  349. player cannot build at block {@dzialka.size.vip} meters northwest:
  350. send "{@tag} &cNie mozna tutaj stworzyc dzialki! Teren na polnocny-zachod stad jest juz zabezpieczony"
  351. stop
  352. player cannot build at block {@dzialka.size.vip} meters north:
  353. send "{@tag} &cNie mozna tutaj stworzyc dzialki! Teren na polnoc stad jest juz zabezpieczony"
  354. stop
  355. player cannot build at block {@dzialka.size.vip} meters northeast:
  356. send "{@tag} &cNie mozna tutaj stworzyc dzialki! Teren na polnocny-wschod stad jest juz zajety"
  357. stop
  358. player cannot build at block {@dzialka.size.vip} meters west:
  359. send "{@tag} &cNie mozna tutaj stworzyc dzialki! Teren na zachod stad jest juz zajety"
  360. stop
  361. player cannot build at block {@dzialka.size.vip} meters east:
  362. send "{@tag} &cNie mozna tutaj stworzyc dzialki! Teren na wschod stad jest juz zajety"
  363. stop
  364. player cannot build at block {@dzialka.size.vip} meters southwest:
  365. send "{@tag} &cNie mozna tutaj stworzyc dzialki! Teren na poludniowy-zachod stad jest juz zajety"
  366. stop
  367. player cannot build at block {@dzialka.size.vip} meters south:
  368. send "{@tag} &cNie mozna tutaj stworzyc dzialki! Teren na poludnie stad jest juz zajety"
  369. stop
  370. player cannot build at block {@dzialka.size.vip} meters southeast:
  371. send "{@tag} &cNie mozna tutaj stworzyc dzialki! Teren na poludniowy-wschod stad jest juz zajety"
  372. stop
  373. send "{@tag} &8- &aTworzenie ..."
  374. apply slowness 100 to the player for 3 seconds
  375. make console execute command "pex user %name of player% add worldguard.*"
  376. make console execute command "pex user %name of player% add worldedit.*"
  377. wait 1 tick
  378. make player execute command "//pos1"
  379. make player execute command "//pos2"
  380. wait 1 tick
  381. make player execute command "//expand {@dzialka.size.vip} n"
  382. make player execute command "//expand {@dzialka.size.vip} s"
  383. make player execute command "//expand {@dzialka.size.vip} w"
  384. make player execute command "//expand {@dzialka.size.vip} e"
  385. make player execute command "//expand vert"
  386. wait 1 tick
  387. make player execute command "/rg define %name of player%"
  388. wait 1 tick
  389. make console execute command "pex user %name of player% remove worldguard.*"
  390. make console execute command "pex user %name of player% remove worldedit.*"
  391. make console execute command "rg addowner -w %world of player% %name of player% %name of player%"
  392. make console execute command "rg setpriority -w %world of player% %name of player% 1"
  393. if {@dzialka.pvp} is true:
  394. make console execute command "rg flag -w %world of player% %name of player% pvp deny"
  395. if {@dzialka.greeting} is true:
  396. make console execute command "rg flag -w %world of player% %name of player% greeting &8[&6AutoDzialka&8] &7Obecny teren nalezy do: &2%name of player%"
  397. if {@dzialka.farewell} is true:
  398. make console execute command "rg flag -w %world of player% %name of player% farewell &8[&6AutoDzialka&8] &7Opuszczono teren nalezacy do: &2%name of player%"
  399. send "{@tag} &8-&a Otrzymano teren!"
  400. set {dzialka.%player%.ilosc} to 1
  401. else:
  402. send "{@tag} &cJestes zbyt blisko spawnu!"
  403. stop
  404. else:
  405. send "{@tag} &cBlad! &8-&7 Nie ustawiono punktu spawnu!"
  406. stop
  407. else:
  408. send "{@tag} &cMozesz posiadac tylko 1 dzialke!"
  409. stop
  410. else:
  411. send "{@tag} &cDzialki mozna tworzyc tylko na swiecie glownym!"
  412. stop
  413. else:
  414. send "{@tag} &cNie masz uprawnien do uzywania tej komendy!"
  415. stop
  416. if arg 1 is "usun":
  417. if player has permissions "dzialka.gracz" or "dzialka.admin" or "dzialka.*":
  418. if player's world is "{@world}":
  419. if {dzialka.%player%.ilosc} is 1:
  420. make console execute command "rg remove -w %world of player% %name of player%"
  421. wait 1 tick
  422. set {dzialka.%player%.ilosc} to 0
  423. send "{@tag} &8-&a Usunieto dzialke!"
  424. stop
  425. else:
  426. send "{@tag} &cAby usunac dzialke wpierw musisz ja posiadac!"
  427. stop
  428. else:
  429. send "{@tag} &cAby usunac dzialke musisz byc na swiecie glownym!"
  430. stop
  431. else:
  432. send "{@tag} &cNie masz uprawnien do uzywania tej komendy!"
  433. stop
  434. if arg 1 is "ausun":
  435. if player has permissions "dzialka.admin" or "dzialka.*":
  436. if player's world is "{@world}":
  437. if arg 2 is not empty:
  438. if {dzialka.%arg 2%.ilosc} is 1:
  439. make console execute command "rg remove -w %world of player% %arg 2%"
  440. wait 1 tick
  441. set {dzialka.%arg 2%.ilosc} to 0
  442. send "{@tag} &cDzialka &a%arg 2% &czostala usunieta!"
  443. stop
  444. else:
  445. send "{@tag} &cTen gracz nieposiada dzialki!"
  446. stop
  447. else:
  448. send "{@tag} &cPodaj nick gracza, ktorego chcesz usunac dzialke!"
  449. stop
  450. else:
  451. send "{@tag} &cAby dodac gracza do dzialki musisz byc na swiecie glownym!"
  452. stop
  453. else:
  454. send "&cNie masz uprawnien do uzywania tej komendy!"
  455. stop
  456. if arg 1 is "dodaj":
  457. if player has permissions "dzialka.gracz" or "dzialka.admin" or "dzialka.*":
  458. if player's world is "{@world}":
  459. if {@dzialka.dodaj} is true:
  460. if {dzialka.%player%.ilosc} is 1:
  461. if arg 2 is not empty:
  462. make console execute command "rg addmember -w %world of player% %name of player% %arg 2%"
  463. wait 1 tick
  464. send "{@tag} &cGracz &a%arg 2% &czostal dodany do Twojej dzialki!"
  465. send "{@tag} &cGracz &a%name of player% &c dodal Cie do swojej dzialki!" to arg 2
  466. stop
  467. else:
  468. send "{@tag} &cPodaj nick gracza, ktorego chcesz dodac do dzialki!"
  469. stop
  470. else:
  471. send "{@tag} &cMusisz posiadac dzialke, aby zaprosic gracza od dzialki!"
  472. stop
  473. else:
  474. send "{@tag} &cDodawanie/usuwanie graczy do dzialek jest wylaczone!"
  475. stop
  476. else:
  477. send "{@tag} &cAby dodac gracza do dzialki musisz byc na swiecie glownym!"
  478. stop
  479. else:
  480. send "{@tag} &cNie masz uprawnien do uzywania tej komendy!"
  481. stop
  482. if arg 1 is "wyrzuc":
  483. if player has permissions "dzialka.gracz" or "dzialka.admin" or "dzialka.*":
  484. if player's world is "{@world}":
  485. if {@dzialka.dodaj} is true:
  486. if {dzialka.%player%.ilosc} is 1:
  487. if arg 2 is not empty:
  488. make console execute command "rg removemember -w %world of player% %name of player% %arg 2%"
  489. wait 1 tick
  490. send "{@tag} &cGracz &a%arg 2% &czostal wyrzucony z Twojej dzialki!"
  491. send "{@tag} &cGracz &a%name of player% &c dodal Cie do swojej dzialki!" to arg 2
  492. stop
  493. else:
  494. send "{@tag} &cPodaj nick gracza, ktorego chcesz usunac z dzialki!"
  495. stop
  496. else:
  497. send "{@tag} &cMusisz posiadac dzialke, aby usunac gracza z dzialki!"
  498. stop
  499. else:
  500. send "{@tag} &cDodawanie/usuwanie graczy do dzialek jest wylaczone!"
  501. stop
  502. else:
  503. send "{@tag} &cAby dodac gracza do dzialki musisz byc na swiecie glownym!"
  504. stop
  505. else:
  506. send "{@tag} &cNie masz uprawnien do uzywania tej komendy!"
  507. stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement