Initial Commit

Initial commit of project.
This commit is contained in:
Alex Stewart
2019-03-09 01:21:44 -08:00
parent e54e9653ed
commit 13420951b1
124 changed files with 5883 additions and 0 deletions
+26
View File
@@ -0,0 +1,26 @@
package commands;
import core.Command;
import dataStructures.*;
public class CommandChangeIndicator extends Command
{
public CommandChangeIndicator(KittyRole level, KittyRating rating) { super(level, rating); }
@Override
public String HelpText() { return "Changes the command indicator to any single character. By default, it's '!'. If more than one character is provided, the first one is used!"; }
@Override
public void OnRun(KittyGuild guild, KittyChannel channel, KittyUser user, UserInput input, Response res)
{
String arg = input.args.trim();
if(arg.length() == 0)
{
res.Call("Please specify a letter or symbol to use!");
return;
}
guild.SetCommandIndicator(arg.substring(0, 1));
res.Call("Indicator changed to `" + guild.GetCommandIndicator() +"`!");
}
}