I have two zones called "couronnegold" and "px" in my config.xml
Code: Select all
<Zones>
<Zone name="couronnegold" uCountUpdate="false" emptyNames="false" customLogin="true">
<Rooms></Rooms>
<Extensions>
<extension name="A" className="se.raketspel.smartbox.core.ExtensionCore" type="java"/>
</Extensions>
</Zone>
<Zone name="px" uCountUpdate="false" emptyNames="false" customLogin="true">
<Rooms></Rooms>
<Extensions>
<extension name="pxsomething" className="se.raketspel.smartbox.core.ExtensionCore" type="java"/>
</Extensions>
</Zone>
</Zones>
The problem is that when I join the zone called "couronnegold" I end up in the zone called "px".
This is the xml-data sent from the client to join the zone
<msg t='sys'><body action='login' r='0'><login z='couronnegold'><nick><![CDATA[Frank]]></nick><pword><![CDATA[]]></pword></login></body></msg>
In my zone extension code I have a code snippet printing out the joined zone:
Code: Select all
public void handleInternalEvent(InternalEventObject event) {
String eventName = event.getEventName();
try {
if (eventName.equals("loginRequest")) {
System.out.println("Trying to join zone: " + zoneName);
...
...
this prints out
Trying to join zone: px
What is the problem here? I suspect that it is that both zone-extensions are using the same class. But I must be able to do this right?
Serverversion: 1.6.1
Thanks in advance.