Removed static accesses as they break updating on runtime
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user