1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2025-06-27 15:43:11 +00:00

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

View File

@ -83,7 +83,7 @@ public class CommandAPI implements ILuaAPI
{ {
sender.clearOutput(); sender.clearOutput();
int result = commandManager.executeCommand( sender, command ); int result = commandManager.executeCommand( sender, command );
return new Object[] { result > 0, sender.copyOutput() }; return new Object[] { result > 0, sender.copyOutput(), result };
} }
catch( Throwable t ) catch( Throwable t )
{ {