aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/net/elytrium/limboauth/LimboAuth.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/net/elytrium/limboauth/LimboAuth.java')
-rw-r--r--src/main/java/net/elytrium/limboauth/LimboAuth.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main/java/net/elytrium/limboauth/LimboAuth.java b/src/main/java/net/elytrium/limboauth/LimboAuth.java
index cc7c291..0287dea 100644
--- a/src/main/java/net/elytrium/limboauth/LimboAuth.java
+++ b/src/main/java/net/elytrium/limboauth/LimboAuth.java
@@ -95,6 +95,7 @@ import net.elytrium.limboauth.floodgate.FloodgateApiHolder;
import net.elytrium.limboauth.handler.AuthSessionHandler;
import net.elytrium.limboauth.listener.AuthListener;
import net.elytrium.limboauth.model.RegisteredPlayer;
+import net.kyori.adventure.audience.MessageType;
import net.kyori.adventure.text.Component;
import net.kyori.adventure.text.serializer.ComponentSerializer;
import net.kyori.adventure.title.Title;
@@ -483,14 +484,14 @@ public class LimboAuth {
this.postLoginTasks.put(player.getUniqueId(), () -> {
if (onlineMode) {
if (this.loginPremium != null) {
- player.sendMessage(this.loginPremium);
+ player.sendMessage(this.loginPremium, MessageType.SYSTEM);
}
if (this.loginPremiumTitle != null) {
player.showTitle(this.loginPremiumTitle);
}
} else {
if (this.loginFloodgate != null) {
- player.sendMessage(this.loginFloodgate);
+ player.sendMessage(this.loginFloodgate, MessageType.SYSTEM);
}
if (this.loginFloodgateTitle != null) {
player.showTitle(this.loginFloodgateTitle);