88import dev .simplix .protocolize .bungee .listener .PlayerListener ;
99import dev .simplix .protocolize .bungee .netty .NettyPipelineInjector ;
1010import dev .simplix .protocolize .bungee .providers .*;
11+ import dev .simplix .protocolize .bungee .strategies .AegisPacketRegistrationStrategy ;
1112import dev .simplix .protocolize .bungee .strategies .BungeeCordPacketRegistrationStrategy ;
1213import dev .simplix .protocolize .bungee .strategies .LegacyBungeeCordPacketRegistrationStrategy ;
1314import dev .simplix .protocolize .bungee .strategy .PacketRegistrationStrategy ;
@@ -58,7 +59,7 @@ public void onLoad() {
5859 List <PacketRegistrationStrategy > strategies = new ArrayList <>();
5960 strategies .add (new BungeeCordPacketRegistrationStrategy ());
6061 strategies .add (new LegacyBungeeCordPacketRegistrationStrategy ());
61- strategies .add (new dev . simplix . protocolize . bungee . strategies . AegisPacketRegistrationStrategy ());
62+ strategies .add (new AegisPacketRegistrationStrategy ());
6263 try {
6364 registrationProvider = new BungeeCordProtocolRegistrationProvider (strategies );
6465 supported = true ;
@@ -77,8 +78,12 @@ public void onEnable() {
7778 ProxyServer .getInstance ().getLogger ().info ("======= PROTOCOLIZE =======" );
7879 ProxyServer .getInstance ().getLogger ()
7980 .info ("Version " + getDescription ().getVersion () + " by " + getDescription ().getAuthor ());
80- ProxyServer .getInstance ().getLogger ().info ("Supported: "
81+ ProxyServer .getInstance ().getLogger ().info ("Supported Platform : "
8182 + (supported ? "Yes (" + registrationProvider .strategy ().getClass ().getSimpleName () + ")" : "No" ));
83+ if (!supported ) {
84+ ProxyServer .getInstance ().getLogger ().warning ("Your BungeeCord version or fork is not supported by" +
85+ " Protocolize. Protocolize will not work. Please use a supported version or fork." );
86+ }
8287 if (getDescription ().getVersion ().endsWith (":unknown" )) {
8388 ProxyServer .getInstance ().getLogger ().warning (
8489 "WARNING: YOU ARE RUNNING AN UNOFFICIAL BUILD OF PROTOCOLIZE. DON'T REPORT ANY BUGS REGARDING THIS VERSION." );
0 commit comments