Refactored class name and added command logger for /warn