mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-02 22:16:22 +00:00
Add cross server whispering
This commit is contained in:
1 parent
faf3f34f0d
commit
16d98d35cc
3 files changed
+53
-25
No files matched your search
@@ -9,6 +9,7 @@ import net.kyori.adventure.key.Key;
|
||||
import net.kyori.adventure.sound.Sound;
|
||||
import net.kyori.adventure.text.Component;
|
||||
import net.kyori.adventure.text.minimessage.MiniMessage;
|
||||
import net.kyori.adventure.text.serializer.gson.GsonComponentSerializer;
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.OfflinePlayer;
|
||||
import org.bukkit.entity.Player;
|
||||
@@ -190,8 +191,8 @@ public class SimpleChatUser implements ChatUser, ForwardingAudience {
|
||||
|
||||
this.playSound(Sound.of(key, source, volume, pitch));
|
||||
}
|
||||
} else {
|
||||
// TODO: cross server msg support, don't forget to include /ignore support
|
||||
} else if (sender.isOnline()) {
|
||||
simpleChat.getPluginMessageManager().sendComponentToPlayer(sender.asPlayer(), this, fromPlayerComponent);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user