Add cross server whispering

This commit is contained in:
Draycia committed 2020-07-06 07:26:02 -07:00
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);
}
}