Skip to content

Commit

Permalink
Fix remote server ping #102
Browse files Browse the repository at this point in the history
Also fix #99
  • Loading branch information
Leymooo committed Jan 5, 2022
1 parent f3d8822 commit e87abe7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions proxy/src/main/java/net/md_5/bungee/BungeeServerInfo.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
import net.md_5.bungee.netty.HandlerBoss;
import net.md_5.bungee.netty.PipelineUtils;
import net.md_5.bungee.protocol.DefinedPacket;
import net.md_5.bungee.protocol.Varint21FrameDecoder;
import net.md_5.bungee.protocol.packet.PluginMessage;

// CHECKSTYLE:OFF
Expand Down Expand Up @@ -172,6 +173,7 @@ public void operationComplete(ChannelFuture future) throws Exception
{
if ( future.isSuccess() )
{
future.channel().pipeline().get( Varint21FrameDecoder.class ).setFromBackend( true ); //BotFilter
future.channel().pipeline().get( HandlerBoss.class ).setHandler( new PingHandler( BungeeServerInfo.this, callback, protocolVersion ) );
} else
{
Expand Down
4 changes: 2 additions & 2 deletions proxy/src/main/resources/messages.properties
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ mojang_fail=\u00A7c\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u043
no_permission=\u00A7c\u0412\u044B \u043D\u0435 \u043C\u043E\u0436\u0435\u0442\u0435 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u044C \u044D\u0442\u0443 \u043A\u043E\u043C\u0430\u043D\u0434\u0443!
no_server=\u00A7c\u0423\u043A\u0430\u0437\u0430\u043D\u043D\u043E\u0433\u043E \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u043D\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442.
no_server_permission=\u00A7c\u0412\u044B \u043D\u0435 \u043C\u043E\u0436\u0435\u0442\u0435 \u0437\u0430\u0439\u0442\u0438 \u043D\u0430 \u044D\u0442\u043E\u0442 \u0441\u0435\u0440\u0432\u0435\u0440.
outdated_client=\u00A7c\u0421\u0435\u0440\u0432\u0435\u0440 \u0440\u0430\u0431\u043E\u0442\u0430\u0435\u0442 \u043D\u0430 \u0432\u0435\u0440\u0441\u0438\u0438 \u00A7a1.8-1.15.X
outdated_server=\u00A7c\u0421\u0435\u0440\u0432\u0435\u0440 \u0440\u0430\u0431\u043E\u0442\u0430\u0435\u0442 \u043D\u0430 \u0432\u0435\u0440\u0441\u0438\u0438 \u00A7a1.8-1.15.X
outdated_client=\u00A7c\u0421\u0435\u0440\u0432\u0435\u0440 \u0440\u0430\u0431\u043E\u0442\u0430\u0435\u0442 \u043D\u0430 \u0432\u0435\u0440\u0441\u0438\u0438 \u00A7a{0}
outdated_server=\u00A7c\u0421\u0435\u0440\u0432\u0435\u0440 \u0440\u0430\u0431\u043E\u0442\u0430\u0435\u0442 \u043D\u0430 \u0432\u0435\u0440\u0441\u0438\u0438 \u00A7a{0}
proxy_full=\u00A7c\u0421\u0435\u0440\u0432\u0435\u0440 \u0437\u0430\u043F\u043E\u043B\u043D\u0435\u043D!
restart=\u00A7a\u0421\u0435\u0440\u0432\u0435\u0440 \u043F\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u0442\u0441\u044F....
server_list=\u00A76\u0414\u043E\u0441\u0442\u0443\u043F\u043D\u044B\u0435 \u0441\u0435\u0440\u0432\u0435\u0440\u0430:
Expand Down

0 comments on commit e87abe7

Please sign in to comment.