Guest User

Untitled

a guest
Dec 13th, 2014
209
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.56 KB | None | 0 0
  1.  
  2. options:
  3. logo: &4&lR&eU&f&lN
  4.  
  5. variables:
  6. {gra.%player%} = false
  7.  
  8. on join:
  9. if {gra.%player%} is true:
  10. set {gra.%player%} to false
  11. teleport player to {spawn}
  12. clear player's inventory
  13. loop 36 times:
  14. set slot {_count} of player's inventory to {inv.%player%.%{_count}%.main}
  15. add 1 to {_count}
  16. set the helmet of player to {inv.%player%.helmet.main}
  17. set the chestplate of player to {inv.%player%.chest.main}
  18. set the leggings of player to {inv.%player%.legs.main}
  19. set the boots of player to {inv.%player%.feet.main}
  20. set {gra.%player%} to false
  21.  
  22. on walking on wool:
  23. set block under player to yellow wool
  24. on walking on yellow wool:
  25. set block under player to red wool
  26. on walking on red wool:
  27. set block under player to air
  28. on walking on wool:
  29. wait 5 seconds
  30. set block under player to air
  31. on walking on yellow wool:
  32. wait 7 seconds
  33. set block under player to air
  34. on walking on red wool:
  35. wait 8 seconds
  36. set block under player to air
  37.  
  38. on jump:
  39. if {gra.%player%} is true:
  40. cancel event
  41. command /run [<text>] [<text>] [<text>] [<text>]:
  42. trigger:
  43. if arg 1 is not set:
  44. send "{@logo}"
  45. send ""
  46. send "&e/run join"
  47. send "&e/run leave"
  48. if arg 1 is "join":
  49. if arg 2 is set:
  50. set {_count} to 0
  51. loop 36 times:
  52. set {inv.%player%.%{_count}%.main} to slot {_count} of player's inventory
  53. message "{inv.%player%.%{_count}%.main} is %{inv.%player%.%{_count}%.main}%"
  54. add 1 to {_count}
  55. set {inv.%player%.helmet.main} to player's helmet
  56. set {inv.%player%.chest.main} to player's chestplate
  57. set {inv.%player%.legs.main} to player's leggings
  58. set {inv.%player%.feet.main} to player's boots
  59. clear player's inventory
  60. set {_count} to 0
  61. set {gra.%player%} to true
  62. teleport player to {arena.lobby.%arg 2%}
  63. send "&eDolaczyles do %arg 2%"
  64. else:
  65. send "&4Podaj nazwe areny!"
  66. if arg 1 is "admin":
  67. if arg 2 is "set":
  68. if arg 3 is "lobby":
  69. set {arena.lobby.%arg 4%} to location of player
  70. send "&4Ustawiles lobby"
  71. if arg 3 is "spawnarena":
  72. if arg 4 is set:
  73. set {arena.spawn.%arg 4%} to location of player
  74. send "&4Ustawiles spawn dla areny %arg 4%"
  75. else:
  76. send "&4Poprawne uzycie: /run admin set lobby lub /run admin set spawnarena [nr areny] lub admin create [arena] lub admin remove [arena]"
  77. if arg 2 is "create":
  78. if arg 3 is set:
  79. add {arena.%arg 3%} to {areny::*}
  80. send "&4Stworzyles arene %arg 3%}"
  81. if arg 2 is "remove":
  82. if arg 3 is set:
  83. remove {arena.%arg 3%} from {areny::*}
Advertisement
Add Comment
Please, Sign In to add comment