+ Added localization to 4 files. Revised format to use files as sections.

This commit is contained in:
Matthew Cech
2019-03-30 16:03:03 -07:00
parent 8a64a70528
commit d40fbb776c
7 changed files with 85 additions and 32 deletions
+3 -3
View File
@@ -1,6 +1,7 @@
package commands;
import core.Command;
import core.Localizer;
import dataStructures.*;
public class CommandBeansShow extends Command
@@ -8,12 +9,11 @@ public class CommandBeansShow extends Command
public CommandBeansShow(KittyRole level, KittyRating rating) { super(level, rating); }
@Override
public String HelpText() { return "Displays how many beans you have"; };
public String HelpText() { return Localizer.Stub("Displays how many beans you have"); };
@Override
public void OnRun(KittyGuild guild, KittyChannel channel, KittyUser user, UserInput input, Response res)
{
String beans = "You have " + user.GetBeans() + " beans!";
res.Call(beans);
res.Call(String.format(Localizer.Stub("You have %s beans!"), user.GetBeans()));
}
}