Archived
0

Removed static accesses as they break updating on runtime

This commit is contained in:
Pepich
2017-05-11 19:01:13 +02:00
parent 83ab05780b
commit dfdabe2307
3 changed files with 27 additions and 20 deletions

View File

@@ -367,14 +367,15 @@ public class Chatgroups implements Module, Listener
}, '&');
if (ModuleLoader.getModule("Socialspy") != null)
{
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);
}
});
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);
}
});
}
if (getGroup(Bukkit.getConsoleSender()) == null || !getGroup(Bukkit.getConsoleSender()).equals(group))
{
@@ -403,7 +404,7 @@ public class Chatgroups implements Module, Listener
});
if (ModuleLoader.getModule("Socialspy") != null)
{
Socialspy.spyBroadcast(Bukkit.getConsoleSender(), "§e" + group + " §a(cg)", message, "/cg",
Socialspy.getSocialspy().spyBroadcast(Bukkit.getConsoleSender(), "§e" + group + " §a(cg)", message, "/cg",
new BroadcastFilter()
{
@Override