diff options
author | Petr Ilin <hevav@hevav.dev> | 2022-06-12 01:23:21 +0300 |
---|---|---|
committer | Petr Ilin <hevav@hevav.dev> | 2022-06-12 01:23:21 +0300 |
commit | 23f6763f330290b8d58d42133b9c4890ef1f4173 (patch) | |
tree | e9d94cfad8435d74c69d5527ed59e349bab03610 /src/main/java/net/elytrium/limboauth/command/ForceUnregisterCommand.java | |
parent | 54f8cd8b21988e31e0569b1eea1ed0f6e46c57ce (diff) | |
download | LimboAuth-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.java | 7 |
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); } } |