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 cac8d25..6e4886c 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 0e106c5..8b4278b 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' }