mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-04 06:28:53 +00:00
bug fixes btw
This commit is contained in:
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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user