Guest User

Untitled

a guest
Feb 20th, 2018
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.29 KB | None | 0 0
  1. # Bukkit - CommandHelper - Clone / Ban Evasion Detection
  2. # Created by CyaNox (Admin of mc.qubetubers.com)
  3. # Provided as is without warranty and under public domain.
  4.  
  5. proc(_msgmods, @text,
  6. foreach(all_players(), @pl,
  7. foreach(array('mods', 'supermods', 'admins'), @r,
  8. if(array_contains(pinfo(@pl, 9), @r),
  9. tmsg(@pl, @text)
  10. )
  11. )
  12. )
  13. )
  14.  
  15. bind(player_join, array(array(priority, HIGHEST)), null, @eb,
  16. assign(@plt, get_value(concat(iplookup, @eb['player'])))
  17. if(equals(@plt, null), assign(@plt, 0))
  18. if(lt(@plt, floor(divide(time(), 10000))),
  19. store_value(concat(iplookup, @eb['player']), floor(divide(time(), 10000)))
  20. , die())
  21. assign(@pip, pinfo(@eb['player'], 3))
  22. assign(@pip, replace(@pip, ., _))
  23. assign(@pip, replace(@pip, -, _))
  24. assign(@ps, get_value(concat(iplookup, @pip)))
  25. if(equals(@ps, null), assign(@ps, array()))
  26. if(not(array_contains(@ps, @eb['player'])),
  27. array_push(@ps, @eb['player'])
  28. store_value(concat(iplookup, @pip), @ps)
  29. )
  30. if(gt(array_size(@ps), 1),
  31. assign(@t, '')
  32. foreach(@ps, @p,
  33. assign(@t, concat(@t, @p, ' '))
  34. )
  35. call_proc(_msgmods, concat(color(LIGHT_PURPLE), '[CLONES]', color(GRAY), ' Player ', color(RED), @eb['player'], color(GRAY), ' also known as ', color(RED), @t))
  36. )
  37. )
Add Comment
Please, Sign In to add comment