Kokoszka

Untitled

Dec 15th, 2013
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.05 KB | None | 0 0
  1. if arg 1 is "join":
  2. if player has permission "castle.join" or "castle.*":
  3. if {castle.started} is false:
  4. if {castle.lobby} is set:
  5. if {castle.%player%.ingame} is false:
  6. if {castle.spawn.attackers} is set:
  7. if {castle.spawn.defenders} is set:
  8. if {castle.flag} is set:
  9. if size of items in player's inventory is 0:
  10. if size of {castle.players::*} is smaller than {@maximum_players}:
  11. set {castle.%player%.position} to player's location
  12. set {castle.%player%.ingame} to true
  13. add player to {castle.players::*}
  14. teleport player to {castle.lobby}
  15. send "{@tag} %player% dolaczyl do gry. &c%size of {castle.players::*}%&7/&c{@maximum_players}" to {castle.players::*}
  16. wait 1 second
  17. if size of {castle.players::*} is {@need_to_naturally_start}:
  18. send "{@tag} Gra zacznie sie za {@time_to_start} sekund!" to {castle.players::*}
  19. set {castle.started} to true
  20. wait {@time_to_start} seconds
  21. if size of {castle.players::*} is larger than 0:
  22. loop all players:
  23. if {castle.%loop-player%.ingame} is true:
  24. if size of {castle.defenders::*} is smaller than {@need_to_naturally_start}/2:
  25. add loop-player to {castle.defenders::*}
  26. equip loop-player with diamond helmet of protection 4
  27. equip loop-player with diamond chestplate of protection 4
  28. equip loop-player with diamond leggings of protection 4
  29. equip loop-player with diamond boots of protection 4
  30. add diamond sword of sharpness 5 and fire aspect 2 to loop-player
  31. add bow of power 5 and fire aspect 2 and infinity 1 to loop-player
  32. add 1 arrow to loop-player
  33. add 2 enchanted golden apple to loop-player
  34. add 4 golden apple to loop-player
  35. add 64 cooked porkchop to loop-player
  36. add water bucket to loop-player
  37. add 64 cobblestone to loop-player
  38. send "{@tag} Jestes w druzynie broniacych. Powodzenia !" to loop-player
  39. else:
  40. add loop-player to {castle.attackers::*}
  41. add loop-player to {castle.defenders::*}
  42. equip loop-player with diamond helmet of protection 4
  43. equip loop-player with diamond chestplate of protection 4
  44. equip loop-player with diamond leggings of protection 4
  45. equip loop-player with diamond boots of protection 4
  46. add diamond sword of sharpness 5 and fire aspect 2 to loop-player
  47. add bow of power 5 and fire aspect 2 and infinity 1 to loop-player
  48. add 1 arrow to loop-player
  49. add 2 enchanted golden apple to loop-player
  50. add 4 golden apple to loop-player
  51. add 64 cooked porkchop to loop-player
  52. add water bucket to loop-player
  53. add 64 cobblestone to loop-player
  54. add 64 tnt to loop-player
  55. add 32 redstone block to loop-player
  56. add flint and steel to loop-player
  57. send "{@tag} Jestes w druzynie atakujacych. Powodzenia !" to loop-player
  58. teleport {castle.defenders::*} to {castle.spawn.defenders}
  59. teleport {castle.attackers::*} to {castle.spawn.attackers}
  60. else:
  61. execute console command "castle restart"
  62. else if size of {castle.players::*} is {@maximum_players}:
  63. send "{@tag} Spozniles sie. Nie ma juz miejsc."
  64. else:
  65. send "{@tag} Aby dolaczyc do gry musisz oproznic swoj ekwipunek!"
  66. else:
  67. send "{@tag} Blad. Skontaktuj sie z administratorem."
  68. else:
  69. send "{@tag} Blad. Skontaktuj sie z administratorem."
  70. else:
  71. send "{@tag} Blad. Skontaktuj sie z administratorem."
  72. else:
  73. send "{@tag} Jestes juz w grze!"
  74. else:
  75. send "{@tag} Blad. Skontaktuj sie z administratorem."
  76. else:
  77. send "{@tag} Gra juz sie zaczela!"
  78. else:
  79. send "{@tag} Nie masz uprawnien do tej komendy!"
Advertisement
Add Comment
Please, Sign In to add comment