aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/net/elytrium/limboauth/command/ForceUnregisterCommand.java
diff options
context:
space:
mode:
authorPetr Ilin <hevav@hevav.dev>2022-06-12 01:23:21 +0300
committerPetr Ilin <hevav@hevav.dev>2022-06-12 01:23:21 +0300
commit23f6763f330290b8d58d42133b9c4890ef1f4173 (patch)
treee9d94cfad8435d74c69d5527ed59e349bab03610 /src/main/java/net/elytrium/limboauth/command/ForceUnregisterCommand.java
parent54f8cd8b21988e31e0569b1eea1ed0f6e46c57ce (diff)
downloadLimboAuth-23f6763f330290b8d58d42133b9c4890ef1f4173.tar.gz
LimboAuth-23f6763f330290b8d58d42133b9c4890ef1f4173.tar.bz2
LimboAuth-23f6763f330290b8d58d42133b9c4890ef1f4173.zip
1.19 chat moment
Diffstat (limited to 'src/main/java/net/elytrium/limboauth/command/ForceUnregisterCommand.java')
-rw-r--r--src/main/java/net/elytrium/limboauth/command/ForceUnregisterCommand.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/main/java/net/elytrium/limboauth/command/ForceUnregisterCommand.java b/src/main/java/net/elytrium/limboauth/command/ForceUnregisterCommand.java
index 2fd12ca..f065d25 100644
--- a/src/main/java/net/elytrium/limboauth/command/ForceUnregisterCommand.java
+++ b/src/main/java/net/elytrium/limboauth/command/ForceUnregisterCommand.java
@@ -30,6 +30,7 @@ import net.elytrium.java.commons.mc.velocity.commands.SuggestUtils;
import net.elytrium.limboauth.LimboAuth;
import net.elytrium.limboauth.Settings;
import net.elytrium.limboauth.model.RegisteredPlayer;
+import net.kyori.adventure.audience.MessageType;
import net.kyori.adventure.text.Component;
public class ForceUnregisterCommand implements SimpleCommand {
@@ -73,13 +74,13 @@ public class ForceUnregisterCommand implements SimpleCommand {
this.playerDao.deleteById(playerNick.toLowerCase(Locale.ROOT));
this.plugin.removePlayerFromCache(playerNick);
this.server.getPlayer(playerNick).ifPresent(player -> player.disconnect(this.kick));
- source.sendMessage(serializer.deserialize(MessageFormat.format(this.successful, playerNick)));
+ source.sendMessage(serializer.deserialize(MessageFormat.format(this.successful, playerNick)), MessageType.SYSTEM);
} catch (SQLException e) {
- source.sendMessage(serializer.deserialize(MessageFormat.format(this.notSuccessful, playerNick)));
+ source.sendMessage(serializer.deserialize(MessageFormat.format(this.notSuccessful, playerNick)), MessageType.SYSTEM);
e.printStackTrace();
}
} else {
- source.sendMessage(this.usage);
+ source.sendMessage(this.usage, MessageType.SYSTEM);
}
}