From 659301a808387568a9854c02a3264d898125984e Mon Sep 17 00:00:00 2001 From: "main()" Date: Sat, 31 Dec 2011 17:39:25 +0100 Subject: [PATCH] MVWorld wants a toString()! :P --- .../java/com/onarandombox/MultiverseCore/MVWorld.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/main/java/com/onarandombox/MultiverseCore/MVWorld.java b/src/main/java/com/onarandombox/MultiverseCore/MVWorld.java index 5015838e..e3699dd1 100644 --- a/src/main/java/com/onarandombox/MultiverseCore/MVWorld.java +++ b/src/main/java/com/onarandombox/MultiverseCore/MVWorld.java @@ -976,4 +976,14 @@ public class MVWorld implements MultiverseWorld { } return result; } + + @Override + public String toString() { + StringBuilder toStringBuilder = new StringBuilder(); + toStringBuilder.append(this.getClass().getSimpleName()); + toStringBuilder.append('@'); + toStringBuilder.append(this.hashCode()); + toStringBuilder.append(" (Name: '").append(this.getName()).append("')"); + return toStringBuilder.toString(); + } }