Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /join:
- trigger:
- if {_join::%player%} is not set:
- set {_join::%player%} to player
- add 1 to {join.player}
- teleport player to {spawn.join}
- send "&8[&eTDM&8] &6%player%が参加しました &7(現在参加者:&a%{join.player}%&7人)"
- wait a tick
- if {join.player} is 2:
- send "&8[&eTDM&8] &6参加者が集まったのでカウントダウンを開始します"
- set {_game.start.timer} to 100
- if {join.player} >= 3:
- remove 7 from {_game.start.timer}
- else:
- send "&8[&eTDM&8] &cすでに参加しています!"
- while {_game.start.timer} is not 0:
- wait 1 second
- remove 1 from {_game.start.timer}
- send action bar "&7ゲーム開始まで &a%{_game.start.timer}%&7秒" to player
- while {_game.start.timer} is 0:
- loop {_join::*}:
- if size of {red::*} is 0:
- add loop-player to {red::*}
- send "&8[&eTDM&8]&6 あなたは&c赤&6チームです" to loop-player
- if size of {red::*} = size of {blue::*}:
- add loop-player to {red::*}
- send "&8[&eTDM&8]&6 あなたは&c赤&6チームです" to loop-player
- if size of {red::*} > size of {blue::*}:
- add loop-player to {blue::*}
- send "&8[&eTDM&8]&6 あなたは&9青&6チームです" to loop-player
- command /game [<text>]:
- permission: admin
- permission message: Unknown command. Type "/help" for help.
- trigger:
- if arg-1 is "reset":
- delete {_join::*}
- delete {_game.start}
- delete {join.player}
- send "&8[&eTDM&8] &aゲームをリセットしました"
- command /spawn [<text>] [<text>] [<text>]:
- permission: admin
- permission message: Unknown command. Type "/help" for help.
- trigger:
- if arg-1 is "help":
- if arg-2 or arg-3 is not set:
- send "&7使用法&8: &c/spawn < join | game > < set | delete > < red | blue >"
- else if arg-3 is not set:
- if arg-1 is "join":
- if arg-2 is "set":
- if {spawn.join} is not set:
- set {spawn.join} to player's location
- send "&8[&eTDM&8] &6GAMEJOINスポーン地点をセットしました"
- else:
- set {spawn.join} to player's location
- send "&8[&eTDM&8] &6GAMEJOINスポーン地点を上書きしました"
- else if arg-2 is "delete":
- if {spawn.join} is set:
- delete {spawn.join}
- send "&8[&eTDM&8] &6GAMEJOINスポーン地点を削除しました"
- else:
- send "&8[&eTDM&8] &cGAMEJOINスポーン地点をセットしていません!"
- else if arg-1 is "game":
- if arg-2 is "set":
- if arg-3 is "red" or "r":
- if {spawn.game.red} is not set:
- set {spawn.game.red} to player's location
- send "&8[&eTDM&8] &6赤チームのスポーン地点を設定しました"
- else:
- set {spawn.game.red} to player's location
- send "&8[&eTDM&8] &6赤チームのスポーン地点を上書きしました"
- else if arg-3 is "blue" or "b":
- if {spawn.game.blue} is not set:
- set {spawn.game.blue} to player's location
- send "&8[&eTDM&8] &6青チームのスポーン地点を設定しました"
- else:
- set {spawn.game.blue} to player's location
- send "&8[&eTDM&8] &6青チームのスポーン地点を上書きしました"
- else:
- if arg-2 is "delete":
- if arg-3 is "red" or "r":
- if {spawn.game.red} is set:
- delete {spawn.game.red}
- send "&8[&eTDM&8] &6赤チームのスポーン地点を削除しました"
- else:
- send "&8[&eTDM&8] &c赤チームのスポーン地点をセットしていません!"
- else if arg-3 is "blue" or "b":
- if {spawn.game.blue} is set:
- delete {spawn.game.blue}
- send "&8[&eTDM&8] &6青チームのスポーン地点を削除しました"
- else:
- send "&8[&eTDM&8] &c青チームのスポーン地点をセットしていません!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement