Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /game <text> [<text>]:
- permission: atmark.command.game
- trigger:
- if arg 1 is "standby":
- set {system.status.stop} to false
- broadcast "&3&lSystem &7>> &a参加者を募集中です"
- command "execute @a ~ ~ ~ playsound block.note.pling master @s"
- while true:
- if {system.status.stop} is true:
- broadcast "&3&lSystem &7>> &cゲームの開始がキャンセルされました"
- exit loop
- set {_players} to 0
- loop all players:
- block below loop-player is emerald block
- add 1 to {_players}
- if {_players} > 3:
- command "/game countdown 30"
- exit loop
- wait a second
- if arg 1 is "countdown":
- set {system.status.stop} to false
- broadcast "&3&lSystem &7>> &eカウントダウンを開始します"
- command "execute @a ~ ~ ~ playsound block.note.pling master @s"
- arg 2 is set
- set {_count} to arg 2 parsed as integer
- loop {_count} times:
- if {system.status.stop} is true:
- broadcast "&3&lSystem &7>> &cゲームの開始がキャンセルされました"
- exit loop
- loop all players:
- block below loop-player is emerald block
- command "/game countdown 30"
- set {system.status.join::%{system.status.plamount}%} to loop-player
- add 1 to {system.status.plamount}
- if arg 1 is "stop":
- set {launch.system.stop} to true
- set {launch.system.plamount} to 0
- clear {launch.system.join::*}
- command /gmenu [<text>]:
- trigger:
- true is true
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement