Advertisement
arri2323567_dark

Chat System

Mar 13th, 2018
169
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.53 KB | None | 0 0
  1. options:
  2. normalprefix:&6[&aChatSystem&6]
  3. adminprefix:&6[&aChatSystem&cAdmin&6]
  4.  
  5. command /chatsay [<text>]:
  6. aliases: /chs
  7. permission: admin.chs
  8. permission message:Unknown command. Type "/help" for help.
  9. trigger:
  10. if arg 1 is "on" or "ok":
  11. if {chat.server} is "on":
  12. send "{@adminprefix} &cすでにサーバーではチャットを送信できる状態です"
  13. stop
  14. if {chat.server} is not "on":
  15. set {chat.server} to "on"
  16. send "{@adminprefix} &aサーバー全体でのチャット送信を許可しました"
  17. stop
  18. if arg 1 is "off" or "no":
  19. if {chat.server} is "off":
  20. send "{@adminprefix} &cすでにサーバーではチャットを送信できない状態です"
  21. stop
  22. if {chat.server} is not "off":
  23. set {chat.server} to "off"
  24. send "{@adminprefix} &aサーバー全体でのチャット送信を利用できないようにしました"
  25. stop
  26. else:
  27. send "{@adminprefix} &cサーバー全体でのチャット送信許可を"
  28. send "&c/chatsay (on|off) で指定してください"
  29.  
  30. command /chatmute [<offline player>] [<text>]:
  31. aliases: /chm
  32. permission: admin.chm
  33. permission message:Unknown command. Type "/help" for help.
  34. trigger:
  35. if arg 1 is set:
  36. if arg 2 is "on" or "ok":
  37. if {chatp.%arg 1%} is true:
  38. send "{@adminprefix} &cすでに%arg 1%はチャットを送信できる状態です"
  39. stop
  40. if {chatp.%arg 1%} is not true:
  41. set {chatp.%arg 1%} to true
  42. send "{@adminprefix} &a%arg 1%のチャット送信をできる状態にしました"
  43. stop
  44. if arg 2 is "off" or "no":
  45. if {chatp.%arg 1%} is false:
  46. send "{@adminprefix} &cすでに%arg 1%はチャットを送信できない状態です"
  47. stop
  48. if {chatp.%arg 1%} is not false:
  49. set {chatp.%arg 1%} to false
  50. send "{@adminprefix} &a%arg 1%のチャット送信をできない状態にしました"
  51. stop
  52. else:
  53. send "{@adminprefix} &6プレイヤー名を指定してください"
  54.  
  55. else if:
  56. send "{@adminprefix} &6OnかOffでプレイヤーをミュートするかしないか決めてください"
  57.  
  58.  
  59. every second:
  60. loop all players:
  61. if {chatp.%loop-player%} is not set:
  62. set {chatp.%loop-player%} to "on"
  63.  
  64. On Chat:
  65. if {chatp.%player%} is false:
  66. cancel event
  67. message "{@normalprefix} &cあなたはミュートにされています"
  68. if player is not op:
  69. if {chat.server} is "off":
  70. cancel event
  71. message "{@normalprefix} &cこの鯖ではチャットの送信が許可されていません"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement