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