patison234

EssentialsSkript Beta 2.0 [Skript 2.0.2

Dec 25th, 2013
2,365
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 54.72 KB | None | 0 0
  1. # # # # # # # # # # # # # # # #
  2. # Skrypciarze team:           #
  3. # - PatisonPlayGames          #
  4. # - ISOPL                     #
  5. # - FejminTV                  #
  6. # # # # # # # # # # # # # # # #
  7.  
  8.  
  9.  
  10. # # # # # # # # # # # # # # # #
  11. # Script by Skrypciarze       #
  12. # Name: EssentialsSkript      #
  13. # Version: Beta 2.0           #
  14. # Skript: 2.0.2               #
  15. # # # # # # # # # # # # # # # #
  16.  
  17.  
  18.  
  19. #=============================================#
  20. #  Licencja EssentialsSkript by Skrypciarze   #
  21. # + Nie zezwalamy na:                         #
  22. # - Usuwanie tresci o autorach!               #
  23. # - Udostepnaniu skryptu innym!               #
  24. # - Podszywanie sie pod autorów!              #
  25. # - Uzywanie kodu skryptu w swoich skryptach! #
  26. # - Zarabianie na skrypcie!                   #
  27. # + Zezwalamy na:                             #
  28. # - Dodawanie kodu na swoja potrzebe!         #
  29. # - Modyfikowanie wiadomosci!                 #
  30. #=============================================#
  31. variables:
  32.     {essentialsskript.%player%.ban} = false
  33.     {essentialsskript.%player%.banip} = false
  34.     {cooldown} = false
  35.     {god.wlacz.%player%} = 0
  36.     {god2.wlacz.%player%} = 0
  37. options:
  38. # # # # # # # # # # # # # # #
  39. #                           #
  40. #       General Config      #
  41. #                           #
  42. # # # # # # # # # # # # # # #
  43.  
  44.     # Tag wyswietlany przed wiadomosciami skryptu! 
  45.     tag: &4[&6EssentialssSkript&4]
  46.     #Nazwa pliku sk.Zanim wgrasz plik i zmieniles nazwe zmien ja takze tutaj i dopiero wgraj plik!:
  47.     sk: EssentialsSkript
  48.    
  49.    
  50.    
  51. # # # # # # # # # # # # # #
  52. #                         #
  53. #       Permissions       #
  54. #                         #
  55. # # # # # # # # # # # # # #
  56.  
  57.  
  58.  
  59.     # Wiadomosc przy braku uprawnienia:
  60.     permission: &4Nie masz uprawnien by uzywac tej komendy!
  61.  
  62.  
  63. # # # # # # # # # # # # # #
  64. #                         #
  65. #       Command Config    #
  66. #                         #
  67. # # # # # # # # # # # # # #
  68.  
  69.     # Wiadomosc prz 1 wejscu na serwer!
  70.     firstjoinmessage: &9Witamy nowego gracza &6%player% &9 na serwerze!
  71.    
  72.     # Wiadomosc przy wejscu na serwer
  73.     joinmessage: &a+ &8%player%
  74.    
  75.     #Wiadomosc przy wyjscu z serwera!:
  76.     quitmessage: &4- &8%player%
  77.    
  78.     # Nazwa serwera!:
  79.     servername: [Serwer]
  80.    
  81.     #Max . liczba zrsepenia potworow w komendzie /spawnmob:
  82.    
  83.     maxspawn: 11
  84.     maxgive: 10000
  85.  
  86.     # Czy ma czekac sie 5 sekund na teleportacje true/false:
  87.     cooldown: false
  88.  
  89. # # # # # # # # # # # # # #
  90. #                         #
  91. #       Chat Config       #
  92. #                         #
  93. # # # # # # # # # # # # # #
  94.    
  95.     # Formatowanie chatu jest bardzo proste :
  96.     # {WORLD} - odpowiada za wyswietlanie przed ranga swiat na jakim jest gracz mozna to ususnac
  97.     # {RANK} - odpowiada za range gracza takze mozemy ja ususnac
  98.     # {NICK} - odpowiada za nick gracza
  99.     # {MESSAGE} - odpowiada za wiadomosc wysylana przez gracza!
  100.     chat-format: {WORLD}{RANK}{NICK}: {MESSAGE}
  101.    
  102.    
  103. # Autor Config
  104.     version: Beta 2.0
  105.    
  106. # Kick Command
  107.  
  108. # # # # # # # # # # # # # #
  109. #                         #
  110. #         Komendy         #
  111. #                         #
  112. # # # # # # # # # # # # # #
  113.  
  114.  
  115. command /kick [<player>] [<text>]:
  116.     trigger:
  117.         if arg 1 is set:
  118.             if arg 2 is set:
  119.                 if player has permission "essentialsskript.kick or essentialsskript.*":
  120.                     if argument 1 has permission "essentialsskript.kick":
  121.                         send "{@tag} &cNie mozesz wyrzucic tego gracza!"
  122.                         stop
  123.                     else:
  124.                         kick the argument 1 due to "%arg 2%"
  125.                         broadcast "{@tag} &bGracz &c%arg 1% &bzostal wyrzucony za &c%arg 2%"
  126.                         stop
  127.                 else:
  128.                     send "{@tag} {@permission}"
  129.                     stop
  130.             else:
  131.                 send "{@tag} &cPodaj powod!"
  132.                 stop
  133.         else:
  134.             send "{@tag} &cPodaj nick gracza!"
  135.             stop
  136.            
  137. # Ban commands:
  138.  
  139. command /ban [<player>] [<text>]:
  140.     trigger:
  141.         if arg 1 is set:
  142.             if arg 2 is set:
  143.                 if player has permission "essentialsskript.ban or essentialsskript.*":
  144.                     if argument 1 has permission "essentialsskript.ban":
  145.                         send "{@tag} &cNie mozesz zbanowac tego gracza!"
  146.                         stop
  147.                     else:                                      
  148.                         if {essentialsskript.%arg 1%.ban} is false:
  149.                             kick the argument 1 due to "%arg 2%"
  150.                             set {essentialsskript.%arg 1%.ban} to true
  151.                             ban argument 1
  152.                             add "%arg 1%" to {essentialsskript.banlist::*}
  153.                             broadcast "{@tag} &bGracz &c%arg 1% &bzostal zbanowany za &c%arg 2%"
  154.                             stop
  155.                         else:
  156.                             send "{@tag} &cTen gracz jest juz banowany!"
  157.                             stop
  158.                 else:
  159.                     send "{@tag} {@permission}"
  160.                     stop
  161.             else:
  162.                 send "{@tag} &cPodaj powod!"
  163.                 stop
  164.         else:
  165.             send "{@tag} &cPodaj nick gracza!"
  166.             stop
  167.  
  168.  
  169.            
  170. command /banlist:
  171.     trigger:
  172.         if player has permission "essentialsskript.banlist or essentialsskript.*":
  173.             if {essentialsskript.banlist::*} is not set:
  174.                 send "{@tag} &cNie ma zadnych zbanowanych graczy!"
  175.                 stop
  176.             else:
  177.                 send "{@tag} &bLista graczy zbanowanych: &c%{essentialsskript.banlist::*}%"
  178.                 stop
  179.         else:
  180.             send "{@tag} {@permission}"
  181.             stop
  182. command /baniplist:
  183.     trigger:
  184.         if player has permission "essentialsskript.banlist or essentialsskript.*":
  185.             if {essentialsskript.banlistip::*} is not set:
  186.                 send "{@tag} &cNie ma zadnych zbanowanych ip!"
  187.                 stop
  188.             else:
  189.                 send "{@tag} &bLista zbanowanych ip: &c%{essentialsskript.banlistip::*}%"
  190.                 stop
  191.         else:
  192.             send "{@tag} {@permission}"
  193.             stop   
  194.  
  195. command /banip [<player>] [<text>]:
  196.     trigger:
  197.         if arg 1 is set:
  198.             if arg 2 is set:
  199.                 if player has permission "essentialsskript.ban or essentialsskript.*":
  200.                     if argument 1 has permission "essentialsskript.ban":
  201.                         send "{@tag} &cNie mozesz zbanowac tego ip !"
  202.                     else:                                      
  203.                         if {essentialsskript.%arg 1%.banip} is false:
  204.                             kick the argument 1 due to "%arg 2%"
  205.                             set {essentialsskript.%arg 1%.banip} to true
  206.                             ban argument 1 by ip
  207.                             add "%arg 1%" to {essentialsskript.banlistip::*}
  208.                             broadcast "{@tag} &bIP &c%ip of arg 1% &bzostalo zbanowane za &c%arg 2%"
  209.                             stop
  210.                         else:
  211.                             send "{@tag} &cTo ip jest juz zbanowane!"
  212.                             stop
  213.                 else:
  214.                     send "{@tag} {@permission}"
  215.                     stop
  216.             else:
  217.                 send "{@tag} &cPodaj powod!"
  218.                 stop
  219.         else:
  220.             send "{@tag} &cPodaj ip!"
  221.             stop   
  222.    
  223. command /unbanip [<offlineplayer>]:
  224.     trigger:
  225.         if player has permission "essentialsskript.unban or essentialsskript.*":
  226.             if {essentialsskript.%arg 1%.banip} is true:
  227.                 unban argument 1 by ip
  228.                 remove "%arg 1%" from {essentialsskript.banlistip::*}
  229.                 set {essentialsskript.%arg 1%.banip} to false
  230.                 broadcast "{@tag} &bIp &a%ip of arg 1% &bzostalo odbanowane!"
  231.                 stop
  232.             else:
  233.                 send "{@tag} &cTo ip nie zostalo zbanowane!"
  234.                 stop
  235.         else:
  236.             send "{@tag} {@permission}"
  237.             stop
  238.            
  239. command /unban [<offlineplayer>]:
  240.     trigger:
  241.         if player has permission "essentialsskript.unban or essentialsskript.*":
  242.             if {essentialsskript.%arg 1%.ban} is true:
  243.                 unban argument 1
  244.                 remove "%arg 1%" from {essentialsskript.banlist::*}
  245.                 set {essentialsskript.%arg 1%.ban} to false
  246.                 broadcast "{@tag} &bGracz &c%arg 1% &bzostal odbanowany!"
  247.                 stop
  248.             else:
  249.                 send "{@tag} &cTen gracz nie zostal zbanowany!"
  250.                 stop
  251.         else:
  252.             send "{@tag} {@permission}"
  253.             stop
  254.  
  255. # Heal Command     
  256.            
  257. command /heal [<player>]:
  258.     aliases: ulecz
  259.     trigger:
  260.         if arg 1 is not set:
  261.             if player's health is not 10:
  262.                 if player has permission "essentialsskript.heal or essentialsskript.*":
  263.                     set the player's food level to 10
  264.                     heal the player by 10 hearts
  265.                     send "{@tag} &aUleczono!"
  266.                     stop
  267.                 else:
  268.                     send "{@tag} {@permission}"
  269.                     stop
  270.             else:
  271.                 send "{@tag} &cTwoje zycie jest pelne!"
  272.                 stop
  273.         if arg 1 is set:
  274.             if argument's health is not 10:
  275.                 if player has permission "essentialsskript.heal or essentialsskript.*":
  276.                     set the argument's food level to 10
  277.                     heal the argument by 10 hearts
  278.                     send "{@tag} &bUleczono!" to arg 1
  279.                     send "{@tag} &bUleczono gracza &c%arg 1%"
  280.                     stop
  281.                 else:
  282.                     send "{@tag} {@permission}"
  283.                     stop
  284.             else:
  285.                 send "{@tag} &cZycie tego gracza jest pelne!"
  286.                 stop
  287.  
  288.                
  289. command /feed [<player>]:
  290.     aliases: nakarm
  291.     trigger:
  292.         if arg 1 is not set:
  293.             if player's food level is not 10:
  294.                 if player has permission "essentialsskript.heal or essentialsskript.*":
  295.                     set the player's food level to 10
  296.                     send "{@tag} &bNakarmiono!"
  297.                     stop
  298.                 else:
  299.                     send "{@tag} {@permission}"
  300.                     stop
  301.             else:
  302.                 send "{@tag} &cTwoj glod jest pelny!"
  303.                 stop
  304.         if arg 1 is set:
  305.             if argument's food level is not 10:
  306.                 if player has permission "essentialsskript.heal or essentialsskript.*":
  307.                     set the argument's food level to 10
  308.                     send "{@tag} &bNakarmiono!" to arg 1
  309.                     send "{@tag} &bNakarmiono gracza &c%arg 1%"
  310.                     stop
  311.                 else:
  312.                     send "{@tag} {@permission}"
  313.                     stop
  314.             else:
  315.                 send "{@tag} &cGlod tego gracza jest pelny!"
  316.                 stop
  317.                
  318. # Head command:
  319.  
  320. command /hat <material>:
  321.     aliases: czapka
  322.     trigger:
  323.         if player has permission "essentialsskript.hat or essentialsskript.*":
  324.             if arg 1 is set:
  325.                 if id of argument 1 is greater than 255:
  326.                     send "{@tag} &cNie mozesz zalozyc tego itemku tylko bloki!"
  327.                     stop
  328.                 else:
  329.                     if helmet slot of the player is not empty:
  330.                         send "{@tag} &cNajpierw zdejmij przedmiot z glowy!"
  331.                         stop
  332.                     else:
  333.                         set helmet of the player to argument
  334.                         send "{@tag} &bCiesz sie nowym kapeluszem!"
  335.                         stop
  336.             else:
  337.                 send "{@tag} &cWybierz id bloku!"
  338.                 stop
  339.         else:
  340.             send "{@tag} {@permission}"
  341.             stop
  342. command /nametool [<text>]:
  343.     aliases: nt, namet, nazwijt
  344.     trigger:
  345.         if player has permission "essentialsskript.clear or essentialsskript.*":
  346.             if arg 1 is set:
  347.                 set name of the player's tool to "%coloured argument 1%"
  348.                 send "{@tag} &bTwoj przedmiot nazywa sie &c%coloured arg 1%&b!"
  349.                 stop
  350.             else:
  351.                 send "{@tag} Podaj nazwe przedmiotu"
  352.                 stop
  353.         else:
  354.             send "{@tag} {@permission}"
  355.             stop
  356.  
  357. command /clear [<player>]:
  358.     aliases: ci
  359.     trigger:
  360.         if player has permission "essentialsskript.clear or essentialsskript.*":
  361.             if arg 1 is not set:
  362.                 clear the player's inventory
  363.                 send "{@tag} &bWyczysciles swoje eq!"
  364.                 stop
  365.             if arg 1 is set:
  366.                 clear the argument's inventory
  367.                 send "{@tag} &bWyczysciles eq gracza &c%arg 1%"
  368.                 send "{@tag} &c%player% &bwyczyscil twoje eq!" to argument 1
  369.                 stop
  370.         else:
  371.             send "{@tag} {@permission}"
  372.             stop
  373.            
  374. # Invsee commands:
  375.  
  376. command /invsee [<player>]:
  377.     trigger:
  378.         if player has permission "essentialsskript.invsee or essentialsskript.*":
  379.             if arg 1 is set:
  380.                 open the argument's inventory to the player
  381.                 stop
  382.             else:
  383.                 send "{@tag} &c Podaj nick gracza!"
  384.                 stop
  385.         else:
  386.             send "{@tag} {@permission}"
  387.             stop
  388.  
  389. # Gamemode commands:
  390.  
  391. command /gm <integer> [<player>]:
  392.     trigger:
  393.         if player has permission "esentialsskript.gamemode or essentialsskript.*":
  394.             if arg 2 is set:
  395.                 if arg 1 is 1:
  396.                     set the gamemode of argument 2 to creative
  397.                     send "{@tag} &c%player% &bzmienil twoj tryb gry na &ccreative!" to arg 2                   
  398.                     send "{@tag} &bZminiels tryb gry gracza &c%arg 2% &bna creative!"
  399.                     stop
  400.                 if arg 1 is 0:
  401.                     set the gamemode of argument 2 to survival
  402.                     send "{@tag} &c%player% &bzmienil twoj tryb gry na &csurvival!" to arg 2                   
  403.                     send "{@tag} &bZminiels tryb gry gracza &6%arg 2% &cna survival!"
  404.                     stop
  405.                 if arg 1 is 2:
  406.                     set the gamemode of argument 2 to adventure
  407.                     send "{@tag} &c%player% &bzmienil twoj tryb gry na &cadventure!" to arg 2                  
  408.                     send "{@tag} &bZminiels tryb gry gracza &c%arg 2% &cna adventure!"
  409.                     stop
  410.             else:
  411.                 if arg 1 is 1:
  412.                     set the gamemode of the player to creative             
  413.                     send "{@tag} &bZmeniles swoj tryb gry na &cna creative!"
  414.                     stop
  415.                 if arg 1 is 0:
  416.                     set the gamemode of the player to survival         
  417.                     send "{@tag} &bZmeniles swoj tryb gry na &cna survival!"
  418.                     stop
  419.                 if arg 1 is 2:
  420.                     set the gamemode of the player to adventure            
  421.                     send "{@tag} &bZmeniles swoj tryb gry na &cna adventure!"
  422.                     stop
  423.         else:
  424.             send "{@tag} {@permission}"
  425.             stop
  426.            
  427. # List all players:
  428.  
  429. command /list:
  430.     trigger:
  431.         send "&8===={@tag}&8====="
  432.         send "&aNa serwerze jest aktualnie : &6%number of all players%"
  433.         send "&aGracze: &6%all players%"
  434.         send "&8================="
  435.         stop
  436.                    
  437.                    
  438. command /sun:
  439.     aliases: slonce
  440.     trigger:
  441.         if player has permission "essentialsskript.sun or essentialsskript.*":
  442.             set the weather in the player's world to sun
  443.             send "{@tag} &bUstawiles pogode w swiecie &c%player's world% &b na &csloneczna!"
  444.             stop
  445.         else:
  446.             send "{@tag} {@permission}"
  447.             stop
  448. command /rain:
  449.     aliases: deszcz
  450.     trigger:
  451.         if player has permission "essentialsskript.rain or essentialsskript.*":
  452.             set the weather in the player's world to rain
  453.             send "{@tag} &bUstawiles pogode w swiecie &c%player's world% &8 na &6deszczowa!"
  454.             stop
  455.         else:
  456.             send "{@tag} {@permission}"
  457.             stop
  458. command /break:
  459.     aliases: zniszcz
  460.     trigger:
  461.         if player has permission "essentialsskript.break or essentialsskript.*":
  462.             if targeted block is not air:
  463.                 if player can build at targeted block:
  464.                     set targeted block to air
  465.                     send "{@tag} &bZniszczyles blok na ktory patrzyles!"
  466.                     stop
  467.                 else:
  468.                     send "{@tag} &bTutaj jest cuboid i nie mozesz tego zniszczyc!"
  469.                     stop
  470.             else:
  471.                 send "{@tag} &cNie mozesz zniszczyc powietrza !"
  472.                 stop
  473.         else:
  474.             send "{@tag} {@permission}"
  475.             stop
  476.  
  477. command /nick [<player>] [<text>]:
  478.     trigger:
  479.         if arg 1 is not set:
  480.             if player has permission "essentialsskript.nick or essentialsskript.*":
  481.                 if arg 2 is set:
  482.                     set the player's display name to "%colored arg 2%"
  483.                     set the player's tablist name to "%colored arg 2%"
  484.                     send "{@tag} &bTwoj przydomek to&c %colored arg 2%"
  485.                     stop
  486.                 else:
  487.                     send "{@tag} &cPodaj swoj przydomek!"
  488.                     stop
  489.             else:
  490.                 send "{@tag} {@permission}"
  491.                 stop
  492.         if arg 1 is set:
  493.             if player has permission "essentialsskript.nick or essentialsskript.*":
  494.                 if arg 2 is set:
  495.                     set the argument 1's display name to "%colored arg 2%"
  496.                     set the argument 1's tablist name to "%colored arg 2%"
  497.                     send "{@tag} &bTwoj przydomek to &c%colored arg 2%" to arg 1
  498.                     stop
  499.                 else:
  500.                     send "{@tag} &cPodaj przydomek gracza!"
  501.                     stop
  502.             else:
  503.                 send "{@tag} {@permission}"
  504.                 stop
  505. command /nickoff:
  506.     trigger:
  507.         if player has permission "essentialsskript.nick or essentialsskript.*":
  508.             set the player's display name to "%player%"
  509.             set the player's tablist name to "%player%"
  510.             send "{@tag} &bTwoj przydomek to &c%player%"
  511.             stop
  512.         else:
  513.             send "{@tag} {@permission}"
  514.             stop       
  515. #Day command
  516. command /day:
  517.     aliases: dzien
  518.     trigger:
  519.         if player has permission "essentialsskript.day or essentialsskript.*":
  520.             set time in the player's world to 8:00
  521.             send "{@tag} &bUstawiles dzien w swiecie &c%player's world%"
  522.             stop
  523.         else:
  524.             send "{@tag} {@permission}"
  525.             stop
  526. #Night command
  527. command /night:
  528.     aliases: noc
  529.     trigger:
  530.         if player has permission "essentialsskript.night or essentialsskript.*":
  531.             set time in the player's world to 19:00
  532.             send "{@tag} &bUstawiles noc w swiecie &c%player's world%"
  533.             stop
  534.         else:
  535.             send "{@tag} {@permission}"
  536.             stop
  537.  
  538. command /tp [<player>] [<player>]:
  539.     trigger:
  540.         if player has permission "essentialsskript.tp or essentialsskript.*":
  541.             if arg 1 is set:
  542.                 if arg 2 is not set:
  543.                     teleport player to argument 1
  544.                     send "{@tag} &bPrzeteleportowales sie do gracza &c%arg 1%"
  545.                     send "{@tag} &c%player% &bprzeteleportowal sie do ciebie!" to argument 1
  546.                     stop
  547.             if arg 1 is player:
  548.                 if arg 2 is set:
  549.                     teleport player to argument 2
  550.                     send "{@tag} &bPrzeteleportowales sie do gracza &c%arg 2%"
  551.                     send "{@tag} &c%player% &bprzeteleportowal sie do ciebie!" to argument 2
  552.                     stop
  553.             if arg 1 is set:
  554.                 if arg 2 is player:
  555.                     teleport argument 1 to the player
  556.                     send "{@tag} &bPrzeteleportowales gracza &c%arg 1%&b do siebie!"
  557.                     send "{@tag} &c%player% &bprzeteleportowal cie do siebie!" to argument 1
  558.                     stop
  559.             if arg 1 is set:
  560.                 if arg 2 is set:
  561.                     teleport argument 1 to argument 2
  562.                     send "{@tag} &bPrzeteleportowales gracza &c%arg 1%&b do &c%arg 2%!"
  563.                     send "{@tag} &c%player% &bprzeteleportowal gracza &c%arg 1%&b do ciebie!" to argument 2
  564.                     send "{@tag} &c%player% &bprzeteleportowal gracza &c%arg 2%&b do ciebie!" to argument 1
  565.                     stop               
  566.         else:
  567.             send "{@tag} {@permission}"
  568.             stop
  569.            
  570. command /tpall:
  571.     trigger:
  572.         if player has permission "essentialsskript.tpall or essentialsskript.*":
  573.             teleport all players to the player
  574.             broadcast "{@tag} &bGracz &c%player% &bprzteleportowal wszystkich do siebie!"
  575.             stop
  576.         else:
  577.             send "{@tag} {@permission}"
  578.             stop
  579.            
  580. command /time:
  581.     aliases: czas
  582.     trigger:
  583.         if player has permission "essentialsskript.time or essentialsskript.*":
  584.             send "{@tag} &bCzas na twoim swiecie to &c%time of world%"
  585.             stop
  586.         else:
  587.             send "{@tag} {@permission}"
  588.             stop
  589.  
  590. on first join:
  591.     set join message to "{@firstjoinmessage}"
  592.     stop
  593. on join:
  594.     if player has played on this server before:
  595.         set join message to "{@joinmessage}"
  596.         stop
  597. on quit:
  598.     set quit message to "{@quitmessage}"
  599.     stop
  600.  
  601. command /say [<text>]:
  602.     trigger:
  603.         if player has permission "essentialsskript.say or essentialsskript.*":
  604.             if arg 1 is set:
  605.                 broadcast "{@servername} %colored arg 1%"
  606.                 stop
  607.             else:
  608.                 send "{@tag} &cPodaj wiadomosc!"
  609.                 stop
  610.            
  611. command /broadcast [<text>]:
  612.     aliases: bc
  613.     trigger:
  614.         if player has permission "essentialsskript.broadcast or essentialsskript.*":
  615.             if arg 1 is set:
  616.                 broadcast "{@servername} %colored arg 1%"
  617.                 stop
  618.             else:
  619.                 send "{@tag} &cPodaj wiadomosc!"
  620.                 stop
  621.  
  622. command /near [<integer = 10>]:
  623.     trigger:
  624.         if player has permission "essentialsskript.near or essentialsskript.*":
  625.             if arg 1 is set:
  626.                 clear {near::*}
  627.                 loop players in radius argument 1 of the player:
  628.                     add loop-player to {near::*}
  629.                     message "{@tag} &6Najblizsi gracze:&c %{near::*}%"
  630.                     stop
  631.             else:
  632.                 send "{@tag} &cPodaj odleglosc!"
  633.                 stop
  634.         else:
  635.             send "{@tag} {@permission}"
  636.             stop
  637.  
  638. command /fireball:
  639.     aliases: fb
  640.     trigger:
  641.         if player has permission "essentialsskript.fireball or essentialsskript.*":
  642.             shoot a fireball at speed 3
  643.         else:
  644.             send "{@tag} {@permission}"
  645.             stop
  646.  
  647.  
  648. command /chatclear:
  649.     aliases: cc
  650.     trigger:
  651.         if player has permission "essentialsskript.chatclear or essentialsskript.*":
  652.             loop 98 times:
  653.                 broadcast ""           
  654.             broadcast "{@tag} &aChat zostal wyczyszcony przez admina!"
  655.             stop
  656.         else:
  657.             send "{@tag} {@permission}"
  658.             stop
  659. command /chat [<text>]:
  660.     trigger:
  661.         if player has permission "essentialsskript.chat or essentialsskript.*":
  662.             if arg 1 is "on":
  663.                 set {essentialsskript.chat.allowed} to false
  664.                 broadcast ""
  665.                 broadcast "          {@servername}         "
  666.                 broadcast "     Chat zostal &2Wlaczony!   "
  667.                 broadcast ""
  668.                 broadcast ""
  669.                 stop
  670.             if arg 1 is "off":
  671.                 set {essentialsskript.chat.allowed} to true
  672.                 broadcast ""
  673.                 broadcast "          {@servername}         "
  674.                 broadcast "     Chat zostal &4wylaczony!   "
  675.                 broadcast ""
  676.                 broadcast ""
  677.                 stop
  678.             send "{@tag} &6Uzyj: &c/chat on/off"
  679.             stop
  680.         else:
  681.             send "{@tag} {@permission}"
  682.             stop
  683. command /smite [<player>]:
  684.     aliases: thor
  685.     trigger:
  686.         if player has permission "essentialsskript.smite or essentialsskript.*":
  687.             if argument 1 is set:
  688.                 strike lightning at argument 1
  689.                 message "{@tag} &8Zostales uderzony piorunem!" to argument 1
  690.             else:
  691.                 strike lightning at the target block
  692. command /jump:
  693.     aliases: j, jumpto, skocz
  694.     trigger:
  695.         if player has permission "essentialsskript.jump or essentialsskript.*":
  696.             if targeted block is not air:
  697.                 teleport player above location of targeted block
  698.                 send "{@tag} &bTeleportacja!"
  699.                 stop
  700.             else:
  701.                 send "{@tag} &cNie odnaleziono lokacji!"
  702.                 stop
  703.         else:
  704.             send "{@tag} {@permission}"
  705.             stop
  706. command /setspawn:
  707.     trigger:
  708.         if player has permission "essentialsskript.setspawn or essentialsskript.*":
  709.             set {essentialsskript.spawn} to location of player
  710.             send "{@tag} &7Ustawiono spawn!"
  711.             stop
  712.         else:
  713.             send "{@tag} {@permission}"
  714.             stop
  715.  
  716. command /spawn:
  717.     trigger:
  718.         if player has permission "essentialsskript.spawn or essentialsskript.*":
  719.             if {essentialsskript.spawn} is set:
  720.                 if {cooldown} is false:
  721.                     teleport player to {essentialsskript.spawn}
  722.                     send "{@tag} &7Teleportacja!"
  723.                     stop
  724.                 else:
  725.                     set {_pos} to location of player
  726.                     send "{@tag}&7Czekaj &65 sekund&7, nie wolno Ci sie ruszyc!"
  727.                     if {_pos} isn't location of player:
  728.                         send "{@tag}&cWykryto ruch, teleportacja anulowana!"
  729.                         stop
  730.                     wait 1 second
  731.                     if {_pos} isn't location of player:
  732.                         send "{@tag}&cWykryto ruch, teleportacja anulowana!"
  733.                         stop
  734.                     wait 1 second
  735.                     if {_pos} isn't location of player:
  736.                         send "{@tag}&cWykryto ruch, teleportacja anulowana!"
  737.                         stop
  738.                     wait 1 second
  739.                     if {_pos} isn't location of player:
  740.                         send "{@tag}&cWykryto ruch, teleportacja anulowana!"
  741.                         stop
  742.                     wait 1 second
  743.                     if {_pos} isn't location of player:
  744.                         send "{@tag}&cWykryto ruch, teleportacja anulowana!"
  745.                         stop
  746.                     wait 1 second
  747.                     if {_pos} is location of player:
  748.                         teleport player to {essentialsskript.spawn}
  749.                         send "{@tag}&7Teleportacja..."
  750.                         stop
  751.                     else:
  752.                         send "{@tag}&cWykryto ruch, teleportacja anulowana!"
  753.                         stop
  754.             else:
  755.                 send "{@tag} &cSpawn nie zostal ustawiony skontaktuj sie z administratorem!"
  756.                 stop
  757.         else:
  758.             send "{@tag} {@permission}"
  759.             stop
  760.            
  761. on death of player:
  762.     if player has permission "essentialsskript.back or essentialsskript.*":
  763.         clear {essentialsskript.%player%.back}
  764.         set {essentialsskript.%player%.back} to location of player
  765.         stop
  766.        
  767. command /back:
  768.     aliases: wroc
  769.     trigger:
  770.         if player has permission "essentialsskript.back or essentialsskript.*":
  771.             if {essentialsskript.%player%.back} is set:
  772.                 teleport player to {essentialsskript.%player%.back}
  773.                 send "{@tag} &bPrzeteleportowano na poprzednie miejsce!"
  774.                 stop
  775.             else:
  776.                 send "{@tag} &cNie masz gdzie wrocic!"
  777.                 stop
  778.         else:
  779.             send "{@tag} {@permission}"
  780.             stop
  781.            
  782. on respawn:
  783.     teleport player to {essentialsskript.spawn}
  784.     if player has permission "essentialsskript.back or essentialsskript.*":
  785.         send "{@tag} &7Aby wrocic wpisz &c/back"
  786.         stop
  787. on chat:
  788.     if {essentialsskript.chat.allowed} is true:
  789.         if player has permission "essentialsskript.chat.allowed or essentialsskript.*":
  790.             set {_chat} to "{@chat-format}"
  791.             replace all "{RANK}" with "%coloured player's prefix%" in {_chat}
  792.             replace all "{NICK}" with "%display name of player%" in {_chat}
  793.             replace all "{MESSAGE}" with "&f%coloured message%" in {_chat}
  794.             replace all "{WORLD}" with "&8[&6%player's world%&8]" in {_chat}
  795.             send "%{_chat}%" to all players
  796.             cancel event
  797.             stop
  798.         else:
  799.             send "{@tag} &cChat jest obecnie wylaczony!"
  800.             cancel event
  801.             stop
  802.     if {mute.%player%} is true:
  803.         send "{@tag} &cJestes zmutowany!"
  804.         cancel event
  805.         stop
  806.     set {_chat} to "{@chat-format}"
  807.     replace all "{RANK}" with "%coloured player's prefix%" in {_chat}
  808.     replace all "{NICK}" with "%display name of player%" in {_chat}
  809.     replace all "{MESSAGE}" with "&f%coloured message%" in {_chat}
  810.     replace all "{WORLD}" with "&8[&6%player's world%&8]" in {_chat}
  811.     send "%{_chat}%" to all players
  812.     cancel event
  813.            
  814. command /killall:
  815.     aliases: butcher
  816.     trigger:
  817.         if player has permission "essentialsskript.killall or essentialsskript.*":
  818.             kill all creatures in the player's world
  819.             send "{@tag} &cZabito wszystkie stwory!"
  820.             stop
  821.         else:
  822.             send "{@tag} {@permission}"
  823.             stop
  824.  
  825. command /killallplayers:
  826.     trigger:
  827.         if player has permission "essentialsskript.killall or essentialsskript.*":
  828.             kill all players in the player's world
  829.             send "{@tag} &cZabito wszystkich graczy!"
  830.             stop
  831.         else:
  832.             send "{@tag} {@permission}"
  833.             stop
  834.  
  835. command /sethome:
  836.     aliases: ustawdom
  837.     trigger:
  838.         if player has permission "essentialsskript.sethome or essentialsskript.*":
  839.             set {essentialsskript.%player%.home} to location of player
  840.             send "{@tag} &bUstawiono home!"
  841.             stop
  842.         else:
  843.             send "{@tag} {@permission}"
  844.             stop
  845. command /home:
  846.     aliases: dom
  847.     trigger:
  848.         if player has permission "essentialsskript.home or essentialsskript.*":
  849.             if {essentialsskript.%player%.home} is set:
  850.                 if {cooldown} is false:
  851.                     teleport player to {essentialsskript.%player%.home}
  852.                     send "{@tag} &aTeleportacja!"
  853.                     stop
  854.                 else:
  855.                     set {_pos} to location of player
  856.                     send "{@tag} &7Czekaj &65 sekund&7, nie wolno Ci sie ruszyc!"
  857.                     if {_pos} isn't location of player:
  858.                         send "{@tag} &cWykryto ruch, teleportacja anulowana!"
  859.                         stop
  860.                     wait 1 second
  861.                     if {_pos} isn't location of player:
  862.                         send "{@tag} &cWykryto ruch, teleportacja anulowana!"
  863.                         stop
  864.                     wait 1 second
  865.                     if {_pos} isn't location of player:
  866.                         send "{@tag} &cWykryto ruch, teleportacja anulowana!"
  867.                         stop
  868.                     wait 1 second
  869.                     if {_pos} isn't location of player:
  870.                         send "{@tag} &cWykryto ruch, teleportacja anulowana!"
  871.                         stop
  872.                     wait 1 second
  873.                     if {_pos} isn't location of player:
  874.                         send "{@tag} &cWykryto ruch, teleportacja anulowana!"
  875.                         stop
  876.                     wait 1 second
  877.                     if {_pos} is location of player:
  878.                         teleport player to {essentialsskript.%player%.home}
  879.                         send "{@tag} &bTeleportacja..."
  880.                         stop
  881.                     else:
  882.                         send "{@tag} &cWykryto ruch, teleportacja anulowana!"
  883.                         stop
  884.             else:
  885.                 send "{@tag} &cHome nie zostal ustawiony skontaktuj sie z administratorem!"
  886.                 stop
  887.         else:
  888.             send "{@tag} {@permission}"
  889.             stop
  890. command /delhome:
  891.     trigger:
  892.         if player has permission "essentialsskript.delhome or essentialsskript.*":
  893.             if {essentialsskript.%player%.home} is set:
  894.                 delete {essentialsskript.%player%.home}
  895.                 send "{@tag} &bUsunieto home!"
  896.                 stop
  897.             else:
  898.                 send "{@tag} &cNie masz domu!"
  899.                 stop
  900.         else:
  901.             send "{@tag} {@permission}"
  902.             stop
  903. on leftclick on bed:
  904.     if player has permission "essentialsskript.home or essentialsskript.*":
  905.         set {essentialsskript.%player%.home} to location of player
  906.         send "{@tag} &bUstawiono home!"
  907.         stop
  908.     else:
  909.         send "{@tag} {@permission}"
  910.         stop
  911. command /vanish [<player>]:
  912.     aliases: v, niewidzialnosc
  913.     trigger:
  914.         if player has permission "essentialsskript.vanish or essentialsskript.*":
  915.             if {essentialsskript.%player%.vanish} is false:
  916.                 hide arg 1 from all players
  917.                 set {essentialsskript.%player%.vanish} to true
  918.                 send "{@tag} &7Jestes niewidzialny!!!"
  919.                 stop
  920.             if {essentialsskript.%player%.vanish} is true:
  921.                 reveal arg 1 to all players
  922.                 set {essentialsskript.%player%.vanish} to false
  923.                 send "{@tag} &7Jestes widoczny!"
  924.                 stop
  925.             if arg 1 is not set:
  926.                 if {essentialsskript.%player%.vanish} is not set:
  927.                     set {essentialsskript.%player%.vanish} to false
  928.                     send "{@tag} &6Wlaczono komende vanish!"
  929.                     stop
  930.         else:
  931.             send "{@tag} {@permission}"
  932.             stop
  933.                
  934. command /whois [<player>]:
  935.     aliases: ktoto
  936.     trigger:
  937.         if player has permission "essentialsskript.whois or essentialsskript.*":
  938.             send "&6Nick: &7%argument 1%"
  939.             send "&6Swiat: &7%world of argument 1%"
  940.             send "&6IP: &7%IP of argument 1%"
  941.             send "&6Polozenie: &7%location of argument 1%"
  942.             stop
  943.         else:
  944.             send "{@tag} {@permission}"
  945.             stop
  946.  
  947. aliases:
  948.     nonsolid = 0, 6, 27, 28, 30, 31, 32, 37, 38, 39, 40, 50, 55, 59, 63, 64, 65, 66, 68, 69, 70, 71, 72, 75, 76, 77, 78:0, 83, 85:4-7, 104, 105, 106, 111, 115, 131, 132, 141, 142, 143, 147, 148, 157
  949.  
  950. command /top:
  951.     trigger:
  952.         player has permission "essentialsskript.top or essentialsskript.*":
  953.             loop blocks above player:
  954.                 loop-block is not air or lava
  955.                 block above loop-block is air
  956.                 block 2 above loop-block is air
  957.                 teleport player to block above loop-block
  958.                 send "{@tag} &bTeleportacja na najwyzszy klocek!"
  959.                 stop
  960.             send "{@tag} &cBlad teleportacji!"
  961.             stop
  962.             send "{@tag} {@permission}"
  963.  
  964. on rightclick with compass:
  965.     if player has permission "essentialsskript.compass or essentialsskript.*":
  966.         loop blocks above targeted block:
  967.             if targeted block is not air:
  968.                 loop-block is nonsolid
  969.                 block above loop-block is nonsolid
  970.                 teleport player above location of targeted block
  971.                 stop
  972.             else:
  973.                 send "{@tag} &cBlad teleportacji!"
  974.                 stop
  975.     else:
  976.         send "{@tag} {@permission}"
  977.         stop
  978.        
  979. command /spawnmob [<entity type>] [<integer = 1>]:
  980.     trigger:
  981.         if player has permission "essentialsskript.spawnmob or essentialsskript.*":
  982.             if arg 1 is set:
  983.                 if argument 2 is more than {@maxspawn}:
  984.                     send "{@tag} &cMaksymalna ilosc zrepienia mobow to &b{@maxspawn}!"
  985.                     stop
  986.                 if argument 2 is less than {@maxspawn}:
  987.                     set {essentialsskript.%player%.spawnamount} to argument 2
  988.                     wait 1 tick
  989.                     spawn {essentialsskript.%player%.spawnamount} of argument 1 at the target block
  990.                     send "{@tag} &bZrespiles &c%argument 2%&b %argument 1%"
  991.                     stop
  992.             else:
  993.                 send "{@tag} &cPodaj typ moba!"
  994.                 stop
  995.         else:
  996.             send "{@tag} {@permission}"
  997.             stop
  998.            
  999. command /kill [<player>]:
  1000.     trigger:
  1001.         if player has permission "essentialsskrip.kill or essentialsskript.*":
  1002.             kill argument 1
  1003.             send "{@tag} &7Zabito gracza &6%arg 1%"
  1004.             stop
  1005.         else:
  1006.             send "{@tag} {@permission}"
  1007.             stop
  1008.            
  1009. command /i [<item>] [<integer = 1>]:
  1010.     aliases: item, items, give, get
  1011.     trigger:
  1012.         if player has permission "essentialsskript.give or essentialsskript.*":
  1013.             if arg 1 is set:
  1014.                 if argument 2 is more than {@maxgive}:
  1015.                     send "{@tag} &cMaksymalna ilosc zrepienia przedmiotow to &b{@maxgive}!"
  1016.                     stop
  1017.                 if argument 2 is less than {@maxgive}:
  1018.                     set {essentialsskript.%player%.ilosc} to argument 2
  1019.                     wait 1 tick
  1020.                     give {essentialsskript.%player%.ilosc} of argument 1 to player
  1021.                     stop
  1022.             else:
  1023.                 send "{@tag} &cPodaj nazwe/id itemu!"
  1024.                 stop
  1025.         else:
  1026.             send "{@tag} {@permission}"
  1027.             stop
  1028.            
  1029. command /tnt:
  1030.     trigger:
  1031.         if player has permission "essentialsskript.tnt":
  1032.             create explosion of force 4 at the target block
  1033.             send "{@tag} &bBum!"
  1034.             stop
  1035.         else:
  1036.             send "{@tag} {@permission}"
  1037.             stop
  1038.  
  1039. command /god [<player>]:
  1040.     aliases: niesmiertelnosc
  1041.     trigger:
  1042.         if player has permission "essentialsskript.god or essentialsskript.*":
  1043.             if {god.wlacz.%player%} = 0:
  1044.                 message "{@tag} &bGod wlaczony"
  1045.                 set {god.wlacz.%player%} to 1
  1046.                 set {god2.wlacz.%player%} to 1
  1047.             else:
  1048.                 message "{@tag} &bGod wylaczony"
  1049.                 set {god.wlacz.%player%} to 0
  1050.                 set {god2.wlacz.%player%} to 0
  1051.                 stop
  1052.         else:
  1053.             send "{@tag} {@permission}"
  1054.             stop
  1055. on damage:
  1056.     if {god2.wlacz.%victim%} is 1:
  1057.         cancel event
  1058.  
  1059. command /me [<text>]:
  1060.     trigger:
  1061.         if player has permission "essentialsskript.me or essentialsskript.*":
  1062.             if arg 1 is set:
  1063.                 broadcast "&5* &4%player%&5 %argument 1%"
  1064.                 stop
  1065.             else:
  1066.                 send "{@tag} &cPodaj wiadomosc!"
  1067.                 stop
  1068.         else:
  1069.             send "{@tag} {@permission}"
  1070.             stop
  1071. command /getpos:
  1072.     trigger:
  1073.         if player has permission "essentialsskript.getpos or essentialsskript.*":
  1074.             send "{@tag} &bTwoje polozenie &c%location of player%"
  1075.             stop
  1076.         else:
  1077.             send "{@tag} {@permission}"
  1078.             stop
  1079. command /repair:
  1080.     aliases: napraw
  1081.     trigger:
  1082.         if player has permission "essentialsskript.repair or essentialsskript.*":
  1083.             repair tool of the player
  1084.             send "{@tag} &bNaprawiono twoj przedmiot."
  1085.             stop
  1086.         else:
  1087.             send "{@tag} {@permission}"
  1088.             stop
  1089.  
  1090. command /burn [<player>]:
  1091.     aliases: podpal
  1092.     trigger:
  1093.         if player has permission "essentialsskript.fire or essentialsskript.*":
  1094.             if arg 1 is set:
  1095.                 ignite argument 1
  1096.                 send "{@tag} &bPodpaliles gracza %arg 1%"
  1097.                 stop
  1098.             else:
  1099.                 send "{@tag} &cPodaj nick gracza!"
  1100.                 stop
  1101.         else:
  1102.             send "{@tag} {@permission}"
  1103.             stop
  1104. command /endersee [<player>]:
  1105.     trigger:
  1106.         if player has permission "essentialsskript.endersee or essentialsskript.*":
  1107.             if arg 1 is set:
  1108.                 open the player's ender chest to the player
  1109.                 stop
  1110.             else:
  1111.                 send "{@tag} &cPodaj nick gracza!"
  1112.                 stop
  1113.         else:
  1114.             send "{@tag} {@permission}"
  1115.             stop
  1116.  
  1117. command /tell [<player>] [<text>]:
  1118.     aliases: r, msg
  1119.     trigger:
  1120.         if player has permission "essentialsskript.tell or essentialsskript.*":
  1121.             if arg 1 is set:
  1122.                 if arg 2 is set:
  1123.                     send "&6[Ja -> &7%player%&6]&f %arg 2%" to argument 1
  1124.                     message "&6[&7%arg 1% &6-> Ja&6]&f %arg 2%"
  1125.                     set {essentialsskript.%arg 1%.reply} to player
  1126.                     stop
  1127.                 else:
  1128.                     send "{@tag} &cPodaj wiadomosc!"
  1129.                     stop
  1130.             else:
  1131.                 send "{@tag} &cPodaj gracza!"
  1132.                 stop
  1133.         else:
  1134.             send "{@tag} {@permission}"
  1135.             stop
  1136. command /afk:
  1137.     trigger:
  1138.         if player has permission "essentialsskript.afk or essentialsskript.*":
  1139.             if {afk.%player%} is not set:
  1140.                 set {afk.%player%} to true
  1141.                 send "{@tag} &6Wlaczono komende afk!"
  1142.                 stop
  1143.             if {afk.%player%} is true:                 
  1144.                 set {afk.%player%} to false
  1145.                 broadcast "<yellow>%player% <pink>jest teraz &fAFK"
  1146.                 stop
  1147.             if {afk.%player%} is false:
  1148.                 set {afk.%player%} to true
  1149.                 broadcast "<yellow>%player% <pink>juz nie jest &fAFK"
  1150.                 stop
  1151.         else:
  1152.             send "{@tag} {@permission}"
  1153.             stop
  1154.  
  1155. command /mute [<player>]:
  1156.     trigger:
  1157.         if player has permission "essentialsskript.mute or essentialsskript.*":
  1158.             if arg 1 is set:
  1159.                 set {mute.%argument 1%} to true
  1160.                 send "{@tag} &bZostales wyciszony" to argument 1
  1161.                 send "{@tag} &bWyciszyles gracza &6%arg 1%"
  1162.                 stop
  1163.             else:
  1164.                 send "{@tag} &cPodaj nick gracza!"
  1165.                 stop
  1166.         else:
  1167.             send "{@tag} {@permission}"
  1168.             stop
  1169. command /fly [<player>]:
  1170.     trigger:
  1171.         if player has permission "essentialsskript.fly or essentialsskript.*":
  1172.             if {essentialsskript.%player%.fly} is false:
  1173.                 allow arg 1 to fly
  1174.                 set {essentialsskript.%player%.fly} to true
  1175.                 send "{@tag}&b Wlaczyles fly graczowi &c%arg 1%"
  1176.                 stop
  1177.             if {essentialsskript.%player%.fly} is true:
  1178.                 disallow arg 1 to fly
  1179.                 set {essentialsskript.%player%.fly} to false
  1180.                 send "{@tag}&b Wylaczyles fly graczowi &c%arg 1%"
  1181.                 stop
  1182.             if {essentialsskript.%player%.fly} is not set:
  1183.                 set {essentialsskript.%player%.fly} to false
  1184.                 send "{@tag} &bWlaczono komende fly!"
  1185.                 stop
  1186.             else:
  1187.                 send "{@tag} &cPodaj nick gracza"
  1188.                 stop
  1189.         else:
  1190.             send "{@tag} {@permission}"
  1191.             stop
  1192. command /unmute [<player>]:
  1193.     trigger:
  1194.         if player has permission "essentialsskript.mute or essentialsskript.*":
  1195.             if arg 1 is set:
  1196.                 if {mute.%argument 1%} is true:
  1197.                     set {mute.%argument 1%} to false
  1198.                     send "{@tag} &bZnow mozesz mowic" to argument 1
  1199.                     stop
  1200.                 else:
  1201.                     send "{@tag} &cTen Gracz nie jest wyciszony!"
  1202.                     stop
  1203.             else:
  1204.                 send "{@tag} &cPodaj gracza!"
  1205.                 stop
  1206.         else:
  1207.             send "{@tag} {@permission}"
  1208.             stop
  1209.  
  1210.            
  1211. command /essentialsskript [<text>]:
  1212.     aliases: es, essentials
  1213.     trigger:
  1214.         if arg 1 is not set:
  1215.             send "{@tag} &eEssentialsSkript by PatisonPlayGames [FejminTV ,ISOPL]"
  1216.             send "{@tag} &eWiecej pod /pomoc"
  1217.             stop
  1218.         if arg 1 is "reload":
  1219.             if player has permission "essentialsskript.reload" or "essentialsskript.*":
  1220.                 execute console command "/sk reload {@sk}"
  1221.                 send "{@tag} &bPrzeladowano!"
  1222.                 stop
  1223.             else:
  1224.                 send "{@tag} {@permission}"
  1225.                 stop
  1226. command /enchant <enchantment type>:
  1227.     aliases: ench
  1228.     trigger:
  1229.         if arg 1 is set:
  1230.             if player has permission "essentialsskript.enchant or essentialsskript.*":
  1231.                 enchant player's tool with argument
  1232.                 send "{@tag} &bZenchantowales przedmiot &c%arg 1%!"
  1233.             else:
  1234.                 send "{@tag} {@permission}"
  1235.                 stop
  1236.         else:
  1237.             send "{@tag} {@permission}"
  1238.             stop
  1239. command /pomoc [<text>]:
  1240.     trigger:
  1241.         player has permission "essentialsskript.pomoc or essentialsskript.*":
  1242.             if arg 1 is not set:
  1243.                 send "&b---- &4[&6Pomoc&4] &b-- &4[&6Strona &c1&7/&c5&4] &b---"
  1244.                 send "&6/kick&f: Kickowanie graczy"
  1245.                 send "&6/ban&f: Banowanie graczy"
  1246.                 send "&6/banlist&f: Lista banow"
  1247.                 send "&6/banip&f: Banowanie graczy na ip"
  1248.                 send "&6/unban&f: Odbanowywanie graczy"
  1249.                 send "&6/heal&f: Leczenie graczy"
  1250.                 send "&6/feed&f: Zaspokojenie glodu graczu"
  1251.                 send "&6/clear&f: Usuwanie itemow z eq"
  1252.                 send "&6/invsee&f: Patrzenie do eq graczom"
  1253.                 send "&6/gm&f: Zmienianie trybu gry"
  1254.                 send "&6/list&f: Lista graczy na serwerze"
  1255.                 send "&6/sun&f: Sloneczna pogoda"
  1256.                 send "&7Wpisz &c/pomoc 2&7 aby przeczytac nastepna strone"
  1257.             if arg 1 is "1":
  1258.                 send "&b---- &4[&6Pomoc&4] &b-- &4[&6Strona &c1&7/&c5&4] &b---"
  1259.                 send "&6/kick&f: Kickowanie graczy"
  1260.                 send "&6/ban&f: Banowanie graczy"
  1261.                 send "&6/banlist&f: Lista banow"
  1262.                 send "&6/banip&f: Banowanie graczy na ip"
  1263.                 send "&6/unban&f: Odbanowywanie graczy"
  1264.                 send "&6/heal&f: Leczenie graczy"
  1265.                 send "&6/feed&f: Zaspokojenie glodu graczu"
  1266.                 send "&6/clear&f: Usuwanie itemow z eq"
  1267.                 send "&6/invsee&f: Patrzenie do eq graczom"
  1268.                 send "&6/gm&f: Zmienianie trybu gry"
  1269.                 send "&6/list&f: Lista graczy na serwerze"
  1270.                 send "&6/sun&f: Sloneczna pogoda"
  1271.                 send "&7Wpisz &c/pomoc 2&7 aby przeczytac nastepna strone"
  1272.             if arg 1 is "2":
  1273.                 send "&b---- &4[&6Pomoc&4] &b-- &4[&6Strona &c2&7/&c5&4] &b---"
  1274.                 send "&6/rain&f: Deszczowa pogoda"
  1275.                 send "&6/break&f: Niszczenie bloku na ktory sie patrzy"
  1276.                 send "&6/nick&f: Zmienianie nicku"
  1277.                 send "&6/nickoff&f: Powracanie do swojego pierwotnego nicku"
  1278.                 send "&6/day&f: Dzien"
  1279.                 send "&6/night&f: Noc"
  1280.                 send "&6/tp&f: Teleportacja"
  1281.                 send "&6/tpall&f: Teleportowanie wszystkich graczy"
  1282.                 send "&6/time&f: Sprawdzanie czasu"
  1283.                 send "&6/say&f: wiadomosc na chat'cie"
  1284.                 send "&6/broadcast&f: Ogloszenie"
  1285.                 send "&6/near&f: Gracze w poblizu"
  1286.                 send "&6/broadcast&f: Ogloszenie"
  1287.                 send "&6/fireball&f: Plonaca kula"
  1288.                 send "&7Wpisz &c/pomoc 3&7 aby przeczytac nastepna strone"
  1289.             if arg 1 is "3":
  1290.                 send "&b---- &4[&6Pomoc&4] &b-- &4[&6Strona &c3&7/&c5&4] &b---"
  1291.                 send "&6/chatclear&f: Usuwanie chat'u"
  1292.                 send "&6/chat&f: Wylaczanie/Wlaczanie chat'u"
  1293.                 send "&6/smite&f: Pioruny"
  1294.                 send "&6/jump&f: Skok na blok ktory sie patrzy"
  1295.                 send "&6/setspawn&f: Ustawianie spawnu"
  1296.                 send "&6/spawn&f: Telelportacja na spawn"
  1297.                 send "&6/back&f: Wracanie do ostatniej lokalizacji"
  1298.                 send "&6/killall&f: Zabijanie wszystkich mobow"
  1299.                 send "&6/killallplayers&f: Zabijanie wszystkich graczy"
  1300.                 send "&6/sethome&f: Ustawianie home"
  1301.                 send "&6/home&f: Teleportacja na home"
  1302.                 send "&6/delhome&f: Usuwanie home"
  1303.                 send "&7Wpisz &c/pomoc 4&7 aby przeczytac nastepna strone"
  1304.             if arg 1 is "4":
  1305.                 send "&b---- &4[&6Pomoc&4] &b-- &4[&6Strona &c4&7/&c5&4] &b---"
  1306.                 send "&6/vanish&f: Niewidzialnosc"
  1307.                 send "&6/whois&f: Informacje o graczu"
  1308.                 send "&6/top&f: Teleportacja na powierzchnie"
  1309.                 send "&6/kill&f: Zabijanie gracza"
  1310.                 send "&6/tnt&f: Tworzenie explozii TNT"
  1311.                 send "&6/god&f: Niesmiertelnosc"
  1312.                 send "&6/me&f: Pisanie na chat'cie"
  1313.                 send "&6/essentialsskript&f: Autorzy skryptu"
  1314.                 send "&6/repair&f: Podpala"
  1315.                 send "&6/tell&f: Wysyla wiadomosc"
  1316.                 send "&6/mute&f: Wyciszasz gracza"
  1317.                 send "&6/unmute&f: Gracz moze znow mowic"
  1318.                 send "&6/endersee&f: Sprawdzanie enderchest graczowi"
  1319.                 send "&7Wpisz &c/pomoc 5&7 aby przeczytac nastepna strone"
  1320.             if arg 1 is "5":
  1321.                 send "&b---- &4[&6Pomoc&4] &b-- &4[&6Strona &c5&7/&c5&4] &b---"
  1322.                 send "&6/setwarp&f: Ustawia warpa"
  1323.                 send "&6/warplist&f: Lista warpow"
  1324.                 send "&6/warp&f: Teleportacja na dany warp"
  1325.                 send "&6/selwarp&f: Usuwanie warpow"
  1326.                 send "&6/tree&f: Tworzy drzewo"
  1327.                 send "&6/firework&f: Strzela fajerwerka"
  1328.                 send "&6/afk&f: ustawia AFK"
  1329.                 send "&6/enchant&f: Enchantuje item"
  1330.                 send "&6/fly&f: Latanie"
  1331.                 send "&6/tppos&f: Teleportacja na dane kordy"
  1332.                 stop
  1333.  
  1334. on sign change:
  1335.     if player has permission "essentialsskript.color.sign" or "essentialsskript.*":
  1336.         set line 1 to coloured line 1
  1337.         set line 2 to coloured line 2
  1338.         set line 3 to coloured line 3
  1339.         set line 4 to coloured line 4
  1340.         stop
  1341.  
  1342.  
  1343. on chat:
  1344.     if player has permission "essentialsskript.color.chat" or "essentialsskript.*":
  1345.         set message to coloured message
  1346.         stop
  1347.  
  1348. command /tphere [<player>]:
  1349.     aliases: s
  1350.     trigger:
  1351.         if player has permission "essentialsskript.tphere" or "essentialsskript.*":
  1352.             if arg 1 is set:
  1353.                 teleport argument 1 to the player
  1354.                 send "{@tag} &bTeleportacja..."
  1355.                 stop
  1356.             else:
  1357.                 send "{@tag} &cPodaj nick gracza!"
  1358.                 stop
  1359.         else:
  1360.             send "{@tag} {@permission}"
  1361.             stop
  1362.  
  1363. command /setwarp [<text>]:
  1364.     trigger:
  1365.         if player has permission "essentialsskript.createwarp or essentialsskript.*":
  1366.             arg is set:
  1367.                 {essentialsskript.warp.%arg%} is not set:
  1368.                     set {essentialsskript.warp.%argument%} to location of the player
  1369.                     add "%arg%" to {essentialsskript.warp.warplist::*}
  1370.                     message "{@tag} &bStworzyles warp &c%argument%!"
  1371.                 else:
  1372.                     send "{@tag} &bTaki warp juz istenieje"
  1373.                     stop
  1374.             else:
  1375.                 send "{@tag} &cPodaj nazwe warpa"
  1376.                 stop
  1377.         else:
  1378.             send "{@tag} {@permission}"
  1379.             stop
  1380. command /warp [<text>]:
  1381.     trigger:
  1382.         if player has permission "essentialsskript.warp or essentialsskript.*":
  1383.             if {essentialsskript.warp.%argument%} is not set:
  1384.                 message "{@tag} &bWarp '%argument%' nie zostal odnaleziony!"
  1385.             if {essentialsskript.warp.%argument%} is set:
  1386.                 send "{@tag} &bTeleportacja do &c%argument 1%&b za &c2 &bsekundy!"
  1387.                 wait 2 seconds
  1388.                 teleport the player to {essentialsskript.warp.%argument%}
  1389.                 stop
  1390.         else:
  1391.             send "{@tag} {@permission}"
  1392.             stop
  1393. command /delwarp [<text>]:
  1394.     trigger:
  1395.         if player has permission "essentialsskript.delwarp or essentialsskript.*":
  1396.             arg is set:
  1397.                 {essentialsskript.warp.%argument%} is set:
  1398.                     delete {essentialsskript.warp.%argument%}
  1399.                     remove "%arg%" from {essentialsskript.warp.warplist::*}
  1400.                     send "{@tag} &bWarp &c%arg%&b zostal usuniety."
  1401.                     stop
  1402.                 send "{@tag} &bTaki nie istnieje. &c/warplist"
  1403.                 stop
  1404.             send "{@tag} &bPodaj nazwe warpa. &c/usunwarp <warp>"
  1405.             stop
  1406.         else:
  1407.             send "{@tag} {@permission}"
  1408.             stop
  1409. command /warplist:
  1410.     trigger:
  1411.         if player has permission "essentialsskript.warp or essentialsskript.*":
  1412.             {essentialsskript.warp.warplist::*} is set:
  1413.                 send "{@tag} &bLista warpow:"
  1414.                 send "%{essentialsskript.warp.warplist::*}%"
  1415.                 stop
  1416.             send "{@tag} &bBrak dostepnych warpow."
  1417.             stop
  1418.         else:
  1419.             send "{@tag} {@permission}"
  1420.             stop
  1421. command /firework:
  1422.     trigger:
  1423.         if player has permission "essentialsskript.firework or essentialsskript.*":
  1424.             shoot a firework
  1425.             stop
  1426.  
  1427. # # # # # # # # # # # # # # ## # # # # # # # # # # # # # #
  1428. #                                            #
  1429. #                       Tabliczki                    #
  1430. #                                                        #
  1431. # # # # # # # # # # # # # # ## # # # # # # # # # # # # # #
  1432. # # # # # # # # # # # # # # #
  1433. #                           #
  1434. #         Gamemode          #
  1435. #                           #
  1436. # # # # # # # # # # # # # # #
  1437. on rightclick on sign:
  1438.     if player has permission "essentialsskript.sign.use or essentialsskript.*":
  1439.         if line 2 of the clicked block is "survival":
  1440.             set the gamemode of the player to survival
  1441.             heal the player by 10 hearts
  1442.             send "{@tag} &bZmeniles swoj tryb gry na &cna survival!"
  1443.             stop
  1444.     else:
  1445.         send "{@tag} {@permission}"
  1446.         stop
  1447. on rightclick on sign:
  1448.     if player has permission "essentialsskript.sign.use or essentialsskript.*":
  1449.         if line 2 of the clicked block is "creative":
  1450.             set the gamemode of the player to creative
  1451.             heal the player by 10 hearts
  1452.             send "{@tag} &bZmeniles swoj tryb gry na &cna creative!"
  1453.             stop
  1454.     else:
  1455.         send "{@tag} {@permission}"
  1456.         stop
  1457. on rightclick on sign:
  1458.     if player has permission "essentialsskript.sign.use or essentialsskript.*":
  1459.         if line 2 of the clicked block is "adventure":
  1460.             set the gamemode of the player to adventure
  1461.             send "{@tag} &bZmeniles swoj tryb gry na &cna adventure!"
  1462.             stop
  1463.     else:
  1464.         send "{@tag} {@permission}"
  1465.         stop
  1466. on sign change:
  1467.     if line 1 is "[gm]":
  1468.         if line 2 is "1":
  1469.             set line 1 to "&1&l[GameMode]"
  1470.             set line 2 to "creative"
  1471.             send "{@tag} &6Stworzono tabliczke z gamemode!"
  1472.             stop
  1473.         if line 2 is "0":
  1474.             set line 1 to "&1&l[GameMode]"
  1475.             set line 2 to "survival"
  1476.             send "{@tag} &6Stworzono tabliczke z gamemode!"
  1477.             stop
  1478.         if line 2 is "2":
  1479.             set line 1 to "&1&l[GameMode]"
  1480.             set line 2 to "adventure"
  1481.             send "{@tag} &6Stworzono tabliczke z gamemode!"
  1482.             stop
  1483.         else:
  1484.             set line 1 to "&c&lError!"
  1485.             stop
  1486. # # # # # # # # # # # # # # #
  1487. #                           #
  1488. #           Warp            #
  1489. #                           #
  1490. # # # # # # # # # # # # # # #
  1491. on right click on sign:
  1492.     if line 1 of clicked block is "&1&L[Warp]":
  1493.         if {essentialsskript.warp.%line 2 of clicked block%} is set:
  1494.             apply nausea 2 to the player for 5 seconds
  1495.             send "{@tag} &bTeleportacja do &c%line 2 of clicked block%&b za &c2 &bsekundy!"
  1496.             wait 2 seconds
  1497.             teleport the player to {essentialsskript.warp.%line 2 of clicked block%}
  1498.         if {essentialsskript.warp.%line 2 of clicked block%} is not set:
  1499.             set line 3 to "&4BLEDNA"
  1500.             set line 4 to "&4NAZWA WARPA"
  1501. on sign change:
  1502.     if player has permission "essentialsskript.warp.sign":
  1503.         if line 1 is "[warp]":
  1504.             set line 1 to "&1&L[Warp]"
  1505.             stop
  1506.  
  1507. # # # # # # # # # # # # # # #
  1508. #                           #
  1509. #          Pogoda           #
  1510. #                           #
  1511. # # # # # # # # # # # # # # #
  1512.  
  1513. on rightclick on sign:
  1514.     if player has permission "essentialsskript.sign.use or essentialsskript.*":
  1515.         if line 2 of the clicked block is "deszcz":
  1516.             set the weather in the player's world to rain
  1517.             send " &bUstawiles pogode w swiecie &c%player's world% &8 na &6deszczowa!"
  1518.     else:
  1519.         send "{@tag} {@permission}"
  1520.         stop
  1521. on rightclick on sign:
  1522.     if player has permission "essentialsskript.sign.use or essentialsskript.*":
  1523.         if line 2 of the clicked block is "slonce":
  1524.             set the weather in the player's world to sun
  1525.             send " &bUstawiles pogode w swiecie &c%player's world% &8 na &6sloneczna!"
  1526.             stop
  1527.     else:
  1528.         send "{@tag} {@permission}"
  1529.         stop
  1530. on sign change:
  1531.     if line 1 is "[weather]":
  1532.         if line 2 is "sun":
  1533.             set line 1 to "&1&l[weather]"
  1534.             set line 2 to "sun"
  1535.             stop
  1536.         if line 2 is "rain":
  1537.             set line 1 to "&1&l[weather]"
  1538.             set line 2 to "rain"
  1539.             stop
  1540.         if line 1 is not "sun" or "rain":
  1541.             set line 1 to "&c&lError"
  1542.             stop
  1543. # # # # # # # # # # # # # # #
  1544. #                           #
  1545. #           Czas            #
  1546. #                           #
  1547. # # # # # # # # # # # # # # #
  1548.  
  1549.  
  1550. on rightclick on sign:
  1551.     if player has permission "essentialsskript.sign.use or essentialsskript.*":
  1552.         if line 2 of the clicked block is "noc":
  1553.             set time in the player's world to 19:00
  1554.             send "&bUstawiles noc w swiecie &c%player's world%"
  1555.             stop
  1556.     else:
  1557.         send "{@tag} {@permission}"
  1558.         stop
  1559. on rightclick on sign:
  1560.     if player has permission "essentialsskript.sign.use or essentialsskript.*":
  1561.         if line 2 of the clicked block is "dzien":
  1562.             set time in the player's world to 8:00
  1563.             send "&bUstawiles dzien w swiecie &c%player's world%"
  1564.             stop
  1565.     else:
  1566.         send "{@tag} {@permission}"
  1567.         stop
  1568. on sign change:
  1569.     if line 1 is "[time]":
  1570.         if line 2 is "dzien":
  1571.             set line 2 to "dzien"
  1572.             set line 1 to "&1&l[Time]"
  1573.             stop
  1574.         if line 2 is "noc":
  1575.             set line 2 to "noc"
  1576.             set line 1 to "&1&l[Time]"
  1577.             stop
  1578.         if line 1 is not "noc" or "dzien":
  1579.             set line 1 to "&c&lError"
  1580.             stop
  1581. # # # # # # # # # # # # # # #
  1582. #                           #
  1583. #         Naprawa           #
  1584. #                           #
  1585. # # # # # # # # # # # # # # #
  1586.        
  1587. on rightclick on sign:
  1588.     if player has permission "essentialsskript.sign.use or essentialsskript.*":
  1589.         if line 2 of the clicked block is "hand":
  1590.             repair tool of the player
  1591.             send "{@tag} &bNaprawiles przedmiot trzymany w rece!"
  1592.             stop
  1593.         if line 2 of the clicked block is "all":
  1594.             repair all items in the player's inventory
  1595.             send "{@tag} &bNaprawiles wszystkie przedmioty!"
  1596.             stop
  1597.     else:
  1598.         send "{@tag} {@permission}"
  1599.         stop
  1600. on sign change:
  1601.     if line 1 is "[repair]":
  1602.         if line 2 is "hand":
  1603.             set line 1 to "&1&l[Repair]"
  1604.             set line 2 to "hand"       
  1605.         if line 2 is "all":
  1606.             set line 1 to "&1&l[Repair]"
  1607.             set line 2 to "all"
  1608.         if line 2 is not "all" or "hand":
  1609.             set line 1 to "&c&lError!"
  1610.             stop
  1611. # # # # # # # # # # # # # # #
  1612. #                           #
  1613. #          Ulecz            #
  1614. #                           #
  1615. # # # # # # # # # # # # # # #
  1616.  
  1617. on rightclick on sign:
  1618.     if player has permission "essentialsskript.sign.use or essentialsskript.*":
  1619.         if line 2 of the clicked block is "gracza":
  1620.             set the player's food level to 10
  1621.             heal the player by 10 hearts
  1622.             send "{@tag} &bUleczyles sie!"
  1623.             stop
  1624.     else:
  1625.         send "{@tag} {@permission}"
  1626.         stop
  1627. on sign change:
  1628.     if line 1 is "[ulecz]":
  1629.         if line 2 is "g":
  1630.             set line 1 to "&1&l[Ulecz]"
  1631.             set line 2 to "Gracza"
  1632.         else:
  1633.             set line 1 to "&c&lError!"
  1634.             stop   
  1635.  
  1636. command /tppos [<integer>] [<integer>] [<integer>] [<player=%player%>]:
  1637.     trigger:
  1638.         if player has permission "essentialsskript.topos" or "essentialsskript.*":
  1639.             if arg 1 is set:
  1640.                 if arg 2 is set:
  1641.                     if arg 3 is set:
  1642.                         set {_currentlocation} to location of arg-player
  1643.                         set {_relative.x} to rounded down the x coord of {_currentlocation}
  1644.                         subtract arg-1 from {_relative.x}
  1645.                         set {_relative.y} to rounded down the y coord of {_currentlocation}
  1646.                         subtract arg-2 from {_relative.y}
  1647.                         set {_relative.z} to rounded down the z coord of {_currentlocation}
  1648.                         subtract arg-3 from {_relative.z}
  1649.                         set {_destinationx} to the block {_relative.x} west of the block at {_currentlocation}
  1650.                         set {_destinationy} to the block {_relative.y} below the block at {_destinationx}
  1651.                         set {_destination} to the block {_relative.z} north of the block at {_destinationy}
  1652.                         teleport the player to {_destination}
  1653.                     else:
  1654.                         send "{@tag} &cPodaj kordy z!"
  1655.                         stop
  1656.                 else:
  1657.                     send "{@tag} &cPodaj kordy y!"
  1658.                     stop
  1659.             else:
  1660.                 send "{@tag} &cPodaj kordy x!"
  1661.                 stop
  1662.         else:
  1663.             send "{@tag} {@permission}"
  1664.             stop
  1665.  
  1666.  
  1667. command /tree:
  1668.     trigger:
  1669.         if player has permission "essentialsskript.tree" or "essentialsskript.*":
  1670.             if targeted block is grass:
  1671.                 set block above targeted block to oak log
  1672.                 set block 2 above targeted block to oak log
  1673.                 set block 3 above targeted block to oak log
  1674.                 set block 4 above targeted block to oak log
  1675.                 set block 5 above targeted block to oak log
  1676.                 set block 6 above targeted block to oak log
  1677.                 set block 6 above targeted block to oak leaves
  1678.                 set block 1 north 1 west 5 above targeted block to oak leaves
  1679.                 set block 1 north 1 east 5 above targeted block to oak leaves
  1680.                 set block 1 south 1 west 5 above targeted block to oak leaves
  1681.                 set block 1 south 1 east 5 above targeted block to oak leaves
  1682.                 set block 1 west 6 above targeted block to oak leaves
  1683.                 set block 1 south 6 above targeted block to oak leaves
  1684.                 set block 1 north 6 above targeted block to oak leaves
  1685.                 set block 1 east 6 above targeted block to oak leaves
  1686.                 set block 1 west 5 above targeted block to oak leaves
  1687.                 set block 1 south 5 above targeted block to oak leaves
  1688.                 set block 1 north 5 above targeted block to oak leaves
  1689.                 set block 1 east 5 above targeted block to oak leaves
  1690.                 set block 1 west 3 above targeted block to oak leaves
  1691.                 set block 2 west 3 above targeted block to oak leaves
  1692.                 set block 1 north 3 above targeted block to oak leaves
  1693.                 set block 2 north 3 above targeted block to oak leaves
  1694.                 set block 1 east 3 above targeted block to oak leaves
  1695.                 set block 2 east 3 above targeted block to oak leaves
  1696.                 set block 1 south 3 above targeted block to oak leaves
  1697.                 set block 2 south 3 above targeted block to oak leaves
  1698.                 set block 1 west 4 above targeted block to oak leaves
  1699.                 set block 2 west 4 above targeted block to oak leaves
  1700.                 set block 1 north 4 above targeted block to oak leaves
  1701.                 set block 2 north 4 above targeted block to oak leaves
  1702.                 set block 1 east 4 above targeted block to oak leaves
  1703.                 set block 2 east 4 above targeted block to oak leaves
  1704.                 set block 1 south 4 above targeted block to oak leaves
  1705.                 set block 2 south 4 above targeted block to oak leaves
  1706.                 set block 2 north 1 west 3 above targeted block to oak leaves
  1707.                 set block 2 north 2 west 3 above targeted block to oak leaves
  1708.                 set block 1 north 2 west 3 above targeted block to oak leaves
  1709.                 set block 1 north 1 west 3 above targeted block to oak leaves
  1710.                 set block 2 north 1 east 3 above targeted block to oak leaves
  1711.                 set block 2 north 2 east 3 above targeted block to oak leaves
  1712.                 set block 1 north 2 east 3 above targeted block to oak leaves
  1713.                 set block 1 north 1 east 3 above targeted block to oak leaves
  1714.                 set block 2 south 1 west 3 above targeted block to oak leaves
  1715.                 set block 2 south 2 west 3 above targeted block to oak leaves
  1716.                 set block 1 south 2 west 3 above targeted block to oak leaves
  1717.                 set block 1 south 1 west 3 above targeted block to oak leaves
  1718.                 set block 2 south 1 east 3 above targeted block to oak leaves
  1719.                 set block 1 south 2 east 3 above targeted block to oak leaves
  1720.                 set block 1 south 1 east 3 above targeted block to oak leaves      
  1721.                 set block 2 north 1 west 3 above targeted block to oak leaves
  1722.                 set block 1 north 2 west 4 above targeted block to oak leaves
  1723.                 set block 1 north 1 west 4 above targeted block to oak leaves
  1724.                 set block 2 north 1 east 4 above targeted block to oak leaves
  1725.                 set block 2 north 2 east 4 above targeted block to oak leaves
  1726.                 set block 1 north 2 east 4 above targeted block to oak leaves
  1727.                 set block 1 north 1 east 4 above targeted block to oak leaves
  1728.                 set block 2 south 1 west 4 above targeted block to oak leaves
  1729.                 set block 2 south 2 west 4 above targeted block to oak leaves
  1730.                 set block 1 south 2 west 4 above targeted block to oak leaves
  1731.                 set block 1 south 1 west 4 above targeted block to oak leaves
  1732.                 set block 2 south 1 east 4 above targeted block to oak leaves
  1733.                 set block 1 south 2 east 4 above targeted block to oak leaves
  1734.                 set block 1 south 1 east 4 above targeted block to oak leaves
  1735.             else:
  1736.                 send "{@tag} &cDrzewo mozna posadzic tylko na trawie!"
  1737.                 stop
  1738.         else:
  1739.             send "{@tag} {@permission}"
  1740.             stop
  1741. on script load:
  1742.     set {cooldown} to {@cooldown}
  1743.    
  1744. on skript start:
  1745.     send "&8EssentialsSkript wymaga wersji Skript 2.0.2 ..." to the console
  1746.     wait 1 seconds
  1747.     send "&8Serwer pracuje na wersji: %skript version%" to the console
  1748.     send "" to the console
  1749.     send "&8--------------------------------------------------------------" to the console
  1750.     send "&8|                                                            |" to the console
  1751.     send "&8|                  Enable &9EssentialsSkript               &8|" to the console
  1752.     send "&8|                                                            |" to the console
  1753.     send "&8--------------------------------------------------------------" to the console
  1754.     send "" to the console
  1755.     send "&8Autor: &ePatisonPlayGames [FejminTV, ISOPL]" to the console
  1756.     send "&8Version: &7{@version}" to the console
  1757.     set {cooldown} to {@cooldown}
  1758.     send "" to the console
Advertisement
Add Comment
Please, Sign In to add comment