forked from Geoffrey/Geoffrey-MC-Plugin
Fixed formatting in getFormattedLocatedString and selling
+ selling now includes the portal of a shop + tunnels are listed before coordinatesmaster
parent
0854e21015
commit
0687caf051
|
@ -41,12 +41,14 @@ public class GeoffreyLocation {
|
|||
}
|
||||
|
||||
public String getFormattedLocationString() {
|
||||
String locationString = locationName + " @ " + getPositionString() + " Owner: " + owner.getUsername();
|
||||
String locationString = locationName + " @ ";
|
||||
|
||||
if (tunnelString != null) {
|
||||
locationString += " Tunnel: " + tunnelString;
|
||||
locationString += tunnelString + " ";
|
||||
}
|
||||
|
||||
locationString += getPositionString() + " Owner: " + owner.getUsername();
|
||||
|
||||
return locationString;
|
||||
}
|
||||
|
||||
|
|
|
@ -76,10 +76,8 @@ public abstract class GeoffreyAPICallback implements ICallback {
|
|||
JsonObject jsonObject = element.getAsJsonObject();
|
||||
GeoffreyShop geoffreyShop = new GeoffreyShop(jsonObject);
|
||||
|
||||
stringBuilder.append(geoffreyShop.getLocationName());
|
||||
stringBuilder.append(" ");
|
||||
stringBuilder.append(geoffreyShop.getPositionString());
|
||||
stringBuilder.append(" ");
|
||||
stringBuilder.append(geoffreyShop.getFormattedLocationString());
|
||||
stringBuilder.append("\n");
|
||||
stringBuilder.append(geoffreyShop.getFirstItem().getFormattedItemListing());
|
||||
stringBuilder.append("\n");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue