From: Martin F. <mar...@us...> - 2008-03-01 22:15:55
|
Update of /cvsroot/arianne/stendhal/src/games/stendhal/server/actions In directory sc8-pr-cvs11.sourceforge.net:/tmp/cvs-serv29295/src/games/stendhal/server/actions Modified Files: CommandCenter.java Log Message: add TODO register slash commands as verbs in WordList Index: CommandCenter.java =================================================================== RCS file: /cvsroot/arianne/stendhal/src/games/stendhal/server/actions/CommandCenter.java,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -d -r1.15 -r1.16 *** CommandCenter.java 5 Jan 2008 14:52:26 -0000 1.15 --- CommandCenter.java 1 Mar 2008 22:15:55 -0000 1.16 *************** *** 37,48 **** public static void register(String action, ActionListener actionClass) { ! ActionListener command = getActionsMap().putIfAbsent(action, ! actionClass); ! if (command != null) { logger.error("not registering " + command.getClass() + ". it has the same handler: " + action + " as " + CommandCenter.getAction(action).getClass()); } - } --- 37,50 ---- public static void register(String action, ActionListener actionClass) { ! ActionListener command = getActionsMap().putIfAbsent(action, actionClass); ! ! //TODO mf - register slash commands as verbs in WordList ! if (command == null) { ! // WordList.getInstance().registerVerb(action); ! } else { logger.error("not registering " + command.getClass() + ". it has the same handler: " + action + " as " + CommandCenter.getAction(action).getClass()); } } *************** *** 51,55 **** register(action, actionClass); AdministrationAction.registerCommandLevel(action, requiredAdminLevel); - } --- 53,56 ---- *************** *** 110,114 **** return action; } - } --- 111,114 ---- *************** *** 127,131 **** } } - } --- 127,130 ---- |