diff --git a/pom.xml b/pom.xml index d0d8aa6e..d88e3ddd 100644 --- a/pom.xml +++ b/pom.xml @@ -327,7 +327,7 @@ org.bstats bstats-bukkit - 1.7 + 1.8 org.bukkit diff --git a/src/main/java/com/onarandombox/MultiverseCore/destination/PlayerDestination.java b/src/main/java/com/onarandombox/MultiverseCore/destination/PlayerDestination.java index fb71c32c..0ca08f98 100644 --- a/src/main/java/com/onarandombox/MultiverseCore/destination/PlayerDestination.java +++ b/src/main/java/com/onarandombox/MultiverseCore/destination/PlayerDestination.java @@ -50,7 +50,7 @@ public class PlayerDestination implements MVDestination { */ @Override public Location getLocation(Entity e) { - Player p = plugin.getServer().getPlayer(this.player); + Player p = plugin.getServer().getPlayerExact(this.player); Player plLoc = null; if (e instanceof Player) { plLoc = (Player) e; diff --git a/src/main/java/com/onarandombox/MultiverseCore/listeners/MVPlayerListener.java b/src/main/java/com/onarandombox/MultiverseCore/listeners/MVPlayerListener.java index 58c92819..853ed55d 100644 --- a/src/main/java/com/onarandombox/MultiverseCore/listeners/MVPlayerListener.java +++ b/src/main/java/com/onarandombox/MultiverseCore/listeners/MVPlayerListener.java @@ -169,7 +169,7 @@ public class MVPlayerListener implements Listener { Logging.finer("We know the teleporter is the console! Magical!"); teleporter = this.plugin.getServer().getConsoleSender(); } else { - teleporter = this.plugin.getServer().getPlayer(teleporterName); + teleporter = this.plugin.getServer().getPlayerExact(teleporterName); } } Logging.finer("Inferred sender '" + teleporter + "' from name '"