0.1.3-BETA
This commit is contained in:
parent
8404ff9a42
commit
162ba7ed6f
2
pom.xml
2
pom.xml
@ -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>
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user