=More SubCommand Routine Mods

This commit is contained in:
Alex
2019-07-03 01:40:10 -04:00
parent 2f2474fde8
commit 47441e06ed
11 changed files with 81 additions and 55 deletions
+2 -2
View File
@@ -31,11 +31,11 @@ public class SubCommandFramework
SubCommandFormattable res = null;
try
{
res = commands.get(input.split(" ")[0].toLowerCase()).OnRun(guild, channel, user, input.substring(input.indexOf(" ")));
res = commands.get(input.split(" ")[0].toLowerCase()).Invoke(guild, channel, user, input.substring(input.indexOf(" ")));
}
catch(Exception e)
{
res = commands.get(input.split(" ")[0].toLowerCase()).OnRun(guild, channel, user, "");
res = commands.get(input.split(" ")[0].toLowerCase()).Invoke(guild, channel, user, "");
}
return res;