From: Astrid S. <ast...@us...> - 2008-07-09 17:46:33
|
Update of /cvsroot/arianne/stendhal/src/games/stendhal/server/actions In directory sc8-pr-cvs11.sourceforge.net:/tmp/cvs-serv22879/src/games/stendhal/server/actions Modified Files: CommandCenter.java Log Message: any action registered to Commandcentered with adminlevel restriction is now only executed if caster mets requirements Index: CommandCenter.java =================================================================== RCS file: /cvsroot/arianne/stendhal/src/games/stendhal/server/actions/CommandCenter.java,v retrieving revision 1.22 retrieving revision 1.23 diff -C2 -d -r1.22 -r1.23 *** CommandCenter.java 14 Jun 2008 21:59:19 -0000 1.22 --- CommandCenter.java 9 Jul 2008 17:46:37 -0000 1.23 *************** *** 90,94 **** Player player = (Player) caster; ActionListener actionListener = getAction(action); ! actionListener.onAction(player, action); --- 90,97 ---- Player player = (Player) caster; ActionListener actionListener = getAction(action); ! String type = action.get(WellKnownActionConstants.TYPE); ! if (!AdministrationAction.isPlayerAllowedToExecuteAdminCommand(player, type, true)) { ! return false; ! } actionListener.onAction(player, action); |