Fix WorldDest orientation not being saved. Fixed Permission oopsie.

This commit is contained in:
Eric Stokes 2011-07-28 18:39:47 -06:00
parent dac95eceba
commit 0d4d344165
2 changed files with 5 additions and 1 deletions

View File

@ -21,7 +21,7 @@ public class InfoCommand extends MultiverseCommand {
this.addKey("mvinfo");
this.addKey("mvi");
this.addKey("mv info");
this.setPermission("multiverse.core.coord", "Returns detailed information on the world.", PermissionDefault.OP);
this.setPermission("multiverse.core.info", "Returns detailed information on the world.", PermissionDefault.OP);
}
@Override

View File

@ -10,6 +10,7 @@ public class WorldDestination extends Destination {
private boolean isValid;
private MVWorld world;
float yaw = -1;
String direction = "";
@Override
public String getIdentifer() {
@ -90,6 +91,9 @@ public class WorldDestination extends Destination {
@Override
public String toString() {
if(direction.length() > 0 && yaw >= 0) {
return this.world.getCBWorld().getName() + ":"+this.direction;
}
return this.world.getCBWorld().getName();
}