diff --git a/src/main/java/us/myles/ViaVersion/protocols/base/BaseProtocol.java b/src/main/java/us/myles/ViaVersion/protocols/base/BaseProtocol.java index 5c39b7900..b525f50e3 100644 --- a/src/main/java/us/myles/ViaVersion/protocols/base/BaseProtocol.java +++ b/src/main/java/us/myles/ViaVersion/protocols/base/BaseProtocol.java @@ -41,8 +41,6 @@ public class BaseProtocol extends Protocol { JSONObject json = (JSONObject) new JSONParser().parse(originalStatus); JSONObject version = (JSONObject) json.get("version"); - System.out.println("Calculating " + info.getProtocolVersion()); - // TODO: Make it so the detection doesn't base off just ping :) if (ProtocolRegistry.SERVER_PROTOCOL == -1) { Long original = (Long) version.get("protocol"); ProtocolRegistry.SERVER_PROTOCOL = original.intValue(); @@ -151,6 +149,7 @@ public class BaseProtocol extends Protocol { @Override protected void registerListeners() { final ViaVersionPlugin plugin = (ViaVersionPlugin) Bukkit.getPluginManager().getPlugin("ViaVersion"); + Bukkit.getPluginManager().registerEvents(new Listener() { @EventHandler public void onPlayerQuit(PlayerQuitEvent e) { diff --git a/src/main/java/us/myles/ViaVersion/protocols/protocol1_9to1_8/metadata/MetaIndex.java b/src/main/java/us/myles/ViaVersion/protocols/protocol1_9to1_8/metadata/MetaIndex.java index 298d48cd1..f418893ed 100644 --- a/src/main/java/us/myles/ViaVersion/protocols/protocol1_9to1_8/metadata/MetaIndex.java +++ b/src/main/java/us/myles/ViaVersion/protocols/protocol1_9to1_8/metadata/MetaIndex.java @@ -59,7 +59,7 @@ public enum MetaIndex { // sheep SHEEP_COLOR(Sheep.class, 16, Type.Byte, 12, NewType.Byte), // villager - VILLAGER_PROFESSION(Villager.class, 16, Type.Int, 12, NewType.VarInt), // TODO write this to wiki.vg + VILLAGER_PROFESSION(Villager.class, 16, Type.Int, 12, NewType.VarInt), // enderman ENDERMAN_BLOCK(Enderman.class, 16, Type.Short, 11, NewType.BlockID), // special case ENDERMAN_BLOCKDATA(Enderman.class, 17, Type.Byte, 11, NewType.BlockID), // special case