From 1c32dbd949cd921172973c52178cf12db4a3430d Mon Sep 17 00:00:00 2001 From: NorbiPeti Date: Thu, 3 Aug 2017 23:52:41 +0200 Subject: [PATCH] Fixed the fix --- src/main/java/buttondevteam/chat/ChatProcessing.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/buttondevteam/chat/ChatProcessing.java b/src/main/java/buttondevteam/chat/ChatProcessing.java index ea35b01..f67e427 100644 --- a/src/main/java/buttondevteam/chat/ChatProcessing.java +++ b/src/main/java/buttondevteam/chat/ChatProcessing.java @@ -133,8 +133,8 @@ public class ChatProcessing { Objective obj = PluginMain.SB.getObjective(channel.ID); int score = -1; for (Player p : Bukkit.getOnlinePlayers()) - obj.getScore(p.getName()) - .setScore(p.getUniqueId().equals(player) ? score = e.getMCScore(p) : e.getMCScore(p)); + obj.getScore(p.getName()).setScore( + p.getUniqueId().equals(player.getUniqueId()) ? score = e.getMCScore(p) : e.getMCScore(p)); PluginMain.Instance.getServer().dispatchCommand(PluginMain.Console, String.format( "tellraw @a[score_%s=%d,score_%s_min=%d] %s", channel.ID, score, channel.ID, score, jsonstr)); } else