Archived
0

Added static wrappers for datamanager and socialspy functions

This commit is contained in:
Pepich
2017-05-11 20:02:37 +02:00
parent dfdabe2307
commit fc485b0fe0
4 changed files with 226 additions and 93 deletions

View File

@@ -29,7 +29,7 @@ import com.redstoner.modules.socialspy.Socialspy;
*
* @author Pepich */
@AutoRegisterListener
@Version(major = 2, minor = 1, revision = 1, compatible = 2)
@Version(major = 2, minor = 1, revision = 2, compatible = 2)
public class Chatgroups implements Module, Listener
{
private static final char defaultKey = ':';
@@ -367,15 +367,14 @@ public class Chatgroups implements Module, Listener
}, '&');
if (ModuleLoader.getModule("Socialspy") != null)
{
Socialspy.getSocialspy().spyBroadcast(sender, "§e" + group + " §a(cg)", message, "/cg",
new BroadcastFilter()
{
@Override
public boolean sendTo(CommandSender recipient)
{
return getGroup(recipient) == null || !getGroup(recipient).equals(group);
}
});
Socialspy.spyBroadcast(sender, "§e" + group + " §a(cg)", message, "/cg", new BroadcastFilter()
{
@Override
public boolean sendTo(CommandSender recipient)
{
return getGroup(recipient) == null || !getGroup(recipient).equals(group);
}
});
}
if (getGroup(Bukkit.getConsoleSender()) == null || !getGroup(Bukkit.getConsoleSender()).equals(group))
{
@@ -404,7 +403,7 @@ public class Chatgroups implements Module, Listener
});
if (ModuleLoader.getModule("Socialspy") != null)
{
Socialspy.getSocialspy().spyBroadcast(Bukkit.getConsoleSender(), "§e" + group + " §a(cg)", message, "/cg",
Socialspy.spyBroadcast(Bukkit.getConsoleSender(), "§e" + group + " §a(cg)", message, "/cg",
new BroadcastFilter()
{
@Override