public boolean setExactDestination(Location location) {
this.destination = new ExactDestination();
((ExactDestination) this.destination).setDestination(location);
if (!this.destination.isValid()) {
this.destination = new InvalidDestination();
this.plugin.getCore().log(Level.WARNING, "Portal " + this.name + " has an invalid DESTINATION!");
return false;
}
this.config.set(this.portalConfigString + ".destination", this.destination.toString());
saveConfig();