mirror of
https://github.com/Multiverse/Multiverse-Core.git
synced 2025-01-07 16:57:50 +01:00
Fix WorldDest orientation not being saved. Fixed Permission oopsie.
This commit is contained in:
parent
dac95eceba
commit
0d4d344165
@ -21,7 +21,7 @@ public class InfoCommand extends MultiverseCommand {
|
|||||||
this.addKey("mvinfo");
|
this.addKey("mvinfo");
|
||||||
this.addKey("mvi");
|
this.addKey("mvi");
|
||||||
this.addKey("mv info");
|
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
|
@Override
|
||||||
|
@ -10,6 +10,7 @@ public class WorldDestination extends Destination {
|
|||||||
private boolean isValid;
|
private boolean isValid;
|
||||||
private MVWorld world;
|
private MVWorld world;
|
||||||
float yaw = -1;
|
float yaw = -1;
|
||||||
|
String direction = "";
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String getIdentifer() {
|
public String getIdentifer() {
|
||||||
@ -90,6 +91,9 @@ public class WorldDestination extends Destination {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
|
if(direction.length() > 0 && yaw >= 0) {
|
||||||
|
return this.world.getCBWorld().getName() + ":"+this.direction;
|
||||||
|
}
|
||||||
return this.world.getCBWorld().getName();
|
return this.world.getCBWorld().getName();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user