mirror of
https://github.com/Aust1n46/VentureChat.git
synced 2025-05-22 18:09:06 +00:00
Fixed bug in message notification sound.
This commit is contained in:
parent
b327f79256
commit
c8b87fddd6
@ -299,12 +299,13 @@ public class ChatListener implements Listener {
|
||||
p.getPlayer().sendMessage(send);
|
||||
mcp.getPlayer().sendMessage(echo);
|
||||
if(p.hasNotifications()) {
|
||||
if(VersionHandler.is1_8()) {
|
||||
if(VersionHandler.is1_8() || VersionHandler.is1_7_10() || VersionHandler.is1_7_2() || VersionHandler.is1_7_9()) {
|
||||
p.getPlayer().playSound(p.getPlayer().getLocation(), Sound.valueOf("LEVEL_UP"), 1, 0);
|
||||
}
|
||||
if(VersionHandler.is1_9()) {
|
||||
else {
|
||||
p.getPlayer().playSound(p.getPlayer().getLocation(), Sound.valueOf("ENTITY_PLAYER_LEVELUP"), 1, 0);
|
||||
}
|
||||
p.getPlayer().playSound(p.getPlayer().getLocation(), Sound.valueOf("ENTITY_PLAYER_LEVELUP"), 1, 0);
|
||||
}
|
||||
p.setReplyPlayer(mcp.getUUID());
|
||||
mcp.setReplyPlayer(p.getUUID());
|
||||
|
@ -3,6 +3,7 @@ package mineverse.Aust1n46.chat.utilities;
|
||||
import java.util.regex.Matcher;
|
||||
import java.util.regex.Pattern;
|
||||
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.ChatColor;
|
||||
|
||||
import me.clip.placeholderapi.PlaceholderAPI;
|
||||
@ -36,7 +37,7 @@ public class Format {
|
||||
}
|
||||
catch(Exception e) {
|
||||
if(plugin.getConfig().getString("loglevel", "info").equals("debug")) {
|
||||
System.out.println("[" + plugin.getConfig().getString("pluginname", "MineverseChat") + "] Prefix and / or suffix don't exist, setting to nothing.");
|
||||
Bukkit.getConsoleSender().sendMessage(Format.FormatStringAll("&8[&eVentureChat&8]&e - Prefix and / or suffix don't exist, setting to nothing."));
|
||||
}
|
||||
}
|
||||
String nickname = "";
|
||||
|
Loading…
x
Reference in New Issue
Block a user