SHOW:
|
|
- or go back to the newest paste.
| 1 | - | on first join: |
| 1 | + | command /game <text> [<text>]: |
| 2 | - | set {lbwar.player.firstjoin::%player%} to true
|
| 2 | + | permission: atmark.command.game |
| 3 | - | broadcast "&2&lEntrance &7>> &dFirstJoin: %player%" |
| 3 | + | |
| 4 | if arg 1 is "standby": | |
| 5 | - | on join: |
| 5 | + | set {system.status.stop} to false
|
| 6 | - | if {lbwar.player.firstjoin::%player%} is true:
|
| 6 | + | broadcast "&3&lSystem &7>> &a参加者を募集中です" |
| 7 | - | set {lbwar.player.firstjoin::%player%} to false
|
| 7 | + | |
| 8 | - | stop |
| 8 | + | while true: |
| 9 | - | set join message to "&2&lEntrance &7>> &eJoin: %player%" |
| 9 | + | if {system.status.stop} is true:
|
| 10 | broadcast "&3&lSystem &7>> &cゲームの開始がキャンセルされました" | |
| 11 | - | on quit: |
| 11 | + | exit loop |
| 12 | - | set quit message to "&2&lEntrance &7>> &cQuit: %player%" |
| 12 | + | set {_players} to 0
|
| 13 | loop all players: | |
| 14 | - | command /launch <text> [<text>]: |
| 14 | + | block below loop-player is emerald block |
| 15 | - | permission: lbwar.launch |
| 15 | + | add 1 to {_players}
|
| 16 | if {_players} > 3:
| |
| 17 | command "/game countdown 30" | |
| 18 | - | set {launch.system.stop} to false
|
| 18 | + | exit loop |
| 19 | wait a second | |
| 20 | if arg 1 is "countdown": | |
| 21 | - | broadcast "&3&lSystem &7>> &aまもなく &7-&4&lL&c&launc&4&lh&7- &aが開始します" |
| 21 | + | set {system.status.stop} to false
|
| 22 | broadcast "&3&lSystem &7>> &eカウントダウンを開始します" | |
| 23 | - | loop {_count}+1 times:
|
| 23 | + | |
| 24 | arg 2 is set | |
| 25 | - | set action bar of loop-player to coloured "&7-&4&lL&c&launc&4&lh&7- &e開始まで &6%{_count}%秒"
|
| 25 | + | |
| 26 | - | remove 1 from {_count}
|
| 26 | + | loop {_count} times:
|
| 27 | if {system.status.stop} is true:
| |
| 28 | - | if {launch.system.stop} is true:
|
| 28 | + | broadcast "&3&lSystem &7>> &cゲームの開始がキャンセルされました" |
| 29 | - | broadcast "&3&lSystem &7>> &7-&4&lL&c&launc&4&lh&7- &cの開始がキャンセルされました" |
| 29 | + | exit loop |
| 30 | - | stop |
| 30 | + | |
| 31 | - | command "/launch start" |
| 31 | + | block below loop-player is emerald block |
| 32 | - | if arg 1 is "start": |
| 32 | + | command "/game countdown 30" |
| 33 | - | set {launch.system.stop} to false
|
| 33 | + | set {system.status.join::%{system.status.plamount}%} to loop-player
|
| 34 | - | loop all players: |
| 34 | + | add 1 to {system.status.plamount}
|
| 35 | - | block below loop-player is emerald block |
| 35 | + | |
| 36 | - | add 1 to {launch.system.plamount}
|
| 36 | + | |
| 37 | - | set {launch.system.join::%{launch.system.plamount}%} to loop-player
|
| 37 | + | |
| 38 | - | message "&3&lSystem &7>> &7-&4&lL&c&launc&4&lh&7- &bへの参加に成功しました" to loop-player |
| 38 | + | |
| 39 | - | wait 2 tick |
| 39 | + | |
| 40 | - | if {launch.system.plamount} < 1:
|
| 40 | + | |
| 41 | - | broadcast "&3&lSystem &7>> &a人数が足りない為再度参加者の募集を行います &2(%{launch.system.plamount}%/3)"
|
| 41 | + | |
| 42 | - | command "/launch stop" |
| 42 | + | true is true |