PepeeYT

PEserver

Mar 22nd, 2020
992
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.25 KB | None | 0 0
  1. options:
  2. Version: 0.4
  3. Prefix: &f[&4&lTwoja&f&lNazwa&8.PL&f] #&l uzywamy po kolorze
  4.  
  5. #
  6. # Typowo serwerowe
  7. #
  8.  
  9. on server list ping:
  10. set max player count to (size of all players + 1)
  11.  
  12. on join:
  13. send player title "{@Prefix}" with subtitle "&1&lWitamy na serwerze!" for 3 seconds
  14.  
  15. #
  16. # Pierwsze wejscie
  17. #
  18.  
  19. on first join:
  20. set {pSpawn::%player%} to true
  21. set {gCzas::%player%} to true
  22. set {sCzas::%player%} to true
  23. set {login::%player%} to false
  24. set {premium::%player%} to false
  25. set {setLogout::%player%} to false
  26.  
  27. #
  28. # logowanie i rejestracja
  29. #
  30.  
  31. on any movement:
  32. if {premium::%player%} is false:
  33. if {login::%player%} is false:
  34. cancel event
  35. if {premium::%player%} is true:
  36. stop
  37.  
  38.  
  39. on quit:
  40. wait 5 minute
  41. set {login::%player%} to false
  42. stop
  43.  
  44. command /premium:
  45. trigger:
  46. set {_name} to text from "https://api.mojang.com/users/profiles/minecraft/%player%"
  47. if {_name} contain "%player%":
  48. send "{@Prefix} &7Jestes graczem premium, ustawiono autologowanie!" to the player
  49. set {premium::%player%} to true
  50. else:
  51. send "{@Prefix} &cNie jestes graczem premium!" to the player
  52.  
  53. every 2 seconds:
  54. loop all players:
  55. if {premium::%loop-player%} is false:
  56. if {login::%loop-player%} is false:
  57. if {haslo::%loop-player%} is not set:
  58. set action bar of loop-player to "&e&lZarejestruj sie uzywajac komendy &6/zarejestruj"
  59. if {haslo::%loop-player%} is set:
  60. set action bar of loop-player to "&e&lZaloguj sie uzywajac komendy &6/zaloguj"
  61. if {premium::%loop-player%} is true:
  62. if {login::%loop-player%} is false:
  63. set action bar of loop-player to "&2&lZalogowano automatycznie!"
  64. set {login::%loop-player%} to true
  65.  
  66. command /register [<text>] [<text>]:
  67. aliases: reg, zarejestruj
  68. trigger:
  69. if {haslo::%player%} is not set:
  70. if arg 1 is not set:
  71. send "{@Prefix} &cPoprawne Uzycie: /register <haslo> <powtorz haslo>"
  72. if arg 1 is set:
  73. if arg 2 is not set:
  74. send "{@Prefix} &cPoprawne Uzycie: /register <haslo> <powtorz haslo>"
  75. if arg 2 is set:
  76. if arg 2 is not arg 1:
  77. send " " to player
  78. send "{@Prefix} &cHasla nie sa takie same!"
  79. send " " to player
  80. if arg 2 = arg 1:
  81. set {haslo::%player%} to arg 1
  82. send " " to player
  83. send "{@Prefix} &7Udalo ci sie zajerestrowac!"
  84. send " " to player
  85. set {login::%player%} to true
  86. set {premium::%player%} to false
  87. if {haslo::%player%} is set:
  88. stop
  89.  
  90.  
  91. command /zaloguj [<text>]:
  92. aliases: login,
  93. trigger:
  94. if arg 1 is not set:
  95. send "{@Prefix} &cPoprawne Uzycie: /login <haslo>"
  96. if arg 1 is set:
  97. if arg 1 is not {haslo::%player%}:
  98. send " " to player
  99. send "{@Prefix} &cHaslo nie jest poprawne!"
  100. send " " to player
  101. if arg 1 = {haslo::%player%}:
  102. if {login::%player%} is true:
  103. stop
  104. if {login::%player%} is false:
  105. send " " to player
  106. send "{@Prefix} &7Udalo ci sie zalogowac!"
  107. send " " to player
  108. set {login::%player%} to true
  109.  
  110. #
  111. # AntyLogout
  112. #
  113.  
  114. on damage:
  115. if attacker is player:
  116. if victim is player:
  117. if {antylogout::%victim%} is not set:
  118. send " " to victim
  119. send "{@Prefix} &cJestes podczas walki" to victim
  120. send " " to victim
  121. set {antylogout::%victim%} to 15
  122. set {setLogout::%victim%} to true
  123. if {antylogout::%attacker%} is not set:
  124. send " " to attacker
  125. send "{@Prefix} &cJestes podczas walki" to attacker
  126. send " " to attacker
  127. set {antylogout::%attacker%} to 15
  128. set {setLogout::%attacker%} to true
  129.  
  130.  
  131. every 1 seconds:
  132. loop all players:
  133. if {antylogout::%loop-player%} is set:
  134. if {setLogout::%loop-player%} is true:
  135. if {antylogout::%loop-player%} is higher than 0:
  136. remove 1 from {antylogout::%loop-player%}
  137. set action bar of loop-player to "&c&lAntyLogout &4&l%{antylogout::%loop-player%}%sek"
  138. if {AntyLogout::%loop-player%} <= 0:
  139. set {setLogout::%loop-player%} to false
  140. clear {antylogout::%loop-player%}
  141. send "&aSkonczyles walczyc." to loop-player
  142. set action bar of loop-player to "&2&lAntyLogout"
  143.  
  144.  
  145.  
  146. on quit:
  147. if {setLogout::%player%} is true:
  148. if {antylogout::%player%} is set:
  149. if {antylogout::%player%} is higher than 0:
  150. kill player
  151. broadcast "{@Prefix} &7Gracz &c%player% &7Wylogowal sie podczas pvp!"
  152. if {setLogout::%player%} is false:
  153. stop
  154. #
  155. # Spawn
  156. #
  157.  
  158. command /setspawn [<text>]:
  159. permission: pe.setspawn
  160. permission message: {@Prefix} &cNie masz dostepu do tej komendy!
  161. trigger:
  162. if arg 1 is set:
  163. send "{@Prefix} &cPoprawne Uzycie: /setspawn."
  164. stop
  165. if arg 1 is not set:
  166. set {spawn} to location of player
  167. send " " to player
  168. send "{@Prefix} &7Ustawiles spawn na kordynatach: &c%player's location%"
  169. send " " to player
  170. stop
  171.  
  172.  
  173. command /spawn [<text>]:
  174. trigger:
  175. if arg 1 is set:
  176. send "{@Prefix} &cPoprawne Uzycie: /spawn."
  177. stop
  178. if arg 1 is not set:
  179. if {pSpawn::%player%} is true:
  180. apply nausea of tier 2 to player for 8 seconds
  181. send "{@Prefix} &7Teleportacja nastapi za... &c5"
  182. wait 1 seconds
  183. send "{@Prefix} &7Teleportacja nastapi za... &c4"
  184. wait 1 seconds
  185. send "{@Prefix} &7Teleportacja nastapi za... &c3"
  186. wait 1 seconds
  187. send "{@Prefix} &7Teleportacja nastapi za... &c2"
  188. wait 1 seconds
  189. send "{@Prefix} &7Teleportacja nastapi za... &c1"
  190. wait 1 seconds
  191. teleport player to {spawn}
  192. send " "
  193. send "{@Prefix} &7Teleportowales sie na spawn! Znowu bedziesz mogl za 20 minut!"
  194. send " "
  195. set {pSpawn::%player%} to false
  196. wait 20 minutes
  197. send " "
  198. send "{@Prefix} &7Mozesz znowu sie teleportowac na spawn!"
  199. send " "
  200. set {pSpawn::%player%} to true
  201. if {pSpawn::%player%} is false:
  202. send " "
  203. send "{@Prefix} &cJeszcze nie mozesz sie teleportowac na spawn!"
  204. send " "
  205. wait 20 minutes
  206. send " "
  207. send "{@Prefix} &7Mozesz znowu sie teleportowac na spawn!"
  208. send " "
  209.  
  210. #
  211. # Kity
  212. #
  213.  
  214. command /kit [<text>]:
  215. permission: pe.kit
  216. permission message: {@Prefix} &cNie masz dostepu do tej komendy!
  217. aliases: zestaw, k,
  218. trigger:
  219. if arg 1 is not set:
  220. open chest with 3 rows named "&2Kity" to player
  221. wait 3 ticks
  222. set {_i} to 0
  223. loop 10 times:
  224. format slot {_i} of player with gray glass pane named " " to be unstealable
  225. add 1 to {_i}
  226. set {_i} to 17
  227. loop 10 times:
  228. format slot {_i} of player with gray glass pane named " " to be unstealable
  229. add 1 to {_i}
  230. format slot 10 of player with name tag of unbreaking 1 named "&bPrzepustka Podstawowa" with lore "&5&oKliknij, aby odebrac przepustke.||&6Odnawia sie co 10 minut." to close then run "kit2 g %player%"
  231. format slot 11 of player with name tag of unbreaking 1 named "&bPrzepustka Srebrna" with lore "&5&oKliknij, aby odebrac przepustke.||&6Odnawia sie co 20 minut." to close then run "kit2 silver %player%"
  232. format slot 12 of player with name tag of unbreaking 1 named "&bPrzepustka Szybka Klepa" with lore "&5&oKliknij, aby odebrac przepustke.||&6Odnawia sie co 60 minut." to close then run "kit2 klepa %player%"
  233. else:
  234. send "{@Prefix} &cPoprawne Uzycie: /kit."
  235. stop
  236.  
  237.  
  238. command /kit2 [<text>] [<player>]:
  239. executable by: console
  240. trigger:
  241. if arg 1 is "g":
  242. if {gCzas::%player-arg%} is true:
  243. give 1 of name tag of unbreaking 1 named "&8Przepustka Podstawowa" with lore "&9LPM, aby odebrac.||&9PPM, aby zobaczyc zawartosc." to player-arg
  244. set {gCzas::%player-arg%} to false
  245. wait 10 minute
  246. send " " to player-arg
  247. send "{@Prefix} &7Przepustka Podstawowa zostala odnowiona!" to player-arg
  248. send " " to player-arg
  249. set {gCzas::%player-arg%} to true
  250. else:
  251. send " " to player-arg
  252. send "{@Prefix} &cAby otrzymac przepustke musisz jeszcze poczekac." to player-arg
  253. send " " to player-arg
  254. wait 10 minute
  255. send " " to player-arg
  256. send "{@Prefix} &7Przepustka Podstawowa zostala odnowiona!" to player-arg
  257. send " " to player-arg
  258. set {gCzas::%player-arg%} to true
  259. if arg 1 is "silver":
  260. if player doesn't have permission "pe.silverKit":
  261. send " "
  262. send "{@Prefix} &cNie masz dostepu do tego kitu!"
  263. send " "
  264. else:
  265. if {sCzas::%player-arg%} is true:
  266. give 1 of name tag of unbreaking 1 named "&7Przepustka Srebrna" with lore "&9LPM, aby odebrac.||&9PPM, aby zobaczyc zawartosc." to player-arg
  267. set {sCzas::%player-arg%} to false
  268. wait 20 minute
  269. send " " to player-arg
  270. send "{@Prefix} &7Przepustka Srebrna zostala odnowiona!" to player-arg
  271. send " " to player-arg
  272. set {sCzas::%player-arg%} to true
  273. stop
  274. else:
  275. send " " to player-arg
  276. send "{@Prefix} &cAby otrzymac przepustke musisz jeszcze poczekac." to player-arg
  277. send " " to player-arg
  278. wait 20 minute
  279. send " " to player-arg
  280. send "{@Prefix} &7Przepustka Srebrna zostala odnowiona!" to player-arg
  281. send " " to player-arg
  282. set {sCzas::%player-arg%} to true
  283. stop
  284. if arg 1 is "klepa":
  285. if player doesn't have permission "pe.klepaKit":
  286. send " "
  287. send "{@Prefix} &cNie masz dostepu do tego kitu!"
  288. send " "
  289. else:
  290. if {kCzas::%player-arg%} is true:
  291. give 1 of name tag of unbreaking 1 named "&cPrzepustka Szybka Klepa" with lore "&9LPM, aby odebrac.||&9PPM, aby zobaczyc zawartosc." to player-arg
  292. set {kCzas::%player-arg%} to false
  293. wait 60 minute
  294. send " " to player-arg
  295. send "{@Prefix} &7Przepustka Szybkiej Klepy zostala odnowiona!" to player-arg
  296. send " " to player-arg
  297. set {kCzas::%player-arg%} to true
  298. stop
  299. else:
  300. send " " to player-arg
  301. send "{@Prefix} &cAby otrzymac przepustke musisz jeszcze poczekac." to player-arg
  302. send " " to player-arg
  303. wait 60 minute
  304. send " " to player-arg
  305. send "{@Prefix} &7Przepustka Szybkiej Klepy zostala odnowiona!" to player-arg
  306. send " " to player-arg
  307. set {kCzas::%player-arg%} to true
  308.  
  309.  
  310. on rightclick with name tag:
  311. if name of player's tool is "&8Przepustka Podstawowa":
  312. open chest with 1 rows named "&8Zawartosc" to player
  313. wait 3 ticks
  314. format slot 0 of player with gray glass pane named " " to be unstealable
  315. format slot 1 of player with leather_helmet to be unstealable
  316. format slot 2 of player with leather_chestplate to be unstealable
  317. format slot 3 of player with leather_leggings to be unstealable
  318. format slot 4 of player with leather_boots to be unstealable
  319. format slot 5 of player with diamond pickaxe of efficiency 3 and unbreaking 2 to be unstealable
  320. format slot 6 of player with 16 oak log to be unstealable
  321. format slot 7 of player with ender chest to be unstealable
  322. format slot 8 of player with gray glass pane named " " to be unstealable
  323. if name of player's tool is "&7Przepustka Srebrna":
  324. open chest with 1 rows named "&8Zawartosc" to player
  325. wait 3 ticks
  326. format slot 0 of player with gray glass pane named " " to be unstealable
  327. format slot 1 of player with diamond helmet of protection 3 to be unstealable
  328. format slot 2 of player with diamond_chestplate of protection 3 to be unstealable
  329. format slot 3 of player with diamond_leggings of protection 3 to be unstealable
  330. format slot 4 of player with diamond_boots of protection 3 to be unstealable
  331. format slot 5 of player with diamond pickaxe of efficiency 5 and unbreaking 3 to be unstealable
  332. format slot 6 of player with 16 apple to be unstealable
  333. format slot 7 of player with 16 ender chest to be unstealable
  334. format slot 8 of player with gray glass pane named " " to be unstealable
  335. if name of player's tool is "&cPrzepustka Szybka Klepa":
  336. open chest with 1 rows named "&8Zawartosc" to player
  337. wait 3 ticks
  338. format slot 0 of player with gray glass pane named " " to be unstealable
  339. format slot 1 of player with diamond helmet of protection 4 and unbreaking 3 to be unstealable
  340. format slot 2 of player with diamond_chestplate of protection 4 and unbreaking 3 to be unstealable
  341. format slot 3 of player with diamond_leggings of protection 4 and unbreaking 3 to be unstealable
  342. format slot 4 of player with diamond_boots of protection 4 and unbreaking 3 to be unstealable
  343. format slot 5 of player with diamond sword of sharpness 5 and unbreaking 3 and fire aspect 2 to be unstealable
  344. format slot 6 of player with stick of Knockback 3 to be unstealable
  345. format slot 7 of player with 1 enchanted golden apple to be unstealable
  346. format slot 8 of player with gray glass pane named " " to be unstealable
  347.  
  348.  
  349. on leftclick with name tag:
  350. if name of player's tool is "&7Przepustka Srebrna":
  351. remove name tag named "&7Przepustka Srebrna" with lore "%lore of player's tool%" from player
  352. give 1 diamond helmet of protection 3 to player
  353. give 1 diamond_chestplate of protection 3 to player
  354. give 1 diamond_leggings of protection 3 to player
  355. give 1 diamond_boots of protection 3 to player
  356. give 1 diamond pickaxe of efficiency 5 and unbreaking 3 to player
  357. give 16 apple to player
  358. give 16 ender chest to player
  359. send " " to player
  360. send "{@Prefix} &7Otrzymales zawartosc Przepustki srebrnej!"
  361. send " " to player
  362. if name of player's tool is "&8Przepustka Podstawowa":
  363. remove name tag named "&8Przepustka Podstawowa" with lore "%lore of player's tool%" from player
  364. give 1 leather_helmet to player
  365. give 1 leather_chestplate to player
  366. give 1 leather_leggings to player
  367. give 1 leather_boots to player
  368. give 1 diamond pickaxe of efficiency 3 and unbreaking 2 to player
  369. give 16 oak log to player
  370. give 1 ender chest to player
  371. send " " to player
  372. send "{@Prefix} &7Otrzymales zawartosc Przepustki Podstawowej!"
  373. send " " to player
  374. if name of player's tool is "&cPrzepustka Szybka Klepa":
  375. remove name tag named "&cPrzepustka Szybka Klepa" with lore "%lore of player's tool%" from player
  376. give 1 diamond helmet of protection 4 and unbreaking 3 to player
  377. give 1 diamond_chestplate of protection 4 and unbreaking 3 to player
  378. give 1 diamond_leggings of protection 4 and unbreaking 3 to player
  379. give 1 diamond_boots of protection 4 and unbreaking 3 to player
  380. give 1 diamond sword of sharpness 5 and unbreaking 3 and fire aspect 2 to player
  381. give 1 stick of Knockback 3 to player
  382. give 1 enchanted golden apple to player
Advertisement
Add Comment
Please, Sign In to add comment