0.1.3-BETA

This commit is contained in:
JaTiTV 2022-12-22 02:13:15 +01:00
parent 8404ff9a42
commit 162ba7ed6f
2 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@
<groupId>net.t2code</groupId> <groupId>net.t2code</groupId>
<artifactId>T2C-AutomatedMessages</artifactId> <artifactId>T2C-AutomatedMessages</artifactId>
<version>1.2-SNAPSHOT</version> <version>0.1.3-BETA</version>
<packaging>jar</packaging> <packaging>jar</packaging>
<name>T2C-AutomatedMessages</name> <name>T2C-AutomatedMessages</name>

View File

@ -14,8 +14,8 @@ public class SendMessage {
String timeStamp = new SimpleDateFormat(Config.timeFormat.valueString).format(Calendar.getInstance().getTime()); String timeStamp = new SimpleDateFormat(Config.timeFormat.valueString).format(Calendar.getInstance().getTime());
if (Config.sendConsole.valueBoolean) T2Csend.console(message.message.replace("[time]", timeStamp).replace("[prefix]",Config.prefix.valueString)); if (Config.sendConsole.valueBoolean) T2Csend.console(message.message.replace("[time]", timeStamp).replace("[prefix]",Config.prefix.valueString));
for (Player player : Bukkit.getOnlinePlayers()) { for (Player player : Bukkit.getOnlinePlayers()) {
T2Csend.player(player, message.message.replace("[time]", timeStamp).replace("[prefix]",Config.prefix.valueString));
if (player.hasPermission(message.permission) || !message.permissionNeededToSeeMessage){ if (player.hasPermission(message.permission) || !message.permissionNeededToSeeMessage){
T2Csend.player(player, message.message.replace("[time]", timeStamp).replace("[prefix]",Config.prefix.valueString));
player.playSound(player.getLocation(), message.sound, 3, 1); player.playSound(player.getLocation(), message.sound, 3, 1);
} }
} }