fixed return on onCommand

Signed-off-by: Hugo ThePooN Denizart <thepoon@cartooncraft.fr>