mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-02-15 10:30:05 +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:
parent
8e4d311cd9
commit
79cd8b4da5
@ -83,7 +83,7 @@ public class CommandAPI implements ILuaAPI
|
||||
{
|
||||
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 )
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user