@@ -21,17 +21,17 @@ public class InfoCommand : ICommand
2121 public bool Execute ( ArraySegment < string > arguments , ICommandSender sender , out string response )
2222 {
2323 Player player ;
24- TranslateConfig TranslateConfig = Plugin . Instance . TranslateConfig ;
24+ CommandTranslateConfig CommandTranslateConfig = Plugin . Instance . CommandTranslateConfig ;
2525
2626 if ( sender is null || ( player = Player . Get ( sender ) ) is null )
2727 {
28- response = TranslateConfig . InfoCommandFailed ;
28+ response = CommandTranslateConfig . InfoCommandFailed ;
2929 return false ;
3030 }
3131
3232 if ( player . DoNotTrack || ! Plugin . Instance . Config . SavePlayersInfo )
3333 {
34- response = TranslateConfig . InfoCommandFailed ;
34+ response = CommandTranslateConfig . InfoCommandFailed ;
3535 return false ;
3636 }
3737
@@ -50,11 +50,11 @@ public bool Execute(ArraySegment<string> arguments, ICommandSender sender, out s
5050
5151 var sb = StringBuilderPool . Pool . Get ( ) ;
5252
53- sb . AppendLine ( TranslateConfig . InfoCommandTitle ) ;
54- sb . AppendLine ( TranslateConfig . InfoCommandPlayedTime . Replace ( "%day%" , day . ToString ( ) ) . Replace ( "%hour%" , hour . ToString ( ) ) . Replace ( "%minutes%" , minutes . ToString ( ) ) ) ;
55- sb . AppendLine ( TranslateConfig . InfoCommandRolePlayed . Replace ( "%rolePlayed%" , rolePlayed . ToString ( ) ) ) ;
56- sb . AppendLine ( TranslateConfig . InfoCommandKillsDamages . Replace ( "%kills%" , kills . ToString ( ) ) . Replace ( "%scpKills%" , scpKills . ToString ( ) ) . Replace ( "%playerDamage%" , playerDamage . ToString ( ) ) . Replace ( "%playerDeath%" , playerDeath . ToString ( ) ) ) ;
57- sb . AppendLine ( TranslateConfig . InfoCommandShot . Replace ( "%shot%" , shot . ToString ( ) ) ) ;
53+ sb . AppendLine ( CommandTranslateConfig . InfoCommandTitle ) ;
54+ sb . AppendLine ( CommandTranslateConfig . InfoCommandPlayedTime . Replace ( "%day%" , day . ToString ( ) ) . Replace ( "%hour%" , hour . ToString ( ) ) . Replace ( "%minutes%" , minutes . ToString ( ) ) ) ;
55+ sb . AppendLine ( CommandTranslateConfig . InfoCommandRolePlayed . Replace ( "%rolePlayed%" , rolePlayed . ToString ( ) ) ) ;
56+ sb . AppendLine ( CommandTranslateConfig . InfoCommandKillsDamages . Replace ( "%kills%" , kills . ToString ( ) ) . Replace ( "%scpKills%" , scpKills . ToString ( ) ) . Replace ( "%playerDamage%" , playerDamage . ToString ( ) ) . Replace ( "%playerDeath%" , playerDeath . ToString ( ) ) ) ;
57+ sb . AppendLine ( CommandTranslateConfig . InfoCommandShot . Replace ( "%shot%" , shot . ToString ( ) ) ) ;
5858
5959 response = sb . ToString ( ) ;
6060 StringBuilderPool . Pool . Return ( sb ) ;
0 commit comments