+Moved guildrole commands to subcommand routine
This commit is contained in:
@@ -20,13 +20,14 @@ public class SubCommandFramework
|
||||
{
|
||||
name = name.toLowerCase();
|
||||
if(commands.put(name, command) != null)
|
||||
GlobalLog.Error("Multiple registration of a name with name '" + name + "'!");
|
||||
GlobalLog.error("Multiple registration of a name with name '" + name + "'!");
|
||||
|
||||
GlobalLog.Log("Registered " + name);
|
||||
GlobalLog.log("Registered SubCommand " + name);
|
||||
}
|
||||
|
||||
public SubCommandFormattable run(KittyGuild guild, KittyChannel channel, KittyUser user, String input)
|
||||
{
|
||||
System.out.print(input);
|
||||
SubCommandFormattable res = commands.get(input.split(" ")[0].toLowerCase()).OnRun(guild, channel, user, input.substring(input.indexOf(" ")));
|
||||
return res;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user