--- miscJava/bukkit-minecraft-plugins/HoerupUtils/src/main/java/dk/thoerup/bukkit/hoeruputils/chests/ChestBean.java 2012/11/07 08:29:16 1870 +++ miscJava/bukkit-minecraft-plugins/HoerupUtils/src/main/java/dk/thoerup/bukkit/hoeruputils/chests/ChestBean.java 2012/11/08 19:47:51 1871 @@ -111,7 +111,14 @@ return comment; } public void setComment(String comment) { - this.comment = comment; + this.comment = comment.trim(); + } + + public String getCommentString() { + if (this.comment == null || this.comment.length() == 0) + return ""; + + return " (Comment: " + this.comment + ")"; } }