StertoX

[BedSpawn] v0.6

Jul 25th, 2014
404
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 4.89 KB | None | 0 0
  1. #B 0.6
  2. # Wersja Finalna
  3. # Nastepny Skript Juz Nie Dlugo
  4.  
  5. # Pamietej Skript Stworzyl StertoX
  6. # Pamietej Skript Ma Rozbudowane Mozliwosci
  7. # Pamietej Nie Placz Sie Tylko Konfiguruj
  8. # Pamietej Zeby POsiadac SkriptPlus
  9.  
  10. # Pa. Teraz Licencja
  11.  
  12. #-----------------------#
  13. #                        #
  14. #                         #
  15. #                          #
  16. #                           #
  17. #                            #
  18. #                             #
  19. #                              #
  20. #                               #
  21. #                                #
  22. #---------------------------------#
  23. #                                 #
  24. # Skript Stworzony Przez StertoXa #
  25. #                                 #
  26. #---------------------------------#
  27. # * Zabraniam Na:                 #
  28. # Podszywania SiÄ™ Pod Autora     #
  29. # Zarabiania Na Skripcie        #
  30. # Usuwania Informacji O Auturze#
  31. # Edycji Kody Skriptu         #
  32. # Usuwania Licencji Skriptu  #
  33. # * Zazwalam Na:            #
  34. # Edycje Wiadomosci        #
  35. # Edycji Konfiguracji     #
  36. # Edycje Enchantow itp   #
  37. # Edycji Nazw itp       #
  38. # Edycje Opisu itp     #
  39. # Teraz Konfiguracja  #
  40. #--------------------#
  41.  
  42. options:
  43.  
  44. #--------------------#
  45. #                    #
  46. #        TAG         #
  47. #                    #
  48. #--------------------#
  49.  
  50.     tag: &8[&9BedSpawn&8]
  51.     lines: &9~~~~~~~~~~~~~~~~
  52.  
  53. #--------------------#
  54. #                    #
  55. #      KOMENDY       #
  56. #                    #
  57. #--------------------#
  58.  
  59.     command.main: BedSpawn
  60.     command.info: Pomoc
  61.     command.reload: Reload
  62.     command.author: Autor
  63.     command.setspawn: SetSpawn
  64.     aliases: bs, beds, bspawn, beds
  65.  
  66. #--------------------#
  67. #                    #
  68. #      ROZDZKA       #
  69. #                    #
  70. #--------------------#
  71.  
  72.     bedspawn.version: &e0.6
  73.     bedspawn.name: &6Rozdzka Teleportujaca Na Spawn
  74.  
  75. #--------------------#
  76. #                    #
  77. #     MESSAGES       #
  78. #                    #
  79. #--------------------#
  80.  
  81.     msg-teleportwait: &eNa Spawn Zostaniesz Przeteleportowany Za &7%{TIME.%player%}% &eSekund
  82.     msg-teleportsuccess: &ePrzeteleportowano Na Spawn
  83.     msg-successreload: &ePrzeladowano Skript
  84.     msg-teleporterror: &cRuszyles Sie Teleportacja Anulowana
  85.     msg-nopermissions: &cNie Masz Uprawnien
  86.     msg-nolocationspawn: &cSerwer Nie Posiada Jeszcze Ustawionego Spawna
  87.     msg-successsetspawn: &eUstawiono Spawn
  88.  
  89. #--------------------#
  90. #                    #
  91. #     CRAFTING       #
  92. #                    #
  93. #--------------------#
  94.  
  95.     # | 1 | 2 | 3 |
  96.     # | 4 | 5 | 6 |
  97.     # | 7 | 8 | 9 |
  98.  
  99.     # Jesli Nie Chcemy Nic W Slocie Piszemy W Nim "none"
  100.  
  101.     slot-1: none
  102.     slot-2: block of gold
  103.     slot-3: none
  104.     slot-4: none
  105.     slot-5: ender pearl
  106.     slot-6: none
  107.     slot-7: none
  108.     slot-8: stick
  109.     slot-9: none
  110.  
  111. #--------------------#
  112. #                    #
  113. #        END         #
  114. #                    #
  115. #--------------------#
  116.  
  117. command /{@command.main} [<text>]:
  118.     aliases: {@aliases}
  119.     trigger:
  120.         if arg 1 is not set:
  121.             if player has permissions "BedSpawn.Admin" or "BedSpawn.*":
  122.                 send "&6/{@command.main} {@command.reload} &3Przeladuwuje Skript"
  123.                 send "&6/{@command.main} {@command.setspawn} &3Ustawia Spawn"
  124.                 stop
  125.             else:
  126.                 send "&6/{@command.main} {@command.author} &3- Informacje O Autorze Skriptu"
  127.                 stop
  128.         if arg 1 is "{@command.info}":
  129.             if player has permissions "BedSpawn.Admin" or "BedSpawn.*":
  130.                 send "&6/{@command.main} {@command.reload} &3Przeladuwuje Skript"
  131.                 send "&6/{@command.main} {@command.setspawn} &3Ustawia Spawn"
  132.                 stop
  133.             else:
  134.                 send "&6/{@command.main} {@command.author} &3- Informacje O Autorze Skriptu"
  135.                 stop
  136.         if arg 1 is "{@command.reload}":
  137.             if player has permissions "BedSpawn.Admin" or "BedSpawn.*":
  138.                 make console execute command "/skript reload %script%"
  139.                 send "{@tag} {@msg-successreload}"
  140.                 stop
  141.             else:
  142.                 send "{@tag} {@msg-nopermissions}"
  143.                 stop
  144.         if arg 1 is "{@command.setspawn}":
  145.             if player has permissions "BedSpawn.Admin" or "BedSpawn.*":
  146.                 set {BedSpawn.Spawn} to location of player
  147.                 set {BedSpawn.Spawn.Status} to true
  148.                 send "{@tag} {@msg-successsetspawn}"
  149.                 stop
  150.             else:
  151.                 send "{@tag} {@msg-nopermissions}"
  152.                 stop
  153.  
  154. on rightclick with stick of knockback 2:
  155.     if {BedSpawn.Spawn.Status} is true:
  156.         remove 1 stick of knockback 2 named "{@bedspawn.name}" from the player
  157.         send "{@tag} {@msg-teleportwait}"
  158.         set {_p} to location of block under player
  159.         wait a second
  160.         if {_p} is location of block under player:
  161.             wait 1 second
  162.         if {_p} is location of block under player:
  163.             wait 1 second
  164.         if {_p} is location of block under player:
  165.             wait 1 second
  166.         if {_p} is location of block under player:
  167.             teleport player to {BedSpawn.Spawn}
  168.             send "{@tag} {@msg-teleportsuccess}"
  169.         else:
  170.             send "{@tag} {@msg-teleporterror}"
  171.             stop
  172.     else:
  173.         send "{@tag} {@msg-nolocationspawn}"
  174.         stop
  175. on script load:
  176.             register new shaped recipe for stick of knockback 2 named "{@bedspawn.name}" using {@slot-1}, {@slot-2}, {@slot-3}, {@slot-4}, {@slot-5}, {@slot-6}, {@slot-7}, {@slot-8}, {@slot-9}
  177.             message "{@lines}{@tag}{@lines}" to console
  178.             message "{@tag} &eBy StertoX" to console
  179.             message "{@lines}{@tag}{@lines}" to console
  180.  
  181. on skript start:
  182.     message "{@lines}{@tag}{@lines}" to console
  183.     message "{@tag} &eBy StertoX" to console
  184.     message "{@lines}{@tag}{@lines}" to console
Advertisement
Add Comment
Please, Sign In to add comment