From 18dae1a320e721d28f02100cefcd9dabea3302b6 Mon Sep 17 00:00:00 2001 From: Fabricio20 Date: Sun, 26 Jan 2020 18:27:22 -0300 Subject: [PATCH] Release 6.11.1 Fixed build numbers and added placeholder replacement on Messenger. Signed-off-by: Fabricio20 --- .../java/net/notfab/hubbasics/spigot/managers/Messenger.java | 5 +++-- build.gradle | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Spigot/src/main/java/net/notfab/hubbasics/spigot/managers/Messenger.java b/Spigot/src/main/java/net/notfab/hubbasics/spigot/managers/Messenger.java index cac8d251..6e4886cf 100644 --- a/Spigot/src/main/java/net/notfab/hubbasics/spigot/managers/Messenger.java +++ b/Spigot/src/main/java/net/notfab/hubbasics/spigot/managers/Messenger.java @@ -1,5 +1,6 @@ package net.notfab.hubbasics.spigot.managers; +import net.notfab.hubbasics.spigot.utils.PlaceHolderUtil; import org.bukkit.ChatColor; import org.bukkit.World; import org.bukkit.command.CommandSender; @@ -10,12 +11,12 @@ public class Messenger { public void send(CommandSender sender, String... messages) { Arrays.asList(messages).forEach(message -> - sender.sendMessage(ChatColor.translateAlternateColorCodes('&', message))); + sender.sendMessage(ChatColor.translateAlternateColorCodes('&', PlaceHolderUtil.replace(sender, message)))); } public void send(World world, String... messages) { Arrays.asList(messages).forEach(message -> world.getPlayers().forEach(player -> - player.sendMessage(ChatColor.translateAlternateColorCodes('&', message)))); + player.sendMessage(ChatColor.translateAlternateColorCodes('&', PlaceHolderUtil.replace(player, message))))); } } \ No newline at end of file diff --git a/build.gradle b/build.gradle index 0e106c5e..8b4278b7 100644 --- a/build.gradle +++ b/build.gradle @@ -1,6 +1,6 @@ allprojects { group 'net.notfab.hubbasics' - version = '6.11' + version = '6.11.1' wrapper { gradleVersion = '6.0.1' }