diff --git a/core/src/main/java/zone/themcgamer/core/chat/ChatManager.java b/core/src/main/java/zone/themcgamer/core/chat/ChatManager.java index e351017..36c66cf 100644 --- a/core/src/main/java/zone/themcgamer/core/chat/ChatManager.java +++ b/core/src/main/java/zone/themcgamer/core/chat/ChatManager.java @@ -1,5 +1,6 @@ package zone.themcgamer.core.chat; +import com.cryptomorin.xseries.XSound; import lombok.Getter; import net.md_5.bungee.api.ChatColor; import net.md_5.bungee.api.chat.BaseComponent; @@ -24,6 +25,7 @@ import zone.themcgamer.core.chat.command.message.MessageCommand; import zone.themcgamer.core.chat.command.message.ReplyCommand; import zone.themcgamer.core.chat.component.IChatComponent; import zone.themcgamer.core.common.Style; +import zone.themcgamer.core.cooldown.Cooldown; import zone.themcgamer.core.cooldown.CooldownHandler; import zone.themcgamer.core.module.Module; import zone.themcgamer.core.module.ModuleInfo; @@ -90,6 +92,7 @@ public class ChatManager extends Module { Optional optionalMute = optionalBadSportClient.get().getMute(); if (optionalMute.isPresent()) { player.sendMessage(Style.error("Bad Sport", PunishmentCategory.format(optionalMute.get()))); + player.playSound(player.getLocation(), XSound.ENTITY_VILLAGER_NO.parseSound(),0.5f, 1f); return; } try { @@ -107,8 +110,10 @@ public class ChatManager extends Module { } if (!CooldownHandler.canUse(player, "Chat", TimeUnit.SECONDS.toMillis(3L), false) && !optionalAccount.get().hasRank(Rank.GAMER) && !optionalAccount.get().hasRank(Rank.HELPER)) { - player.sendMessage(Style.error("Chat", "You are chatting too quickly! To bypass this cooldown," + - " please consider purchasing a donator rank over at §bstore.mcgamerzone.net§7.")); + //TODO the actual cooldown in numbers. + player.sendMessage(Style.main("Chat", "You have to wait &63 &7more seconds in-order to chat!")); + player.sendMessage(Style.error("Chat", "This can be bypassed by " + Rank.GAMER.getPrefix() + " &7or &bhigher&7!")); + player.playSound(player.getLocation(), XSound.ENTITY_VILLAGER_NO.parseSound(),0.5f, 1f); return; } for (Map.Entry emote : emotes.entrySet()) diff --git a/core/src/main/java/zone/themcgamer/core/traveler/ServerTraveler.java b/core/src/main/java/zone/themcgamer/core/traveler/ServerTraveler.java index 87aa405..6b31845 100644 --- a/core/src/main/java/zone/themcgamer/core/traveler/ServerTraveler.java +++ b/core/src/main/java/zone/themcgamer/core/traveler/ServerTraveler.java @@ -136,6 +136,9 @@ public class ServerTraveler extends Module { Style.color("&7Type: &6" + server.getGroup().getName()) )).create())).create()); } + try { + player.playSound(player.getEyeLocation(), XSound.ENTITY_ENDERMAN_TELEPORT.parseSound(), 0.9f, 1f); + } catch (NoClassDefFoundError ignored) {} JedisCommandHandler.getInstance().send(new ServerSendCommand(player.getName(), server.getId())); } } \ No newline at end of file