Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on join:
- if player hasn't played before:
- set {_msg} to {joinsk.firstjoin}
- replace all "{player}" with "%player%" in {_msg}
- replace all "{amount}" with "%amount of players%" in {_msg}
- set join message to {_msg}
- stop
- set {_msg} to {joinsk.join}
- replace all "{player}" with "%player%" in {_msg}
- replace all "{amount}" with "%amount of players%" in {_msg}
- set join message to {_msg}
- stop
- on load:
- if {joinsk.firstjoin} is not set:
- set {joinsk.firstjoin} to "&e{player} が初参加しました。"
- if {joinsk.join} is not set:
- set {joinsk.join} to "&e{player} がゲームに参加しました。"
- if {joinsk.leave} is not set:
- set {joinsk.quit} to "&e{player} が退出しました。"
- on quit:
- set {_msg} to {joinsk.quit}
- replace all "{player}" with "%player%" in {_msg}
- replace all "{amount}" with "%amount of players%" in {_msg}
- set quit message to {_msg}
- command /joinformat [<text>]:
- permission: skript.admin
- trigger:
- if arg 1 is not set:
- send "&c使用法:/joinformat <フォーマット>"
- send ""
- send "&b参加時のメッセージフォーマットを設定します。"
- send "&d{player}&bは&e参加プレイヤーの名前&bに、&d{amount}&bは&eサーバーにいる人数&bに置換されます。"
- stop
- set {joinsk.join} to coloured arg 1
- command /firstjoinformat [<text>]:
- permission: skript.admin
- trigger:
- if arg 1 is not set:
- send "&c使用法:/firstjoinformat <フォーマット>"
- send ""
- send "&b初参加時のメッセージフォーマットを設定します。"
- send "&d{player}&bは&e初参加プレイヤーの名前&bに、&d{amount}&bは&eサーバーにいる人数&bに置換されます。"
- stop
- set {joinsk.firstjoin} to coloured arg 1
- command /quitformat [<text>]:
- permission: skript.admin
- trigger:
- if arg 1 is not set:
- send "&c使用法:/quitformat <フォーマット>"
- send ""
- send "&b退出時のメッセージフォーマットを設定します。"
- send "&d{player}&bは&e退出プレイヤーの名前&bに、&d{amount}&bは&eサーバーにいる人数&bに置換されます。"
- stop
- set {joinsk.quit} to coloured arg 1
Advertisement
Add Comment
Please, Sign In to add comment