Merge remote-tracking branch 'origin/develop' into develop

This commit is contained in:
Alex Stewart
2019-04-20 23:32:59 -07:00
6 changed files with 71 additions and 71 deletions
+11 -7
View File
@@ -76,14 +76,18 @@ public class Main extends ListenerAdapter
// RP logging system
RPManager.instance.addLine(channel, user, input);
// Run plugins right before invoking the commands but after all other setup
String output = pluginManager.CallAll(input.message);
//
// Spin up the command if no plugins ran. Otherwise, send a response.
if(output == null)
commandManager.InvokeOnNewThread(guild, channel, user, input, response);
else
response.Call(output);
// Attempt to spin up a command. If the command doesn't exist.
// Run plugins right before invoking the commands but after all other setup.
if(commandManager.InvokeOnNewThread(guild, channel, user, input, response) == false)
{
String pluginOutput = pluginManager.RunAll(input.message);
if(pluginOutput != null)
response.Call(pluginOutput);
}
// Run any upkeep we need to
PerCommandUpkeep();