Generalized Localizer File

This commit is contained in:
Alex Stewart
2019-04-14 00:25:52 -07:00
parent fbd047849c
commit e0c761dfc0
36 changed files with 268 additions and 213 deletions
+6 -6
View File
@@ -23,7 +23,7 @@ public class CommandMap extends Command
public CommandMap(KittyRole roleLevel, KittyRating contentRating) { super(roleLevel, contentRating); }
@Override
public String HelpText() { return String.format(Localizer.Stub("Generates a map! You can pass additional information if you want with the flags `-s<seed> -w<width> -h<height>`. If one of the fields isn't provided, its default will be used. Note that adjusting the width and height impacts the map outcomes.\n\nDefault seed: Random,\nDefault Width: 35(max %s),\nDefault Height: 25(max %s)"), "" + MaxWidth, "" + MaxHeight); }
public String HelpText() { return String.format(Localizer.Stub("MapInfo"), "" + MaxWidth, "" + MaxHeight); }
@Override
public void OnRun(KittyGuild guild, KittyChannel channel, KittyUser user, UserInput input, Response res)
@@ -60,7 +60,7 @@ public class CommandMap extends Command
}
catch(NumberFormatException e)
{
res.Call(Localizer.Stub("Invalid arguments provided!"));
res.Call(Localizer.Stub("MapInvalid"));
return;
}
@@ -76,10 +76,10 @@ public class CommandMap extends Command
}
// Response header creation
header += Localizer.Stub("Using mapgen v0.1") + "\n";
header += Localizer.Stub("Seed") + ": `" + seed + "`, ";
header += Localizer.Stub("Width") + "`"+ width +"`, ";
header += Localizer.Stub("Height") + ": `"+ height + "`\n";
header += Localizer.Stub("MapVersion") + "\n";
header += Localizer.Stub("MapSeed") + ": `" + seed + "`, ";
header += Localizer.Stub("MapWidth") + "`"+ width +"`, ";
header += Localizer.Stub("MapHeight") + ": `"+ height + "`\n";
// Response body creation
body += "```\n";