Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /tdms [<text>] [<text>] [<text>]:
- permission: tdms.admin
- trigger:
- if arg-1 is not set:
- message "&9Help> &7/tdm join ?ゲームに参加します。"
- player is an op
- message "&c/tdms create <マップ名>"
- message "&c/tdms setspawn <マップ名> <1 or 2> ?1の場合、赤。2の場合、青。"
- message "&c/tdms stop ?ゲームをストップします。"
- message "&c/tdms start ?ゲームを開始します。"
- if arg-1 is "create":
- if arg-2 is not set:
- message "&c/tdms create <マップ名>"
- if arg-2 is set:
- if {tdms.map.%arg-2%} is true:
- message "&4&lそのマップはすでに存在します。"
- else:
- message "&b%arg-2% を作成しました。"
- set {tdms.map.%arg-2%} to true
- stop
- if arg-1 is "setspawn" :
- if arg-2 is not set:
- message "&c/tdms setspawn <マップ名> <1 or 2> ?1の場合、赤。2の場合、青。"
- if arg-2 is set:
- if {tdms.map.%arg-2%} is true:
- if arg-3 is "1":
- message "&b%arg-2% の&c赤&bのスポーンを設定しました!"
- set {tdms.setspawn.%arg-2%.1} to location of player
- stop
- if arg-3 is "2":
- message "&b%arg-2% の&1青&bのスポーンを設定しました!"
- set {tdms.setspawn.%arg-2%.1} to location of player
- else:
- message "&4&lそのマップは存在しない可能性があります!"
- stop
- if arg-1 is "start":
- if arg-2 is not set:
- message "&c開始したいゲームを入力する必要があります。"
- message "&c/tdms start <マップ>"
- if arg-2 is set:
- if {tdms.map.%arg-2%} is true:
- if {tdms.gamestart} is true:
- message "&c現在出来ません。"
- else:
- if {tdms.list} is greater than 1:
- loop all players:
- if {tdms.join.%loop-player%} is true:
- send "&b&lTDM> &e&lまもなくゲームが開始します。" to loop-player
- wipe loop-player's sidebar
- set name of sidebar of loop-player to "&6&lTeamDeathMatch"
- set score "" in sidebar of loop-player to 11
- set score "&e&lStatus" in sidebar of loop-player to 10
- set score "&f進行中..." in sidebar of loop-player to 9
- set score "&d" in sidebar of loop-player to 8
- set score "&e&lKill/Death" in sidebar of loop-player to 7
- set score "&c未実装" in sidebar of loop-player to 6
- set score "&e" in sidebar of loop-player to 5
- set score "&e&l制限時間" in sidebar of loop-player to 4
- set score " &f00:00" in sidebar of loop-player to 3
- set score " &f" in sidebar of loop-player to 2
- set score "&abattlefieldmcwiki.gq" in sidebar of loop-player to 1
- set {tdms.gamestart} to true
- send "&b&lTDM> &e&l10秒でスタート" to loop-player
- wait 5 seconds
- send "&b&lTDM> &e&l5秒でスタート" to loop-player
- wait 1 second
- send "&b&lTDM> &e&l4秒でスタート" to loop-player
- wait 1 second
- send "&b&lTDM> &e&l3秒でスタート" to loop-player
- wait 1 second
- send "&b&lTDM> &e&l2秒でスタート" to loop-player
- wait 1 second
- send "&b&lTDM> &e&l1秒でスタート" to loop-player
- wait 1 second
- else:
- message "&cそのマップはありません。"
- if arg-1 is "stop":
- set {tdms.gamestart} to false
- command /tdm <text>:
- trigger:
- if arg-1 is "join":
- if {tdms.join.%player%} is true:
- message "&c&l参加済み"
- else:
- message "&a&l参加しました"
- set {tdms.join.%player%} to true
- add 1 to {tdms.list}
- if arg-1 is "leave":
- if {tdms.join.%player%} is true:
- set {tdms.join.%player%} to false
- message "&c&l退出しました"
- remove 1 from {tdms.list}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement