SocialSpy Bypass

Discussion in 'Archived: Plugin Requests' started by Vonjol123456789, Mar 28, 2014.

  1. Offline

    Vonjol123456789

    Hello,
    I am wanting a plugin that can make socialspy bypass players.
    I am Owner of a server and my Admins have socialspy and can see my messages and i dont want this to happen.
    So i want a pluign wich can let them see others messages but not mine.
    I would want it with a permisson like: SocialSpy.Ignore Which is given to the players that messages dont want to be show on SocialSpy.
    Im not in a rush for this i just don't like my mods reading my messages.

    Drew
     
  2. Offline

    Trevor1134

    Vonjol123456789 I can do this, but I am unaware of how to do it as an addon. I would have to write the whole socialspy plugin.
     
  3. Offline

    Serilum

    Could you link the social spy plugin?
     
  4. Offline

    Vonjol123456789

  5. Offline

    FerusGrim

    SocialSpy, I would imagine, works by using an event listener. If you set your priority lower than SocialSpy, you can cancel, or edit, SocialSpy's event. No need to rewrite the code.
     
  6. Offline

    themadman300

    Code:
    if (ess.getSettings().getSocialSpyCommands().contains(cmd) || ess.getSettings().getSocialSpyCommands().contains("*"))
    		{
    			for (Player onlinePlayer : ess.getServer().getOnlinePlayers())
    			{
    				final User spyer = ess.getUser(onlinePlayer);
    				if (spyer.isSocialSpyEnabled() && !player.equals(onlinePlayer))
    				{
    					spyer.sendMessage(player.getDisplayName() + " : " + event.getMessage());
    				}
    			}
    		}
    
    https://github.com/essentials/Essen...h2me/essentials/EssentialsPlayerListener.java
     
  7. Offline

    FerusGrim

    themadman300
    Exactly. SocialSpy's listener is set to MONITOR (the highest Level). Simply setting the bypass' listener to HIGHEST or anything lower would be able to bypass it.
     
  8. Offline

    Vonjol123456789

  9. Offline

    FerusGrim

  10. Offline

    Vonjol123456789

Share This Page