kjfalkeiae

Join-QuitSK

May 18th, 2019
237
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.44 KB | None | 0 0
  1. on join:
  2. if player hasn't played before:
  3. set {_msg} to {joinsk.firstjoin}
  4. replace all "{player}" with "%player%" in {_msg}
  5. replace all "{amount}" with "%amount of players%" in {_msg}
  6. set join message to {_msg}
  7. stop
  8. set {_msg} to {joinsk.join}
  9. replace all "{player}" with "%player%" in {_msg}
  10. replace all "{amount}" with "%amount of players%" in {_msg}
  11. set join message to {_msg}
  12. stop
  13.  
  14. on load:
  15. if {joinsk.firstjoin} is not set:
  16. set {joinsk.firstjoin} to "&e{player} が初参加しました。"
  17. if {joinsk.join} is not set:
  18. set {joinsk.join} to "&e{player} がゲームに参加しました。"
  19. if {joinsk.leave} is not set:
  20. set {joinsk.quit} to "&e{player} が退出しました。"
  21.  
  22. on quit:
  23. set {_msg} to {joinsk.quit}
  24. replace all "{player}" with "%player%" in {_msg}
  25. replace all "{amount}" with "%amount of players%" in {_msg}
  26. set quit message to {_msg}
  27.  
  28. command /joinformat [<text>]:
  29. permission: skript.admin
  30. trigger:
  31. if arg 1 is not set:
  32. send "&c使用法:/joinformat <フォーマット>"
  33. send ""
  34. send "&b参加時のメッセージフォーマットを設定します。"
  35. send "&d{player}&bは&e参加プレイヤーの名前&bに、&d{amount}&bは&eサーバーにいる人数&bに置換されます。"
  36. stop
  37. set {joinsk.join} to coloured arg 1
  38.  
  39. command /firstjoinformat [<text>]:
  40. permission: skript.admin
  41. trigger:
  42. if arg 1 is not set:
  43. send "&c使用法:/firstjoinformat <フォーマット>"
  44. send ""
  45. send "&b初参加時のメッセージフォーマットを設定します。"
  46. send "&d{player}&bは&e初参加プレイヤーの名前&bに、&d{amount}&bは&eサーバーにいる人数&bに置換されます。"
  47. stop
  48. set {joinsk.firstjoin} to coloured arg 1
  49.  
  50. command /quitformat [<text>]:
  51. permission: skript.admin
  52. trigger:
  53. if arg 1 is not set:
  54. send "&c使用法:/quitformat <フォーマット>"
  55. send ""
  56. send "&b退出時のメッセージフォーマットを設定します。"
  57. send "&d{player}&bは&e退出プレイヤーの名前&bに、&d{amount}&bは&eサーバーにいる人数&bに置換されます。"
  58. stop
  59. set {joinsk.quit} to coloured arg 1
Advertisement
Add Comment
Please, Sign In to add comment