Updated Farmer bot command description and translated untranslated strings.

This commit is contained in:
Milutinke 2022-10-17 13:56:01 +02:00
parent e9f227ca5b
commit 7993d347d8
2 changed files with 5 additions and 3 deletions

View file

@ -59,7 +59,7 @@ namespace MinecraftClient.ChatBots
private bool allowTeleport = false; private bool allowTeleport = false;
private bool debugEnabled = false; private bool debugEnabled = false;
private const string commandDescription = "farmer <start <crop type> [radius:<radius = 30>|unsafe:<true/false>|teleport:<true/false>|debug:<true/false>]|stop>"; private const string commandDescription = "farmer <start <crop type> [radius:<radius = 30>] [unsafe:<true/false>] [teleport:<true/false>] [debug:<true/false>]|stop>";
public override void Initialize() public override void Initialize()
{ {
@ -71,13 +71,13 @@ namespace MinecraftClient.ChatBots
if (!GetTerrainEnabled()) if (!GetTerrainEnabled())
{ {
LogToConsole("Terrain handling needed!"); LogToConsole(Translations.TryGet("bot.farmer.needs_terrain"));
return; return;
} }
if (!GetInventoryEnabled()) if (!GetInventoryEnabled())
{ {
LogToConsole("Inventory handling needed!"); LogToConsole(Translations.TryGet("bot.farmer.needs_inventory"));
return; return;
} }

View file

@ -689,6 +689,8 @@ bot.farmer.warining_allow_teleport=You have enabled teleporting, this might get
bot.farmer.started=Started farming! bot.farmer.started=Started farming!
bot.farmer.crop_type=Crop type bot.farmer.crop_type=Crop type
bot.farmer.radius=Radius bot.farmer.radius=Radius
bot.farmer.needs_terrain=The Farmer bot needs Terrain Handling in order to work, please enable it!
bot.farmer.needs_inventory=The Farmer bot needs Inventory Handling in order to work, please enable it!
# Follow player # Follow player
cmd.follow.desc=Makes the bot follow a specified player cmd.follow.desc=Makes the bot follow a specified player