No filteranderrormsg

This commit is contained in:
Norbi Peti 2018-12-18 00:52:56 +01:00
parent dedfbacda6
commit fd72e2de91
No known key found for this signature in database
GPG key ID: DBA4C4549A927E56
2 changed files with 2 additions and 2 deletions

View file

@ -145,7 +145,7 @@ public class ChatProcessing {
DebugCommand.SendDebugMessage(jsonstr);
try {
if (channel.filteranderrormsg != null) {
if (!channel.isGlobal()) {
Objective obj = PluginMain.SB.getObjective(channel.ID);
int score = -1;
for (Player p : Bukkit.getOnlinePlayers()) {

View file

@ -272,7 +272,7 @@ public class PlayerListener implements Listener {
@EventHandler
public void onChannelRegistered(ChatChannelRegisterEvent e) {
if (e.getChannel().filteranderrormsg != null && PluginMain.SB.getObjective(e.getChannel().ID) == null) // Not global chat and doesn't exist yet
if (!e.getChannel().isGlobal() && PluginMain.SB.getObjective(e.getChannel().ID) == null) // Not global chat and doesn't exist yet
PluginMain.SB.registerNewObjective(e.getChannel().ID, "dummy");
}