Advertisement
Guest User

Help me, what is my error? skript of spleef

a guest
Jan 2nd, 2018
145
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. command /maxplayers <text>:
  2. permission: admin.spleef
  3. trigger:
  4. if arg 1 is set:
  5. set {maxplayers} to arg 1
  6. send "maxplayers: %arg 1%"
  7.  
  8. command /setspawn:
  9. permission: admin.spleef
  10. trigger:
  11. set {spawn} to location of player
  12. send "spawn set"
  13.  
  14. on join:
  15. player has permission "user.spleef":
  16. clear player's inventory
  17. {gamestart} is true:
  18. make console execute command "/gamemode 3 %player%"
  19. stop
  20. teleport player to {spawn}
  21. make console execute command "/gamemode 0 %player%"
  22. add 1 to {playersingame}
  23. add player to {winner}
  24. set {inwaited.%player%} to true
  25. broadcast "&a%player% &7has joined (&a%{playersingame}%&7/&a%{maxplayers}%&7)!"
  26. wait tick
  27. if {playersingame} = {maxplayers}:
  28. set {gamestart} to true
  29. loop all players:
  30. wait tick
  31. send "&7The game starts in &a5 &7seconds!" to loop-player
  32. send "&7The game starts in &a4 &7seconds!" to loop-player
  33. send "&7The game starts in &a3 &7seconds!" to loop-player
  34. send "&7The game starts in &a2 &7seconds!" to loop-player
  35. send "&7The game starts in &a1 &7second!" to loop-player
  36. set slot 0 of player to diamond shovel of efficiency 5
  37. set {ingame.%loop-player%} to true
  38.  
  39. on death of player:
  40. victim has permission "user.spleef":
  41. {ingame.%victim%} is set:
  42. subtract 1 from {playersingame}
  43. subtract victim from {winner}
  44. delete {ingame.%victim%}
  45. broadcast "&a%victim% &7fell into thew void (&a%{playersingame}%&7/&a%{maxplayers}%&7)!"
  46. wait tick
  47. {playersingame} is 1:
  48. broadcast "&a%{winner}% &7won the game!"
  49. make console execute command "/worldreload"
  50. wait 5 seconds
  51. loop all players:
  52. wait tick
  53. kick loop-player due to "&7Re join for the game."
  54. delete {gamestart}
  55.  
  56. on quit:
  57. player has permission "user.spleef":
  58. {ingame.%player%} is set:
  59. subtract 1 from {playersingame}
  60. subtract player from {winner}
  61. delete {ingame.%player%}
  62. broadcast "&a%player% &7has quit (&a%{playersingame}%&7/&a%{maxplayers}%&7)!"
  63. wait tick
  64. {playersingame} is 1:
  65. broadcast "&a%{winner}% &7won the game!"
  66. make console execute command "/worldreload"
  67. wait 5 seconds
  68. loop all players:
  69. wait tick
  70. kick loop-player due to "&7Re join for the game."
  71. delete {gamestart}
  72. {inwaited.%player%} is set:
  73. subtract 1 from {playersingame}
  74. subtract player from {winner}
  75. delete {ingame.%player%}
  76. broadcast "&a%player% &7has quit (&a%{playersingame}%&7/&a%{maxplayers}%&7)!"
  77. wait tick
  78.  
  79. on respawn:
  80. player has permission "user.spleef":
  81. make console execute command "/gamemode 3 %player%"
  82. teleport player to {spawn}
  83.  
  84. on damage:
  85. attacker has permission "user.spleef"
  86. cancel event
  87.  
  88. on break:
  89. player has permission "user.spleef":
  90. {inwaited.%player%} is set:
  91. cancel event
  92. stop
  93. cancel event
  94. set block to air
  95. {ignore::%location of event-block%} is not set:
  96. add location of block to {game.broken.blocks::*}
  97. add type of block to {game.broken.type::*}
  98. set {ignore::%location of event-block%} to true
  99.  
  100. command /worldreload:
  101. permission: admin.spleef
  102. trigger:
  103. loop {game.broken.blocks::*}:
  104. set {_loc} to loop-value
  105. set block at {_loc} to {game.broken.type::%loop-index%}
  106. delete {game.broken.blocks::*}
  107. delete {game.broken.type::*}
  108.  
  109. on hunger level change:
  110. player has permission "user.spleef"
  111. cancel event
  112.  
  113. on player pick up:
  114. player has permission "user.spleef"
  115. cancel event
  116.  
  117. on drop:
  118. player has permission "user.spleef"
  119. cancel event
  120.  
  121. on eat:
  122. player has permission "user.spleef"
  123. cancel event
  124.  
  125. on death:
  126. clear drops
  127.  
  128. on xp spawn:
  129. cancel event
  130.  
  131. at 18:00:
  132. set time to 7:00
  133.  
  134. on weather change to rain or thunder:
  135. cancel event
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement