mirror of
https://github.com/NEZNAMY/TAB.git
synced 2026-11-26 10:29:49 -05:00
removed debug messages as issue was resolved
This commit is contained in:
1 parent
d0bbc80ad7
commit
66b01b1f9c
1 file changed
+2
-6
@@ -45,18 +45,14 @@ public class TabPlayer extends ITabPlayer{
|
||||
private int getProtocolVersionPS(){
|
||||
try {
|
||||
Object protocolVersion = Class.forName("protocolsupport.api.ProtocolSupportAPI").getMethod("getProtocolVersion", Player.class).invoke(null, getBukkitEntity());
|
||||
int ver = (int) protocolVersion.getClass().getMethod("getId").invoke(protocolVersion);
|
||||
Shared.debug("ProtocolSupport returned protocol version " + ver + " for player " + getName());
|
||||
return ver;
|
||||
return (int) protocolVersion.getClass().getMethod("getId").invoke(protocolVersion);
|
||||
} catch (Throwable e) {
|
||||
return Shared.errorManager.printError(ProtocolVersion.SERVER_VERSION.getNetworkId(), "Failed to get protocol version of " + getName() + " using ProtocolSupport", e);
|
||||
}
|
||||
}
|
||||
private int getProtocolVersionVia(){
|
||||
try {
|
||||
int ver = Via.getAPI().getPlayerVersion(uniqueId);
|
||||
Shared.debug("ViaVersion returned protocol version " + ver + " for player " + getName());
|
||||
return ver;
|
||||
return Via.getAPI().getPlayerVersion(uniqueId);
|
||||
} catch (Throwable e) {
|
||||
return Shared.errorManager.printError(ProtocolVersion.SERVER_VERSION.getNetworkId(), "Failed to get protocol version of " + getName() + " using ViaVersion", e);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user