Guest User

Untitled

a guest
Dec 27th, 2013
993
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.55 KB | None | 0 0
  1. variables:
  2. {lobby.status} = 1
  3.  
  4. # ----=== [ KONFIGURACJA ] ===----
  5. options:
  6. # ----=== [ Konfiguracja chatu i inne ] ===----
  7.  
  8. tag: &8[&cLobby&8]
  9. permission: &4Nie masz uprawnien by uzywac tej komendy!
  10. odleglosc: 45
  11.  
  12. # ----=== [ Konfiguracja jumpa przez blok ] ===----
  13.  
  14. blok: sponge
  15. speed: 4
  16. wysokosc: 0.9
  17.  
  18. # ----=== [ LOBBY ] ===----
  19.  
  20. command /setlobby:
  21. trigger:
  22. {cenzur.status} is 1:
  23. if player has permission "Lobby":
  24. set {lobby} to location of player
  25. message "{@tag} &fLobby ustawiony"
  26. else:
  27. send "{@tag} {@permission}"
  28. stop
  29. command /lobby [<text>]:
  30. trigger:
  31. {cenzur.status} is 1:
  32. if player has permission "Lobby":
  33. if distance between player and {loc.lobby} is larger than 6:
  34. stop
  35. else:
  36. teleport the player to {lobby}
  37. message "{@tag} &fTeleportacja..."
  38. clear the player's inventory
  39. stop
  40. else:
  41. send "{@tag} {@permission}"
  42. stop
  43. else:
  44. send "{@tag} &fLobby wylaczone. Wpisz &c/lobbys on"
  45. stop
  46.  
  47. # ----=== [ Wlaczanie/Wylaczanie LOBBY ] ===----
  48.  
  49. command /lobbys [<text>]:
  50. trigger:
  51. if player has permission "Lobby":
  52. if arg 1 is "on":
  53. set {cenzur.status} to 1
  54. send "{@tag} &7Lobby jest &aON"
  55. stop
  56. if arg 1 is "off":
  57. set {cenzur.status} to 0
  58. send "{@tag} &7Lobby jest &cOFF"
  59. stop
  60. else:
  61. send "{@tag} {@permission}"
  62. stop
  63.  
  64. # ----=== [ Tabliczki - LOBBY ] ===----
  65.  
  66. on rightclick on sign:
  67. {cenzur.status} is 1:
  68. if player has permission "Lobby":
  69. if line 1 of the clicked block is "&a[LOBBY]":
  70. teleport player to {lobby}
  71. message "{@tag} &fTeleportacja..."
  72. clear the player's inventory
  73. stop
  74. else:
  75. send "{@tag} {@permission}"
  76. stop
  77. else:
  78. send "{@tag} &fLobby wylaczone. Wpisz &c/lobbys on"
  79. stop
  80. # ----=== [ Wypadniecie za mape - LOBBY ] ===----
  81.  
  82. every 1 seconds:
  83. {cenzur.status} is 1:
  84. loop all players:
  85. if loop-player is in "world":
  86. if loop-player's y-coordinate is smaller than {@odleglosc}:
  87. teleport loop-player to {lobby}
  88. send "{@tag} &7Po co skaczesz. Na drugi raz nie skacz" to loop-player
  89. heal the loop-player by 10 hearts
  90. stop
  91. else:
  92. send "{@tag} &fLobby wylaczone. Wpisz &c/lobbys on"
  93. stop
  94. # ----=== [ Jump - LOBBY ] ===----
  95.  
  96. on walking on {@blok}:
  97. {cenzur.status} is 1:
  98. push the player upwards at speed {@wysokosc}
  99. push the player horizontally forward at speed {@speed}
  100. stop
  101. else:
  102. send "{@tag} &fLobby wylaczone. Wpisz &c/lobbys on"
  103. stop
  104.  
  105. at 16:00:
  106. {cenzur.status} is 1:
  107. set time to 8:00
  108. stop
Advertisement
Add Comment
Please, Sign In to add comment