Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on join:
- set the join message to "[Server]<green><bold>%player%さんがサーバーに参加しました。"
- on quit:
- set the quit message to "[Server]<green><bold>%player%さんがサーバーを退出しました。"
- on explode:
- cancel event
- command /tim:
- trigger:
- if {state} is set:
- send "<green><bold>現在の残り時間は%{time}%秒です。" to player
- else:
- send "<green><bold>現在試合は行われていません。"
- command /midstart <int>:
- permission: op
- trigger:
- if arg < 10:
- send "<green><bold>指定された残り時間が短すぎます!10秒以上にしてください。"
- else:
- broadcast "[Server]<green><bold>今回のみどろんぱの残り時間は%arg%秒です。"
- broadcast "[Server]<green><bold>みどろんぱ開始まで30秒..."
- wait 10 seconds
- broadcast "[Server]<green><bold>みどろんぱ開始まで20秒..."
- wait 10 seconds
- broadcast "[Server]<green><bold>みどろんぱ開始まで10秒..."
- wait 5 seconds
- broadcast "[Server]<green><bold>みどろんぱ開始まで5秒..."
- wait 1 seconds
- broadcast "[Server]<green><bold>みどろんぱ開始まで4秒..."
- wait 1 seconds
- broadcast "[Server]<green><bold>みどろんぱ開始まで3秒..."
- wait 1 seconds
- broadcast "[Server]<green><bold>みどろんぱ開始まで2秒..."
- wait 1 seconds
- broadcast "[Server]<green><bold>みどろんぱ開始まで1秒..."
- wait 1 seconds
- broadcast "[Server]<green><bold>みどろんぱを開始します。"
- set {state} to 1
- set {_countdown} to arg-10
- loop arg-10 times:
- wait 1 seconds
- set {_countdown} to {_countdown} - 1
- set {time} to {_countdown} + 10
- broadcast "[Server]<green><bold>みどろんぱ終了まで10秒前..."
- set {time} to 10
- wait 1 seconds
- set {time} to 9
- wait 1 seconds
- set {time} to 8
- wait 1 seconds
- set {time} to 7
- wait 1 seconds
- set {time} to 6
- wait 1 seconds
- broadcast "[Server]<green><bold>みどろんぱ終了まで5秒前..."
- set {time} to 5
- wait 1 seconds
- broadcast "[Server]<green><bold>みどろんぱ終了まで4秒前..."
- set {time} to 4
- wait 1 seconds
- broadcast "[Server]<green><bold>みどろんぱ終了まで3秒前..."
- set {time} to 3
- wait 1 seconds
- broadcast "[Server]<green><bold>みどろんぱ終了まで2秒前..."
- set {time} to 2
- wait 1 seconds
- broadcast "[Server]<green><bold>みどろんぱ終了まで1秒前..."
- set {time} to 1
- wait 1 seconds
- broadcast "[Server]<green><bold>みどろんぱ終了!"
- delete {state}
- delete {_countdown}
- delete {time}
- command /midend:
- permission: op
- trigger:
- if {state} is not set:
- send "<green><bold>現在試合は行われていません。"
- else:
- broadcast "[Server]<green><bold>みどろんぱ終了!"
- delete {state}
- delete {_countdown}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement