Add more message arguments. See #1214.

This commit is contained in:
Minecrell
2014-09-09 22:08:36 +02:00
committed by md_5
parent 4e3b5670a0
commit 6fcfb5aecb
4 changed files with 12 additions and 12 deletions

View File

@@ -238,7 +238,7 @@ public class ServerConnector extends PacketHandler
throw CancelSendSignal.INSTANCE;
}
String message = bungee.getTranslation( "connect_kick", target.getName() ) + event.getKickReason();
String message = bungee.getTranslation( "connect_kick", target.getName(), event.getKickReason() );
if ( user.isDimensionChange() )
{
user.disconnect( message );

View File

@@ -261,10 +261,10 @@ public final class UserConnection implements ProxiedPlayer
{
if ( dimensionChange )
{
disconnect( bungee.getTranslation( "fallback_kick" ) + future.cause().getClass().getName() );
disconnect( bungee.getTranslation( "fallback_kick", future.cause().getClass().getName() ) );
} else
{
sendMessage( bungee.getTranslation( "fallback_kick" ) + future.cause().getClass().getName() );
sendMessage( bungee.getTranslation( "fallback_kick", future.cause().getClass().getName() ) );
}
}
}