1 20 21 package freecs.commands; 22 import freecs.interfaces.ICommand; 23 import freecs.content.MessageState; 24 25 30 public class CmdQuit extends AbstractCommand { 31 public final String cmd= "/q"; 32 private static final ICommand selve=new CmdQuit(); 33 34 private CmdQuit () { } 35 36 public static ICommand getInstance () { 37 return selve; 38 } 39 40 public boolean execute (MessageState msgState, String param) { 41 msgState.sender.sendQuitMessage (false); 42 return true; 43 } 44 } 45 | Popular Tags |