Rename MaplePortal
This commit is contained in:
@@ -108,7 +108,7 @@ public class GotoCommand extends Command {
|
||||
MapleMap target = c.getChannelServer().getMapFactory().getMap(gotomaps.get(params[0]));
|
||||
|
||||
// expedition issue with this command detected thanks to Masterrulax
|
||||
MaplePortal targetPortal = target.getRandomPlayerSpawnpoint();
|
||||
Portal targetPortal = target.getRandomPlayerSpawnpoint();
|
||||
player.saveLocationOnWarp();
|
||||
player.changeMap(target, targetPortal);
|
||||
} else {
|
||||
|
||||
@@ -27,7 +27,7 @@ import client.Character;
|
||||
import client.Client;
|
||||
import client.command.Command;
|
||||
import server.maps.MapleMap;
|
||||
import server.maps.MaplePortal;
|
||||
import server.maps.Portal;
|
||||
|
||||
public class JailCommand extends Command {
|
||||
{
|
||||
@@ -59,7 +59,7 @@ public class JailCommand extends Command {
|
||||
|
||||
if (victim.getMapId() != mapid) { // those gone to jail won't be changing map anyway
|
||||
MapleMap target = c.getChannelServer().getMapFactory().getMap(mapid);
|
||||
MaplePortal targetPortal = target.getPortal(0);
|
||||
Portal targetPortal = target.getPortal(0);
|
||||
victim.saveLocationOnWarp();
|
||||
victim.changeMap(target, targetPortal);
|
||||
player.message(victim.getName() + " was jailed for " + minutesJailed + " minutes.");
|
||||
|
||||
@@ -32,8 +32,8 @@ import server.life.Monster;
|
||||
import server.life.SpawnPoint;
|
||||
import server.maps.MapObject;
|
||||
import server.maps.MapObjectType;
|
||||
import server.maps.MaplePortal;
|
||||
import server.maps.MapleReactor;
|
||||
import server.maps.Portal;
|
||||
|
||||
import java.awt.*;
|
||||
import java.util.Arrays;
|
||||
@@ -80,7 +80,7 @@ public class DebugCommand extends Command {
|
||||
break;
|
||||
|
||||
case "portal":
|
||||
MaplePortal portal = player.getMap().findClosestPortal(player.getPosition());
|
||||
Portal portal = player.getMap().findClosestPortal(player.getPosition());
|
||||
if (portal != null)
|
||||
player.dropMessage(6, "Closest portal: " + portal.getId() + " '" + portal.getName() + "' Type: " + portal.getType() + " --> toMap: " + portal.getTargetMapId() + " scriptname: '" + portal.getScriptName() + "' state: " + (portal.getPortalState() ? 1 : 0) + ".");
|
||||
else player.dropMessage(6, "There is no portal on this map.");
|
||||
|
||||
Reference in New Issue
Block a user