aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/net/elytrium/limboauth/command/DestroySessionCommand.java
diff options
context:
space:
mode:
authorPetr Ilin <hevav@hevav.dev>2022-12-23 02:36:45 +0300
committerPetr Ilin <hevav@hevav.dev>2022-12-23 02:36:45 +0300
commit206fedfd8765987da659f4b9ef6bcee78a79f3a2 (patch)
tree59ed0af1d7e81479f20ce7e60e0dd52f83f535cd /src/main/java/net/elytrium/limboauth/command/DestroySessionCommand.java
parentc46ba522e726c945bfdb57fe26126072e6adf142 (diff)
downloadLimboAuth-206fedfd8765987da659f4b9ef6bcee78a79f3a2.tar.gz
LimboAuth-206fedfd8765987da659f4b9ef6bcee78a79f3a2.tar.bz2
LimboAuth-206fedfd8765987da659f4b9ef6bcee78a79f3a2.zip
Refactoring + Fixes
Diffstat (limited to 'src/main/java/net/elytrium/limboauth/command/DestroySessionCommand.java')
-rw-r--r--src/main/java/net/elytrium/limboauth/command/DestroySessionCommand.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/main/java/net/elytrium/limboauth/command/DestroySessionCommand.java b/src/main/java/net/elytrium/limboauth/command/DestroySessionCommand.java
index 53f460f..95e002c 100644
--- a/src/main/java/net/elytrium/limboauth/command/DestroySessionCommand.java
+++ b/src/main/java/net/elytrium/limboauth/command/DestroySessionCommand.java
@@ -24,7 +24,6 @@ import com.velocitypowered.api.proxy.Player;
import net.elytrium.java.commons.mc.serialization.Serializer;
import net.elytrium.limboauth.LimboAuth;
import net.elytrium.limboauth.Settings;
-import net.kyori.adventure.audience.MessageType;
import net.kyori.adventure.text.Component;
public class DestroySessionCommand implements SimpleCommand {
@@ -48,9 +47,9 @@ public class DestroySessionCommand implements SimpleCommand {
if (source instanceof Player) {
this.plugin.removePlayerFromCache(((Player) source).getUsername());
- source.sendMessage(this.successful, MessageType.SYSTEM);
+ source.sendMessage(this.successful);
} else {
- source.sendMessage(this.notPlayer, MessageType.SYSTEM);
+ source.sendMessage(this.notPlayer);
}
}