7mm

Skript: lbWar

7mm
Sep 23rd, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.65 KB | None | 0 0
  1. on first join:
  2. set {lbwar.player.firstjoin::%player%} to true
  3. broadcast "&2&lEntrance &7>> &dFirstJoin: %player%"
  4.  
  5. on join:
  6. if {lbwar.player.firstjoin::%player%} is true:
  7. set {lbwar.player.firstjoin::%player%} to false
  8. stop
  9. set join message to "&2&lEntrance &7>> &eJoin: %player%"
  10.  
  11. on quit:
  12. set quit message to "&2&lEntrance &7>> &cQuit: %player%"
  13.  
  14. command /launch <text> [<text>]:
  15. permission: lbwar.launch
  16. trigger:
  17. if arg 1 is "countdown":
  18. set {launch.system.stop} to false
  19. arg 2 is set
  20. set {_count} to arg 2 parsed as integer
  21. broadcast "&3&lSystem &7>> &aまもなく &7-&4&lL&c&launc&4&lh&7- &aが開始します"
  22. command "execute @a ~ ~ ~ playsound block.note.pling master @s"
  23. loop {_count}+1 times:
  24. loop all players:
  25. set action bar of loop-player to coloured "&7-&4&lL&c&launc&4&lh&7- &e開始まで &6%{_count}%秒"
  26. remove 1 from {_count}
  27. wait a second
  28. if {launch.system.stop} is true:
  29. broadcast "&3&lSystem &7>> &7-&4&lL&c&launc&4&lh&7- &cの開始がキャンセルされました"
  30. stop
  31. command "/launch start"
  32. if arg 1 is "start":
  33. set {launch.system.stop} to false
  34. loop all players:
  35. block below loop-player is emerald block
  36. add 1 to {launch.system.plamount}
  37. set {launch.system.join::%{launch.system.plamount}%} to loop-player
  38. message "&3&lSystem &7>> &7-&4&lL&c&launc&4&lh&7- &bへの参加に成功しました" to loop-player
  39. wait 2 tick
  40. if {launch.system.plamount} < 1:
  41. broadcast "&3&lSystem &7>> &a人数が足りない為再度参加者の募集を行います &2(%{launch.system.plamount}%/3)"
  42. command "/launch stop"
  43. command "/launch countdown 60"
  44. stop
  45. broadcast "&3&lSystem &7>> &aゲームを開始します"
  46. message "&7>> &aゲーム: &7-&4&lL&c&launc&4&lh&7-" to {launch.system.join::*}
  47. message "&7>> &aプレイヤー数: &6&l%{launch.system.plamount}%" to {launch.system.join::*}
  48. message "&7>> &e&l罠を仕掛けて敵を潰せ!" to {launch.system.join::*}
  49. set {lbwar.system.game} to "launch"
  50. if arg 1 is "stop":
  51. set {launch.system.stop} to true
  52. set {launch.system.plamount} to 0
  53. clear {launch.system.join::*}
  54.  
  55. command /gmenu [<text>]:
  56. trigger:
  57. if {lbwar.system.game} is "launch":
  58. {launch.system.join::*} is player
  59. open chest with 1 rows named "&7-&4&lL&c&launc&4&lh&7-" to player
  60. format slot 1 of player with filled_map named "&eマップ投票" to run "map %player%"
  61. format slot 4 of player with wooden_pressure_plate named "&eトラップ選択" to run "trap %player%"
  62. format slot 4 of player with blaze_rod named "&eスティック選択" to run "stick %player%"
Advertisement
Add Comment
Please, Sign In to add comment