sora200507

Untitled

Dec 15th, 2018
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  1. on join:
  2. if {ip::%player's ip%::%player%} is not set:
  3. add player to {ip::%player's ip%::%player%}
  4. loop all players:
  5. loop-player is op
  6. make loop-player execute "/ipcheck %player%"
  7. stop
  8. else:
  9. {ip::%player's ip%::%player%} is set:
  10. remove player from {ip::%player's ip%::%player%}
  11. add player to {ip::%player's ip%::%player%}
  12. loop all players:
  13. loop-player is op
  14. make loop-player execute "/ipcheck %player%"
  15. command /ipcheck <player>:
  16. permission : soramame.op
  17. trigger:
  18. loop {ip::%player-arg's ip%::*}:
  19. if loop-value is banned:
  20. add loop-value to {_banned}
  21. else:
  22. loop-value is offline:
  23. add loop-value to {_offline}
  24. else:
  25. add loop-value to {_online}
  26. message "&bAddres %arg-1's ip%'s account"
  27. message "&aOnline %{_online}%"
  28. message "&7Offline %{_offline}%"
  29. message "&cBanned %{_banned}%"
  30. clear {_online}
  31. clear {_offline}
  32. clear {_banned}
Add Comment
Please, Sign In to add comment