Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on rightclick on wood button:
- if {start} is false:
- set {start} to true
- loop all players:
- send loop-player title "&a5" with subtitle "&fスタートまで" for 1 seconds
- wait 1 second
- loop all players:
- send loop-player title "&a4" with subtitle "&fスタートまで" for 1 seconds
- wait 1 second
- loop all players:
- send loop-player title "&a3" with subtitle "&fスタートまで" for 1 seconds
- wait 1 second
- loop all players:
- send loop-player title "&a2" with subtitle "&fスタートまで" for 1 seconds
- wait 1 second
- loop all players:
- send loop-player title "&a1" with subtitle "&fスタートまで" for 1 seconds
- wait 1 second
- set {gameplayer} to 0
- loop all players:
- if {join.%loop-player%} is true:
- add 1 to {gameplayer}
- if {gameplayer} <= 1:
- broadcast "&c参加人数が足りませんでした"
- wait 1 second
- set {start} to false
- else:
- command "/scoreboard teams empty red"
- command "/scoreboard teams empty blue"
- loop all players:
- if {join.%loop-player%} is true:
- if {a} == 0:
- command "/scoreboard teams join red %loop-player%"
- set {a} to 1
- else:
- command "/scoreboard teams join blue %loop-player%"
- set {a} to 0
- set {start} to false
- else:
- send "&c現在試合中です" to player
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement