@@ -173,7 +173,8 @@ private void HandleSpawnCommand(CCSPlayerController? player, string commandArg,
173
173
}
174
174
else
175
175
{
176
- ReplyToUserCommand ( player , $ "Usage: !{ command } <number>") ;
176
+ // ReplyToUserCommand(player, $"Usage: !{command} <number>");
177
+ ReplyToUserCommand ( player , Localizer [ "matchzy.cc.usage" , $ "!{ command } <number>"] ) ;
177
178
}
178
179
}
179
180
@@ -289,7 +290,8 @@ private void HandleSaveNadeCommand(CCSPlayerController? player, string saveNadeN
289
290
}
290
291
else
291
292
{
292
- ReplyToUserCommand ( player , $ "Usage: .savenade <name>") ;
293
+ // ReplyToUserCommand(player, $"Usage: .savenade <name>");
294
+ ReplyToUserCommand ( player , Localizer [ "matchzy.cc.usage" , $ ".savenade <name>"] ) ;
293
295
}
294
296
}
295
297
@@ -353,7 +355,8 @@ private void HandleDeleteNadeCommand(CCSPlayerController? player, string saveNad
353
355
}
354
356
else
355
357
{
356
- ReplyToUserCommand ( player , $ "Usage: .delnade <name>") ;
358
+ // ReplyToUserCommand(player, $"Usage: .delnade <name>");
359
+ ReplyToUserCommand ( player , Localizer [ "matchzy.cc.usage" , $ ".delnade <name>"] ) ;
357
360
}
358
361
}
359
362
@@ -437,7 +440,8 @@ private void HandleImportNadeCommand(CCSPlayerController? player, string saveNad
437
440
}
438
441
else
439
442
{
440
- ReplyToUserCommand ( player , $ "Usage: .importnade <code>") ;
443
+ // ReplyToUserCommand(player, $"Usage: .importnade <code>");
444
+ ReplyToUserCommand ( player , Localizer [ "matchzy.cc.usage" , $ ".importnade <code>"] ) ;
441
445
}
442
446
}
443
447
@@ -610,7 +614,8 @@ private void HandleLoadNadeCommand(CCSPlayerController? player, string loadNadeN
610
614
}
611
615
else
612
616
{
613
- ReplyToUserCommand ( player , $ "Nade not found! Usage: .loadnade <name>") ;
617
+ // ReplyToUserCommand(player, $"Nade not found! Usage: .loadnade <name>");
618
+ ReplyToUserCommand ( player , Localizer [ "matchzy.pm.loadnadenotfound" ] ) ;
614
619
}
615
620
}
616
621
@@ -705,7 +710,8 @@ public void OnSpawnCommand(CCSPlayerController? player, CommandInfo command)
705
710
}
706
711
else
707
712
{
708
- ReplyToUserCommand ( player , $ "Usage: !spawn <round>") ;
713
+ // ReplyToUserCommand(player, $"Usage: !spawn <round>");
714
+ ReplyToUserCommand ( player , Localizer [ "matchzy.cc.usage" , $ "!spawn <round>"] ) ;
709
715
}
710
716
}
711
717
@@ -724,7 +730,8 @@ public void OnCtSpawnCommand(CCSPlayerController? player, CommandInfo command)
724
730
}
725
731
else
726
732
{
727
- ReplyToUserCommand ( player , $ "Usage: !ctspawn <round>") ;
733
+ // ReplyToUserCommand(player, $"Usage: !ctspawn <round>");
734
+ ReplyToUserCommand ( player , Localizer [ "matchzy.cc.usage" , $ "!ctspawn <round>"] ) ;
728
735
}
729
736
}
730
737
@@ -743,7 +750,8 @@ public void OnTSpawnCommand(CCSPlayerController? player, CommandInfo command)
743
750
}
744
751
else
745
752
{
746
- ReplyToUserCommand ( player , $ "Usage: !ctspawn <round>") ;
753
+ // ReplyToUserCommand(player, $"Usage: !ctspawn <round>");
754
+ ReplyToUserCommand ( player , Localizer [ "matchzy.cc.usage" , $ "!ctspawn <round>"] ) ;
747
755
}
748
756
}
749
757
@@ -1226,7 +1234,8 @@ public void HandleBackCommand(CCSPlayerController player, string number)
1226
1234
else
1227
1235
{
1228
1236
int thrownCount = lastGrenadesData . ContainsKey ( userId ) ? lastGrenadesData [ userId ] . Count : 0 ;
1229
- ReplyToUserCommand ( player , $ "Usage: !back <number> (You've thrown { thrownCount } grenades till now)") ;
1237
+ // ReplyToUserCommand(player, $"Usage: !back <number> (You've thrown {thrownCount} grenades till now)");
1238
+ ReplyToUserCommand ( player , Localizer [ "matchzy.pm.backtonumber" , thrownCount ] ) ;
1230
1239
}
1231
1240
}
1232
1241
@@ -1238,7 +1247,8 @@ public void HandleThrowIndexCommand(CCSPlayerController player, string argString
1238
1247
if ( string . IsNullOrEmpty ( argString ) )
1239
1248
{
1240
1249
int thrownCount = lastGrenadesData . ContainsKey ( userId ) ? lastGrenadesData [ userId ] . Count : 0 ;
1241
- ReplyToUserCommand ( player , $ "Usage: !throwindex <number> (You've thrown { thrownCount } grenades till now)") ;
1250
+ // ReplyToUserCommand(player, $"Usage: !throwindex <number> (You've thrown {thrownCount} grenades till now)");
1251
+ ReplyToUserCommand ( player , Localizer [ "matchzy.pm.throwindextonumber" , thrownCount ] ) ;
1242
1252
return ;
1243
1253
}
1244
1254
@@ -1273,7 +1283,8 @@ public void HandleDelayCommand(CCSPlayerController player, string delay)
1273
1283
int userId = player . UserId . Value ;
1274
1284
if ( string . IsNullOrWhiteSpace ( delay ) )
1275
1285
{
1276
- ReplyToUserCommand ( player , $ "Usage: !delay <delay_in_seconds>") ;
1286
+ // ReplyToUserCommand(player, $"Usage: !delay <delay_in_seconds>");
1287
+ ReplyToUserCommand ( player , Localizer [ "matchzy.cc.usage" , $ "!delay <delay_in_seconds>"] ) ;
1277
1288
return ;
1278
1289
}
1279
1290
@@ -1387,7 +1398,8 @@ public void OnBackCommand(CCSPlayerController? player, CommandInfo command)
1387
1398
{
1388
1399
int userId = player ! . UserId ! . Value ;
1389
1400
int thrownCount = lastGrenadesData . ContainsKey ( userId ) ? lastGrenadesData [ userId ] . Count : 0 ;
1390
- ReplyToUserCommand ( player , $ "Usage: !back <number> (You've thrown { thrownCount } grenades till now)") ;
1401
+ // ReplyToUserCommand(player, $"Usage: !back <number> (You've thrown {thrownCount} grenades till now)");
1402
+ ReplyToUserCommand ( player , Localizer [ "matchzy.pm.backtonumber" , thrownCount ] ) ;
1391
1403
}
1392
1404
}
1393
1405
@@ -1404,7 +1416,8 @@ public void OnThrowIndexCommand(CCSPlayerController? player, CommandInfo command
1404
1416
{
1405
1417
int userId = player ! . UserId ! . Value ;
1406
1418
int thrownCount = lastGrenadesData . ContainsKey ( userId ) ? lastGrenadesData [ userId ] . Count : 0 ;
1407
- ReplyToUserCommand ( player , $ "Usage: !throwindex <number> (You've thrown { thrownCount } grenades till now)") ;
1419
+ // ReplyToUserCommand(player, $"Usage: !throwindex <number> (You've thrown {thrownCount} grenades till now)");
1420
+ ReplyToUserCommand ( player , Localizer [ "matchzy.pm.throwindextonumber" , thrownCount ] ) ;
1408
1421
}
1409
1422
}
1410
1423
@@ -1429,7 +1442,8 @@ public void OnDelayCommand(CCSPlayerController? player, CommandInfo command)
1429
1442
}
1430
1443
else
1431
1444
{
1432
- ReplyToUserCommand ( player , $ "Usage: !delay <delay_in_seconds>") ;
1445
+ // ReplyToUserCommand(player, $"Usage: !delay <delay_in_seconds>");
1446
+ ReplyToUserCommand ( player , Localizer [ "matchzy.cc.usage" , $ "!delay <delay_in_seconds>"] ) ;
1433
1447
}
1434
1448
}
1435
1449
0 commit comments