use append

This commit is contained in:
Ghost_chu committed 2021-05-19 16:20:05 +08:00
1 parent a929c1e069
commit 3fef1730f9
1 file changed
+11 -12
@@ -1173,18 +1173,17 @@ public class ContainerShop implements Shop {
@Override
public String toString() {
StringBuilder sb =
new StringBuilder(
"Shop "
+ (location.getWorld() == null ? "unloaded world"
: location.getWorld().getName())
+ "("
+ location.getBlockX()
+ ", "
+ location.getBlockY()
+ ", "
+ location.getBlockZ()
+ ")");
StringBuilder sb = new StringBuilder();
sb.append("Shop ")
.append(location.getWorld() == null ? "unloaded world" : location.getWorld().getName())
.append("(")
.append(location.getBlockX())
.append(", ")
.append(location.getBlockY())
.append(", ")
.append(location.getBlockZ())
.append(")");
sb.append(" Owner: ").append(this.ownerName(false)).append(" - ").append(getOwner());
if (isUnlimited()) {
sb.append(" Unlimited: true");