kjfalkeiae

Untitled

Mar 29th, 2019
195
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.79 KB | None | 0 0
  1. command /cmdlog [<text>]:
  2. trigger:
  3. if sender does not have permission "cmdlog.settings":
  4. send "&cコマンドログの表示/非表示を切り替えるには、権限「&acmdlog.settings&c」が必要です。"
  5. stop
  6. if arg 1 is not set:
  7. send "&c使用法:/cmdlog <on|off>"
  8. send ""
  9. send "&bコマンドログの表示/非表示を切り替えます。"
  10. if {cmdlog.%player%} is true:
  11. send "&b現在、コマンドログを表示する設定にしています。"
  12. stop
  13. send "&e現在、コマンドログを表示しない設定にしています。"
  14. stop
  15. if arg 1 is "true" or "on" or "yes" or "enable":
  16. set {cmdlog.%player%} to true
  17. send "&bコマンドログを有効化しました。"
  18. stop
  19. if arg 1 is "false" or "off" or "no" or "disable":
  20. send "&eコマンドログを無効化しました。"
  21. stop
  22. send "&c使用法:/cmdlog <on|off>"
  23. send ""
  24. send "&bコマンドログの表示/非表示を切り替えます。"
  25. if {cmdlog.%player%} is true:
  26. send "&b現在、コマンドログを表示する設定にしています。"
  27. stop
  28. send "&e現在、コマンドログを表示しない設定にしています。"
  29.  
  30. on command:
  31. sender is a player
  32. loop all players:
  33. if {cmdlog.%loop-player%} is not set:
  34. if loop-player has permission "cmdlog.settings":
  35. set {cmdlog.%loop-player%} to true
  36. if name of loop-player is not name of sender:
  37. if {cmdlog.%loop-player%} is true:
  38. send "&e%sender%&7>>>&r/%complete command%" to loop-player
Advertisement
Add Comment
Please, Sign In to add comment