{
if(command.startsWith("open_doors"))
{
StringTokenizer st = new StringTokenizer(command.substring(10), ", ");
st.nextToken(); // Bypass first value since its castleid/hallid
Castle castle = getCastle();
while(st.hasMoreTokens())
{
castle.openDoor(player, Integer.parseInt(st.nextToken()));
}
}
else if(command.startsWith("close_doors"))
{
StringTokenizer st = new StringTokenizer(command.substring(11), ", ");
st.nextToken(); // Bypass first value since its castleid/hallid
if(condition == 2)
{
Castle castle = getCastle();
while(st.hasMoreTokens())
{
castle.closeDoor(player, Integer.parseInt(st.nextToken()));
}
}
}
}
else