Fix casting error with chests, return in the proper places onCommand