File tree Expand file tree Collapse file tree 3 files changed +6
-3
lines changed
v1_19_4/src/main/java/eu/cloudnetservice/modules/bridge/fabric/v1_19_4/mixin/forward
v1_20_5/src/main/java/eu/cloudnetservice/modules/bridge/fabric/v1_20_5/mixin/forward
v1_21_6/src/main/java/eu/cloudnetservice/modules/bridge/fabric/v1_21_6/mixin/forward Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 1818
1919import com .google .gson .Gson ;
2020import com .mojang .authlib .properties .Property ;
21+ import eu .cloudnetservice .modules .bridge .fabric .Constants ;
2122import eu .cloudnetservice .modules .bridge .fabric .UuidUtil ;
2223import eu .cloudnetservice .modules .bridge .fabric .v1_19_4 .forward .ForwardingDataAccumulator ;
2324import java .net .InetSocketAddress ;
@@ -83,7 +84,7 @@ public abstract class ServerHandshakePacketListenerMixin {
8384 if (hostnameParts .length != 3 && hostnameParts .length != 4 ) {
8485 // bungee forwarding info missing
8586 var disconnectReason = Component
86- .literal ("If you wish to use IP forwarding, please enable it in your BungeeCord config as well!" )
87+ .literal (Constants . NO_BUNGEE_FORWARD_INFO_DISCONNECT_REASON )
8788 .withStyle (ChatFormatting .RED );
8889 this .connection .send (new ClientboundLoginDisconnectPacket (disconnectReason ));
8990 this .connection .disconnect (disconnectReason );
Original file line number Diff line number Diff line change 1818
1919import com .google .gson .Gson ;
2020import com .mojang .authlib .properties .Property ;
21+ import eu .cloudnetservice .modules .bridge .fabric .Constants ;
2122import eu .cloudnetservice .modules .bridge .fabric .UuidUtil ;
2223import eu .cloudnetservice .modules .bridge .fabric .v1_20_5 .forward .ForwardingDataAccumulator ;
2324import java .net .InetSocketAddress ;
@@ -83,7 +84,7 @@ public abstract class ServerHandshakePacketListenerMixin {
8384 if (hostnameParts .length != 3 && hostnameParts .length != 4 ) {
8485 // bungee forwarding info missing
8586 var disconnectReason = Component
86- .literal ("If you wish to use IP forwarding, please enable it in your BungeeCord config as well!" )
87+ .literal (Constants . NO_BUNGEE_FORWARD_INFO_DISCONNECT_REASON )
8788 .withStyle (ChatFormatting .RED );
8889 this .connection .send (new ClientboundLoginDisconnectPacket (disconnectReason ));
8990 this .connection .disconnect (disconnectReason );
Original file line number Diff line number Diff line change 1818
1919import com .google .gson .Gson ;
2020import com .mojang .authlib .properties .Property ;
21+ import eu .cloudnetservice .modules .bridge .fabric .Constants ;
2122import eu .cloudnetservice .modules .bridge .fabric .UuidUtil ;
2223import eu .cloudnetservice .modules .bridge .fabric .v1_21_6 .forward .ForwardingDataAccumulator ;
2324import java .net .InetSocketAddress ;
@@ -83,7 +84,7 @@ public abstract class ServerHandshakePacketListenerMixin {
8384 if (hostnameParts .length != 3 && hostnameParts .length != 4 ) {
8485 // bungee forwarding info missing
8586 var disconnectReason = Component
86- .literal ("If you wish to use IP forwarding, please enable it in your BungeeCord config as well!" )
87+ .literal (Constants . NO_BUNGEE_FORWARD_INFO_DISCONNECT_REASON )
8788 .withStyle (ChatFormatting .RED );
8889 this .connection .send (new ClientboundLoginDisconnectPacket (disconnectReason ));
8990 this .connection .disconnect (disconnectReason );
You can’t perform that action at this time.
0 commit comments