@Override public DynmapLocation getBedSpawnLocation() { Location loc = offplayer.getBedSpawnLocation(); if(loc != null) { return toLoc(loc); } return null; } @Override
@Override public MCLocation getBedSpawnLocation() { Location loc = op.getBedSpawnLocation(); if(loc == null) { return null; } return new BukkitMCLocation(loc); }
/** * {@inheritDoc} */ @Override public Location getLocation(Entity entity) { if (entity instanceof Player) { if (this.playername.isEmpty()) this.knownBedLoc = this.plugin.getBlockSafety().getSafeBedSpawn(((Player) entity).getBedSpawnLocation()); else this.knownBedLoc = this.plugin.getBlockSafety().getSafeBedSpawn(Bukkit.getOfflinePlayer(this.playername).getBedSpawnLocation()); if (this.knownBedLoc == null) { ((Player) entity).sendMessage("The bed was " + ChatColor.RED + "invalid or blocked" + ChatColor.RESET + ". Sorry."); } return this.knownBedLoc; } return null; }
Location bedSpawn = offline.getBedSpawnLocation(); if (bedSpawn != null) { event.addWhoisInformation("Bed spawn location",