mirror of
https://github.com/Multiverse/Multiverse-Core.git
synced 2025-01-06 00:08:04 +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("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
|
||||
|
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user