From 66df3fd0863039937f17a0788b4fcb0c6fe94d58 Mon Sep 17 00:00:00 2001 From: Olof Larsson Date: Thu, 26 May 2016 11:30:28 +0200 Subject: [PATCH] Inheritance Visual Efficiency --- .../massivecraft/massivecore/command/editor/Property.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/com/massivecraft/massivecore/command/editor/Property.java b/src/com/massivecraft/massivecore/command/editor/Property.java index a00f93b2..69dd16b8 100644 --- a/src/com/massivecraft/massivecore/command/editor/Property.java +++ b/src/com/massivecraft/massivecore/command/editor/Property.java @@ -188,7 +188,11 @@ public abstract class Property implements Named Mson ret = null; if (source != null && ! source.equals(object)) { - ret = Mson.parse("[%s]").replaceAll("%s", this.getObjectType().getVisualMson(source)); + ret = Mson.mson( + "[", + this.getObjectType().getVisualMson(source), + "]" + ).color(ChatColor.GRAY); } return ret; }