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