dev command work
This commit is contained in:
@@ -37,27 +37,24 @@ public class RegionCmd extends AbstractDevCmd {
|
||||
}
|
||||
Regions region = ((AbstractCharacter)target).region;
|
||||
if (region == null) {
|
||||
this.throwbackInfo(pc, "No Region Found.");
|
||||
return;
|
||||
}
|
||||
|
||||
if(region != null) {
|
||||
output += "No Region Found." + newline;
|
||||
}else{
|
||||
output += "Player Info: " + ((AbstractCharacter) target).getName() + newline;
|
||||
output += "Region Building: " + building.getName() + newline;
|
||||
output += "Region Height: " + region.lerpY((AbstractCharacter)target) + newline;
|
||||
output += "is Stairs: " + region.isStairs() + newline;
|
||||
output += "is Outside: " + region.isOutside();
|
||||
output += "is Outside: " + region.isOutside() + newline;
|
||||
output += "NavMesh Data" + newline;
|
||||
Zone zone = ZoneManager.findSmallestZone(((AbstractCharacter) target).loc);
|
||||
if(zone != null) {
|
||||
output += "zone: " + zone.zoneName + newline;
|
||||
output += "on navmesh: " + zone.navMesh.contains(((AbstractCharacter) target).loc.x,((AbstractCharacter) target).loc.z) + newline;
|
||||
}else {
|
||||
output += "zone: null" + newline;
|
||||
}
|
||||
this.throwbackInfo(pc, output);
|
||||
}
|
||||
|
||||
Zone zone = ZoneManager.findSmallestZone(((AbstractCharacter) target).loc);
|
||||
if(zone != null) {
|
||||
output += "zone: " + zone.zoneName + newline;
|
||||
output += "on navmesh: " + zone.navMesh.contains(((AbstractCharacter) target).loc.x,((AbstractCharacter) target).loc.z) + newline;
|
||||
}else {
|
||||
output += "zone: null" + newline;
|
||||
}
|
||||
this.throwbackInfo(pc, "No Region Found.");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user