37 lines
949 B
Java
37 lines
949 B
Java
package commands;
|
|
|
|
import core.*;
|
|
import dataStructures.KittyChannel;
|
|
import dataStructures.KittyGuild;
|
|
import dataStructures.KittyRating;
|
|
import dataStructures.KittyRole;
|
|
import dataStructures.KittyUser;
|
|
import dataStructures.Response;
|
|
import dataStructures.UserInput;
|
|
|
|
// Either allows for specifically looking up commands or gets a list of general commands to try out!
|
|
public class CommandHelp extends Command
|
|
{
|
|
public CommandHelp(KittyRole level, KittyRating rating) { super(level, rating); }
|
|
|
|
@Override
|
|
public String HelpText() { return LocStrings.Stub("HelpInfo"); }
|
|
|
|
@Override
|
|
public void OnRun(KittyGuild guild, KittyChannel channel, KittyUser user, UserInput input, Response res)
|
|
{
|
|
String help = Stats.instance.GetHelpText(input.args);
|
|
|
|
if(help == null)
|
|
{
|
|
help = LocStrings.Stub("HelpDisplay");
|
|
}
|
|
else
|
|
{
|
|
help = "`" + input.args + "`: " + help;
|
|
}
|
|
|
|
res.Call(help);
|
|
}
|
|
|
|
} |