bug fixes btw

This commit is contained in:
Draycia committed 2020-08-02 02:45:07 -07:00
1 parent b4b5989a23
commit d6972528ab
12 files changed
+60 -56

No files matched your search

@@ -58,6 +58,10 @@ public class CarbonChatChannel extends ChatChannel {
@Override
public void sendMessage(ChatUser user, String message, boolean fromBungee) {
if (user.isOnline()) {
user.asPlayer().setDisplayName(user.getNickname());
}
// Get player's formatting
String messageFormat = getFormat(user);
@@ -66,7 +70,7 @@ public class CarbonChatChannel extends ChatChannel {
Bukkit.getPluginManager().callEvent(formatEvent);
if (formatEvent.isCancelled()) {
if (formatEvent.isCancelled() || formatEvent.getMessage().isEmpty()) {
return;
}