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
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.
Hello, Yes it is the essentials plugin. http://dev.bukkit.org/bukkit-plugins/essentials/ @Trevor1134 @Serilum
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.
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
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.