Skip to content

Commit 456425e

Browse files
committed
clean up
1 parent d4fc05e commit 456425e

File tree

1 file changed

+14
-15
lines changed

1 file changed

+14
-15
lines changed

src/main/java/org/maxgamer/quickshop/shop/ContainerShop.java

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1241,21 +1241,20 @@ public void setDirty(boolean isDirty) {
12411241

12421242
@Override
12431243
public String toString() {
1244-
StringBuilder sb = new StringBuilder();
1245-
1246-
sb.append("Shop ")
1247-
.append(location.getWorld() == null ? "unloaded world" : location.getWorld().getName())
1248-
.append("(")
1249-
.append(location.getBlockX())
1250-
.append(", ")
1251-
.append(location.getBlockY())
1252-
.append(", ")
1253-
.append(location.getBlockZ())
1254-
.append(")");
1255-
sb.append(" Owner: ").append(this.ownerName(false)).append(" - ").append(getOwner());
1256-
sb.append(", Unlimited: ").append(isUnlimited());
1257-
sb.append(" Price: ").append(getPrice());
1258-
return sb.toString();
1244+
1245+
String sb = "Shop " +
1246+
(location.getWorld() == null ? "unloaded world" : location.getWorld().getName()) +
1247+
"(" +
1248+
location.getBlockX() +
1249+
", " +
1250+
location.getBlockY() +
1251+
", " +
1252+
location.getBlockZ() +
1253+
")" +
1254+
" Owner: " + this.ownerName(false) + " - " + getOwner() +
1255+
", Unlimited: " + isUnlimited() +
1256+
" Price: " + getPrice();
1257+
return sb;
12591258
}
12601259

12611260
/**

0 commit comments

Comments
 (0)