Fixed the fix

This commit is contained in:
Norbi Peti 2017-08-03 23:52:41 +02:00
parent 107a60eb2e
commit 1c32dbd949

View file

@ -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