From bf72b1560340b48fc0958b3b2038ba13d49b7190 Mon Sep 17 00:00:00 2001 From: Luck Date: Tue, 29 May 2018 01:01:30 +0100 Subject: Multiple fixes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Fixed an issue which prevented links from being “clickable” * Added a /spark alias * Added a max stack depth limit to fix issues with rendering --- bukkit/src/main/java/me/lucko/spark/bukkit/SparkBukkitPlugin.java | 5 +++++ bukkit/src/main/resources/plugin.yml | 7 ++++--- 2 files changed, 9 insertions(+), 3 deletions(-) (limited to 'bukkit/src') diff --git a/bukkit/src/main/java/me/lucko/spark/bukkit/SparkBukkitPlugin.java b/bukkit/src/main/java/me/lucko/spark/bukkit/SparkBukkitPlugin.java index 0ddbce0..cc774a3 100644 --- a/bukkit/src/main/java/me/lucko/spark/bukkit/SparkBukkitPlugin.java +++ b/bukkit/src/main/java/me/lucko/spark/bukkit/SparkBukkitPlugin.java @@ -15,6 +15,11 @@ public class SparkBukkitPlugin extends JavaPlugin { sender.sendMessage(ChatColor.translateAlternateColorCodes('&', message)); } + @Override + protected void sendLink(CommandSender sender, String url) { + sendMessage(sender, "&7" + url); + } + @Override protected void runAsync(Runnable r) { getServer().getScheduler().runTaskAsynchronously(SparkBukkitPlugin.this, r); diff --git a/bukkit/src/main/resources/plugin.yml b/bukkit/src/main/resources/plugin.yml index a1e473e..1914e04 100644 --- a/bukkit/src/main/resources/plugin.yml +++ b/bukkit/src/main/resources/plugin.yml @@ -1,9 +1,10 @@ name: spark -version: ${project.version} +version: 1.0.2 description: ${project.description} authors: [Luck, sk89q] main: me.lucko.spark.bukkit.SparkBukkitPlugin commands: - profiler: - description: Main plugin command \ No newline at end of file + spark: + description: Main plugin command + aliases: [profiler] \ No newline at end of file -- cgit