sillerud / BungeeCord

BungeeCord, the 6th in a generation of server portal suites. Efficiently proxies and maintains connections and transport between multiple Minecraft servers.
http://www.spigotmc.org/threads/bungeecord.392/
Other
24 stars 25 forks source link

Scoreboard score is not removed on 1.7 #10

Closed ItsHarry closed 10 years ago

ItsHarry commented 10 years ago

Hey there

I have found a problem that is specific to 1.7 clients:

objective.getScore(Bukkit.getOfflinePlayer(ChatColor.GREEN + "Round " + roundNumber)).setScore(-1);
scoreboard.resetScores(Bukkit.getOfflinePlayer(ChatColor.GREEN + "Round " + roundNumber));

In this case, the score is not removed from the Scoreboard.

Any ideas?

sillerud commented 10 years ago

This is a bit tricky, 1.6 uses a byte, where the value 0 is update or create, and 1 is remove, while 1.7 uses 0 for creating, 1 for removing and 2 for updating, and i don't really know what updating without creating it would do, so I would either have to add more code then just a packet rewrite, or modify the server itself. Can you come to the IRC channel when you see this?