patison234

InfinityItems Beta v. 2.0 [Skript 2.0.2]

Dec 13th, 2013
1,548
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 5.39 KB | None | 0 0
  1. # # # # # # # # # # # # # # # #
  2. # Script by PatisonPlayGames  #
  3. # Name: InfinityItems         #
  4. # Version: Beta 2.0           #
  5. # Skript: 2.0.2               #
  6. # # # # # # # # # # # # # # # #
  7.  
  8.  
  9.  
  10. #=============================================#
  11. #  Licencja InfinityItems by PatisonPlayGames!#
  12. # + Nie zezwalam na:                          #
  13. # - Usuwanie tresci o autorze!                #
  14. # - Udostepnaniu skryptu innym!               #
  15. # - Podszywanie sie pod autora!               #
  16. # - Uzywanie kodu skryptu w swoich skryptach! #
  17. # - Zarabianie na skrypcie!                   #
  18. # + Zezwalam na:                              #
  19. # - Dodawanie kodu na swoja potrzebe!         #
  20. # - Modyfikowanie wiadomosci!                 #
  21. #=============================================#
  22.  
  23. options:
  24. # # # # # # # # # # # # # # #
  25. #                           #
  26. #       General Config      #
  27. #                           #
  28. # # # # # # # # # # # # # # #
  29.  
  30.  
  31.  
  32.     # Komenda uzywana w skrypcie:  
  33.     komenda: InfinityItems
  34.     # Skroty do komendy wyzej: 
  35.     aliasy: ii, infinity, items
  36.     # Tag wyswietlany przed wiadomosciami skryptu! 
  37.     tag: &8[&aInfinityItems&8]
  38.     #Nazwa pliku sk.Zanim wgrasz plik i zmieniles nazwe zmien ja takze tutaj i dopiero wgraj plik!:
  39.     sk: InfinityItems
  40.    
  41. # # # # # # # # # # # # # #
  42. #                         #
  43. #       Permissions       #
  44. #                         #
  45. # # # # # # # # # # # # # #
  46.  
  47.  
  48.  
  49.     # Wiadomosc przy braku uprawnienia:
  50.     permission: &4Nie masz uprawnien by uzywac tej komendy!
  51.  
  52.  
  53.    
  54. # Autor Config
  55.     version: Beta 2.0
  56.  
  57. command /{@komenda} [<text>] [<text>]:
  58.     aliases: {@aliasy}
  59.     trigger:
  60.         if arg 1 is "set":
  61.             if targeted block is dispenser or dropper:
  62.                 if player has permission "infinityitems.admin" or "infinityitems.set.infinity":
  63.                     set {infinityitems.%targeted block%.infinity} to true
  64.                     send "{@tag} &aUtworzone nieskonczony dispenser/dropper!"
  65.                     stop
  66.                 else:
  67.                     send "{@tag} {@permission}"
  68.                     stop
  69.             else:
  70.                 send "{@tag} &cMusisz patrzec na dispenser lub dropper"
  71.                 stop
  72.         if arg 1 is "usun" or "delete":
  73.             if {infinityitems.%targeted block%.infinity} is true:
  74.                 if targeted block is dispenser or dropper:
  75.                     if player has permission "infinityitems.admin" or "infinityitems.delete.infinity":
  76.                         set {infinityitems.%targeted block%.infinity} to false
  77.                         send "{@tag} &aUsunieto nieskonczony dispenser!"
  78.                         stop
  79.                     else:
  80.                         send "{@tag} {@permission}"
  81.                         stop
  82.                 else:
  83.                     send "{@tag} &cMusisz patrzec na dispenser lub dropper"
  84.                     stop
  85.             else:
  86.                 send "{@tag} &cTen dispenser nie jest nieskonczony!"
  87.                 stop
  88.         if arg 1 is not set:
  89.             send "&8=========={@tag}&8==========="
  90.             send "&6{@komenda} - &a Pokazuje wszystkie komendy!"
  91.             send "&6{@komenda} set - &a Ustawia nieskonczony dispenser/dropper"
  92.             send "&6{@komenda} usun - &aUsuwa nieskonczony dispenser/dropper!"
  93.             send "&6{@komenda} reload - &aPrzeladowywuje skrypt!"
  94.             send "&6{@komenda} autor - &aPokazuje informacje o autorze!"
  95.             send "&6{@komenda} wersja - &aPokazuje wersje pluginu!"
  96.             stop
  97.         if arg 1 is "pomoc" or "help":
  98.             send "&8=========={@tag}&8==========="
  99.             send "&6{@komenda} - &a Pokazuje wszystkie komendy!"
  100.             send "&6{@komenda} set - &a Ustawia nieskonczony dispenser/dropper"
  101.             send "&6{@komenda} usun - &aUsuwa nieskonczony dispenser/dropper!"
  102.             send "&6{@komenda} reload - &aPrzeladowywuje skrypt!"
  103.             send "&6{@komenda} autor - &aPokazuje informacje o autorze!"
  104.             send "&6{@komenda} wersja - &aPokazuje wersje pluginu!"
  105.             stop
  106.         if arg 1 is "przeladuj" or "reload":
  107.             if player has permission "infinityitems.reload" or "infinityitems.admin":
  108.                 execute console command "/skript reload {@sk}"
  109.                 send "{@tag} &aPrzeladowano!"
  110.                 stop
  111.             else:
  112.                 send "{@tag} {@permission}"
  113.                 stop
  114.         if arg 1 is "wersja" or "version":
  115.             send "&7----------------------------------------------"
  116.             send " &8Nazwa: &aInfinityItems"
  117.             send " &8Wersja: &a&n{@version}"
  118.             send "&7----------------------------------------------"
  119.             stop
  120.         if arg 1 is "author" or "autor":
  121.             send "&7----------------------------------------------"
  122.             send " &8Autor: &aPatisonPlayGames"
  123.             send " &8Nazwa: &aInfinityItems"
  124.             send "&8 &8&nYou&4&nTube:&a &nwww.youtube.com/PatisonPlayGames"
  125.             send "&7----------------------------------------------"
  126.             stop       
  127. on break of dispenser or dropper:
  128.     if {infinityitems.%event-block%.infinity} is true:
  129.         set {infinityitems.%event-block%.infinity} to false
  130.         send "{@tag} &aUsunieto nieskonczony dispenser!"
  131.         stop
  132.  
  133. on dispense:
  134.     if {infinityitems.%event-block%.infinity} is true:
  135.         add event-item to event-block
  136.         stop       
  137.        
  138. on skript start:
  139.     send "&8InfinityItems wymaga wersji Skript 2.0.2 ..." to the console
  140.     wait 1 seconds
  141.     send "&8Serwer pracuje na wersji: %skript version%" to the console
  142.     send "" to the console
  143.     send "&8--------------------------------------------------------------" to the console
  144.     send "&8|                                                            |" to the console
  145.     send "&8|                  Enable &9InfinityItems                  &8|" to the console
  146.     send "&8|                                                            |" to the console
  147.     send "&8--------------------------------------------------------------" to the console
  148.     send "" to the console
  149.     send "&8Autor: &ePatisonPlayGames" to the console
  150.     send "&8Version: &7{@version}" to the console
  151.     send "" to the console
Advertisement
Add Comment
Please, Sign In to add comment