Skip to content

Commit

Permalink
Release 6.11.1
Browse files Browse the repository at this point in the history
Fixed build numbers and added placeholder replacement on Messenger.

Signed-off-by: Fabricio20 <[email protected]>
  • Loading branch information
Fabricio20 committed Jan 26, 2020
1 parent 8b747ed commit 18dae1a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -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)))));
}

}
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
allprojects {
group 'net.notfab.hubbasics'
version = '6.11'
version = '6.11.1'
wrapper {
gradleVersion = '6.0.1'
}
Expand Down

0 comments on commit 18dae1a

Please sign in to comment.