= Updated Localizer to LocStrings

This commit is contained in:
Matthew Cech
2019-04-14 00:43:13 -07:00
parent 57aa8e204c
commit e65cfb498b
37 changed files with 138 additions and 138 deletions
+5 -5
View File
@@ -1,7 +1,7 @@
package commands;
import core.Command;
import core.Localizer;
import core.LocStrings;
import dataStructures.*;
public class CommandGiveBeans extends Command
@@ -9,7 +9,7 @@ public class CommandGiveBeans extends Command
public CommandGiveBeans (KittyRole level, KittyRating rating) { super(level, rating); }
@Override
public String HelpText() { return Localizer.Stub("GiveBeansInfo"); }
public String HelpText() { return LocStrings.Stub("GiveBeansInfo"); }
@Override
public void OnRun(KittyGuild guild, KittyChannel channel, KittyUser user, UserInput input, Response res)
@@ -20,20 +20,20 @@ public class CommandGiveBeans extends Command
}
catch (NumberFormatException e)
{
res.Call(Localizer.Stub("GiveBeansInvalid"));
res.Call(LocStrings.Stub("GiveBeansInvalid"));
return;
}
if(input.mentions == null)
{
res.Call(Localizer.Stub("GiveBeansNoneMentioned"));
res.Call(LocStrings.Stub("GiveBeansNoneMentioned"));
return;
}
for(int i = 0; i < input.mentions.length; i++)
{
input.mentions[i].ChangeBeans(beans);
res.Call(String.format(Localizer.Stub("GiveBeansSuccess"), input.mentions[i].name, "" + beans));
res.Call(String.format(LocStrings.Stub("GiveBeansSuccess"), input.mentions[i].name, "" + beans));
}
}
}