Advertisement
Guest User

Untitled

a guest
Mar 17th, 2017
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. OLD ONE
  2. if message contains {@MessagesToTestFor}:
  3. if {@WarnThePlayer} is true:
  4. send "{@Prefix} {@PlayerWarnMessage}"
  5. if player has permission "{@BypassPermission}":
  6. stop
  7. else:
  8. add 1 to {antiask.warns.%player%}
  9. loop all players:
  10. if loop-player has permission "{@AdminNotifyPermission}":
  11. if {@NotifyStaff} is true:
  12. send "{@Prefix} {@AdminNotify}" to loop-player
  13.  
  14. NEW ONE
  15. on chat:
  16. if message contains {@MessagesToTestFor}:
  17. if player doesn't have permission "{@BypassPermission}":
  18. if {@WarnThePlayer} is true:
  19. send "{@Prefix} {@PlayerWarnMessage}"
  20. else:
  21. add 1 to {antiask.warns.%player%}
  22. loop all players:
  23. if loop-player has permission "{@AdminNotifyPermission}":
  24. if {@NotifyStaff} is true:
  25. send "{@Prefix} {@AdminNotify}" to loop-player
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement