Skip to content

Commit

Permalink
Some message improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
Exceptionflug committed Jun 30, 2020
1 parent 2627a08 commit ab271fd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ private void registerPacketWaterfall(final TIntObjectMap<Object> protocols, fina
private void registerPacketAegis(final TIntObjectMap<Object> protocols, final int protocolVersion, final int packetId, final Class<?> clazz) throws IllegalAccessException, NoSuchMethodException {
final Object protocolData = protocols.get(protocolVersion);
if(protocolData == null) {
ProxyServer.getInstance().getLogger().warning("[Protocolize] Protocol version "+protocolVersion+" is not supported on this waterfall version. Skipping registration for that specific version.");
ProxyServer.getInstance().getLogger().warning("[Protocolize] Protocol version "+protocolVersion+" is not supported on this aegis version. Skipping registration for that specific version.");
return;
}
((TObjectIntMap<Class<?>>)protocolDataPacketMapField.get(protocolData)).put(clazz, packetId);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ public void onEnable() {
if(ProtocolAPI.getPacketRegistration().isWaterfall()) {
ProxyServer.getInstance().getLogger().info("[Protocolize] Running on Waterfall. Please report bugs regarding protocolize at https://github.com/Exceptionflug/protocolize/issues");
}
if(ProtocolAPI.getPacketRegistration().isAegis()) {
ProxyServer.getInstance().getLogger().info("[Protocolize] Running on Aegis. Please report bugs regarding protocolize at https://github.com/Exceptionflug/protocolize/issues");
}
ProxyServer.getInstance().getPluginManager().registerListener(this, new PlayerListener(this));

try {
Expand Down

0 comments on commit ab271fd

Please sign in to comment.