Also return the number of affected entities

Closes #293. Doesn't really solve anything there aside from exposing the
number, but sadly there's not really anything obvious I can do on my end
- the command API just doesn't expose anything else.
This commit is contained in:
SquidDev 2019-09-15 18:37:00 +01:00
parent 8e4d311cd9
commit 79cd8b4da5
1 changed files with 1 additions and 1 deletions

View File

@ -83,7 +83,7 @@ private Object[] doCommand( String command )
{
sender.clearOutput();
int result = commandManager.executeCommand( sender, command );
return new Object[] { result > 0, sender.copyOutput() };
return new Object[] { result > 0, sender.copyOutput(), result };
}
catch( Throwable t )
{