From e6de76fb1f006c1c4295a1449daaff92da0974f9 Mon Sep 17 00:00:00 2001 From: BuildTools Date: Sun, 26 Jul 2015 17:27:30 +0200 Subject: [PATCH] Bugfix --- .../massivecraft/massivecore/mson/Mson.java | 30 +++++++++---------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/src/com/massivecraft/massivecore/mson/Mson.java b/src/com/massivecraft/massivecore/mson/Mson.java index 684f0e8c..5566870b 100644 --- a/src/com/massivecraft/massivecore/mson/Mson.java +++ b/src/com/massivecraft/massivecore/mson/Mson.java @@ -215,25 +215,25 @@ public class Mson implements Serializable // CONVENIENCE MSON EVENT // -------------------------------------------- // - public Mson link(String link) { this.clickEvent(MsonEvent.openUrl(link)); return this; } + public Mson link(String link) { return this.clickEvent(MsonEvent.openUrl(link)); } - public Mson suggest(String replace) { this.clickEvent(MsonEvent.replace(replace)); return this; } - public Mson suggest(MassiveCommand command, String... args) { this.clickEvent(MsonEvent.replace(command, args)); return this; } - public Mson suggest(MassiveCommand command, Iterable args) { this.clickEvent(MsonEvent.replace(command, args)); return this; } + public Mson suggest(String replace) { return this.clickEvent(MsonEvent.replace(replace)); } + public Mson suggest(MassiveCommand command, String... args) { return this.clickEvent(MsonEvent.replace(command, args)); } + public Mson suggest(MassiveCommand command, Iterable args) { return this.clickEvent(MsonEvent.replace(command, args)); } - public Mson command(String command) { this.clickEvent(MsonEvent.performCmd(command)); return this; } - public Mson command(MassiveCommand command, String... args) { this.clickEvent(MsonEvent.performCmd(command, args)); return this; } - public Mson command(MassiveCommand command, Iterable args) { this.clickEvent(MsonEvent.performCmd(command, args)); return this; } + public Mson command(String command) { return this.clickEvent(MsonEvent.performCmd(command)); } + public Mson command(MassiveCommand command, String... args) { return this.clickEvent(MsonEvent.performCmd(command, args)); } + public Mson command(MassiveCommand command, Iterable args) { return this.clickEvent(MsonEvent.performCmd(command, args)); } - public Mson tooltip(String tooltip) { this.hoverEvent(MsonEvent.hoverText(tooltip)); return this; } - public Mson tooltip(String... tooltip) { this.hoverEvent(MsonEvent.hoverText(tooltip)); return this; } - public Mson tooltip(Collection tooltip) { this.hoverEvent(MsonEvent.hoverText(tooltip)); return this; } + public Mson tooltip(String tooltip) { return this.hoverEvent(MsonEvent.hoverText(tooltip)); } + public Mson tooltip(String... tooltip) { return this.hoverEvent(MsonEvent.hoverText(tooltip)); } + public Mson tooltip(Collection tooltip) { return this.hoverEvent(MsonEvent.hoverText(tooltip)); } - public Mson tooltipParse(String tooltip) { this.hoverEvent(MsonEvent.hoverTextParse(tooltip)); return this; } - public Mson tooltipParse(String... tooltip) { this.hoverEvent(MsonEvent.hoverTextParse(tooltip)); return this; } - public Mson tooltipParse(Collection tooltip) { this.hoverEvent(MsonEvent.hoverTextParse(tooltip)); return this; } + public Mson tooltipParse(String tooltip) { return this.hoverEvent(MsonEvent.hoverTextParse(tooltip)); } + public Mson tooltipParse(String... tooltip) { return this.hoverEvent(MsonEvent.hoverTextParse(tooltip)); } + public Mson tooltipParse(Collection tooltip) { return this.hoverEvent(MsonEvent.hoverTextParse(tooltip)); } - public Mson tooltip(ItemStack item) { this.hoverEvent(MsonEvent.item(item)); return this; } + public Mson tooltip(ItemStack item) { return this.hoverEvent(MsonEvent.item(item)); } // -------------------------------------------- // // CONVENIENCE STYLE @@ -287,7 +287,7 @@ public class Mson implements Serializable ret = ret.extra(extra); } - return this; + return ret; } // -------------------------------------------- //