mirror of
				https://github.com/SquidDev-CC/CC-Tweaked
				synced 2025-10-31 13:42:59 +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:
		| @@ -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 ) | ||||||
|         { |         { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 SquidDev
					SquidDev