From: Deluge <ant...@us...> - 2013-07-30 18:46:39
|
Update of /cvsroot/arianne/stendhal/src/games/stendhal/server/entity/mapstuff/portal In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv13108/src/games/stendhal/server/entity/mapstuff/portal Modified Files: AccessCheckingPortalFactory.java Log Message: Set "acceptedMessage", "requiredPassword" and "listeningRadius". Index: AccessCheckingPortalFactory.java =================================================================== RCS file: /cvsroot/arianne/stendhal/src/games/stendhal/server/entity/mapstuff/portal/AccessCheckingPortalFactory.java,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** AccessCheckingPortalFactory.java 30 Jul 2013 18:41:44 -0000 1.7 --- AccessCheckingPortalFactory.java 30 Jul 2013 18:46:35 -0000 1.8 *************** *** 59,67 **** final AccessCheckingPortal portal = createPortal(ctx); final String rejectedMessage = getStringValue(ctx, "rejected"); ! if (rejectedMessage != null) { portal.setRejectedMessage(rejectedMessage); } return portal; --- 59,79 ---- final AccessCheckingPortal portal = createPortal(ctx); + final String acceptedMessage = getStringValue(ctx, "accepted"); final String rejectedMessage = getStringValue(ctx, "rejected"); ! final String requiredPassword = getStringValue(ctx, "password"); ! final int listeningRadius = getIntValue(ctx, "radius"); ! ! if (acceptedMessage != null) { ! portal.setAcceptedMessage(acceptedMessage); ! } if (rejectedMessage != null) { portal.setRejectedMessage(rejectedMessage); } + if (requiredPassword != null) { + portal.setRequiredPassword(requiredPassword); + } + if (listeningRadius > 0) { + portal.setListeningRadius(listeningRadius); + } return portal; |