= Localization and edge-case updating for stub
This commit is contained in:
+1
-1
@@ -6,8 +6,8 @@ You have %s beans!=
|
||||
Displays how many beans you have=
|
||||
|
||||
[CommandHelp]
|
||||
You can get help with a specific command by typing `!help command`!\nYou can also look at <https://www.rinsnowmew.com/bot/info/#commands>\nGeneral Commands: `boop, roll, choose, help, info, vote, results, showpoll, wolfram, cplus, java, beans, role, bet, yeet`=
|
||||
Lets you look up specific commands, or get a link to a list of all commands.=
|
||||
You can get help with a specific command by typing `!help command`!\nGeneral Commands: `boop, roll, choose, help, info, vote, results, showpoll, wolfram, cplus, java, beans, role, bet, yeet`=
|
||||
|
||||
[CommandRoll]
|
||||
Didn't work ;3;=
|
||||
|
||||
@@ -25,7 +25,7 @@ public class CommandHelp extends Command
|
||||
|
||||
if(help == null)
|
||||
{
|
||||
help = Localizer.Stub("You can get help with a specific command by typing `!help command`!\nYou can also look at <https://www.rinsnowmew.com/bot/info/#commands>\nGeneral Commands: `boop, roll, choose, help, info, vote, results, showpoll, wolfram, cplus, java, beans, role, bet, yeet`");
|
||||
help = Localizer.Stub("You can get help with a specific command by typing `!help command`!\nGeneral Commands: `boop, roll, choose, help, info, vote, results, showpoll, wolfram, cplus, java, beans, role, bet, yeet`");
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -91,7 +91,7 @@ public class Localizer
|
||||
return input;
|
||||
|
||||
String value = stringStore.GetKey(input);
|
||||
if(value.length() < 1)
|
||||
if(value == null || value.length() < 1)
|
||||
return input;
|
||||
|
||||
return value;
|
||||
|
||||
Reference in New Issue
Block a user