Rename and clean up MapleMiniDungeonInfo
This commit is contained in:
@@ -61,7 +61,7 @@ import server.TimerManager;
|
||||
import server.life.Monster;
|
||||
import server.maps.FieldLimit;
|
||||
import server.maps.MapleMap;
|
||||
import server.maps.MapleMiniDungeonInfo;
|
||||
import server.maps.MiniDungeonInfo;
|
||||
import tools.*;
|
||||
|
||||
import javax.script.ScriptEngine;
|
||||
@@ -1460,7 +1460,7 @@ public class Client extends ChannelInboundHandlerAdapter {
|
||||
if (!player.isAlive() || FieldLimit.CANNOTMIGRATE.check(player.getMap().getFieldLimit())) {
|
||||
sendPacket(PacketCreator.enableActions());
|
||||
return;
|
||||
} else if (MapleMiniDungeonInfo.isDungeonMap(player.getMapId())) {
|
||||
} else if (MiniDungeonInfo.isDungeonMap(player.getMapId())) {
|
||||
sendPacket(PacketCreator.serverNotice(5, "Changing channels or entering Cash Shop or MTS are disabled when inside a Mini-Dungeon."));
|
||||
sendPacket(PacketCreator.enableActions());
|
||||
return;
|
||||
|
||||
@@ -90,7 +90,7 @@ public class GotoCommand extends Command {
|
||||
}
|
||||
|
||||
if (!player.isGM()) {
|
||||
if (player.getEventInstance() != null || MapleMiniDungeonInfo.isDungeonMap(player.getMapId()) || FieldLimit.CANNOTMIGRATE.check(player.getMap().getFieldLimit())) {
|
||||
if (player.getEventInstance() != null || MiniDungeonInfo.isDungeonMap(player.getMapId()) || FieldLimit.CANNOTMIGRATE.check(player.getMap().getFieldLimit())) {
|
||||
player.dropMessage(1, "This command can not be used in this map.");
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -28,7 +28,7 @@ import client.Client;
|
||||
import client.command.Command;
|
||||
import server.maps.FieldLimit;
|
||||
import server.maps.MapleMap;
|
||||
import server.maps.MapleMiniDungeonInfo;
|
||||
import server.maps.MiniDungeonInfo;
|
||||
|
||||
public class WarpCommand extends Command {
|
||||
{
|
||||
@@ -56,7 +56,7 @@ public class WarpCommand extends Command {
|
||||
}
|
||||
|
||||
if (!player.isGM()) {
|
||||
if (player.getEventInstance() != null || MapleMiniDungeonInfo.isDungeonMap(player.getMapId()) || FieldLimit.CANNOTMIGRATE.check(player.getMap().getFieldLimit())) {
|
||||
if (player.getEventInstance() != null || MiniDungeonInfo.isDungeonMap(player.getMapId()) || FieldLimit.CANNOTMIGRATE.check(player.getMap().getFieldLimit())) {
|
||||
player.dropMessage(1, "This command cannot be used in this map.");
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user