Advertisement
nunonuno_riku

Untitled

May 28th, 2018
27
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.63 KB | None | 0 0
  1. on load:
  2. if file "plugins/Logs/Console.yml" doesn't exist:
  3. create file "plugins/Logs/Console.yml"
  4. wf "##Console Commands" to "plugins/Logs/Console.yml"
  5.  
  6.  
  7. on join:
  8. if file "plugins/Logs/%player%/%uuid of player%.yml" doesn't exist:
  9. create file "plugins/Logs/%player%/%uuid of player%.yml"
  10. wf "##%player% messages and commands" to "plugins/Logs/%player%/%uuid of player%.yml"
  11. on chat:
  12. set {chat.%player%} to now
  13. wf "[%{chat.%player%}%] Message: %player% > %message%" to "plugins/Logs/%player%/%uuid of player%.yml"
  14.  
  15. on command:
  16. set {command.%player%} to now
  17. wf "[%{command.%player%}%] Command: %player% > /%full command%" to "plugins/Logs/%player%/%uuid of player%.yml"
  18. if executor is console:
  19. wf "Command: CONSOLE > /%full command%" to "plugins/Logs/Console.yml"
  20.  
  21. on chat:
  22. if message contains "fuck" or "cuck" or "ass" or "bitch" or "cunt":
  23. send "&cSwearing is not allowed"
  24. send "&cyour message has been logged"
  25. wf "Swear: %player% > %message%" to "plugins/logs/Swears.yml"
  26. cancel event
  27.  
  28. on block place:
  29. set {place.%player%} to now
  30. wf "[%{place.%player%}%] Placed Block: %player% %event-item% %event-location%" to "plugins/Logs/%player%/%uuid of player%.yml"
  31.  
  32. on block break:
  33. set {break.%player%} to now
  34. wf "[%{break.%player%}%] Broken Block: %player% %event-item% %event-location%" to "plugins/Logs/%player%/%uuid of player%.yml"
  35.  
  36. on death:
  37. set {death.%player%} to now
  38. if attacker is player:
  39. wf "[%{death.%player%}%] Death: %attacker% killed %victim%" to "plugins/Logs/Deaths.yml"
  40. else if victim is player:
  41. wf "[%{death.%player%}%] Death: %victim% died" to "plugins/Logs/Deaths.yml"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement