From c0be3b107dbc10897f8021a750e8531ba2ad2740 Mon Sep 17 00:00:00 2001 From: Telesphoreo Date: Fri, 8 Apr 2022 22:28:51 -0500 Subject: [PATCH] Fix BukkitTelnet module --- build.gradle.kts | 2 +- src/main/java/dev/plex/listener/BukkitTelnetListener.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 06b1676..1971621 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -31,7 +31,7 @@ dependencies { compileOnly("org.projectlombok:lombok:1.18.22") annotationProcessor("org.projectlombok:lombok:1.18.22") compileOnly("io.papermc.paper:paper-api:1.18.2-R0.1-SNAPSHOT") - compileOnly("dev.plex:Plex:0.10-SNAPSHOT") + compileOnly("dev.plex:Plex:1.0") compileOnly("me.totalfreedom:BukkitTelnet:4.7") { exclude("org.spigotmc", "spigot-api") } diff --git a/src/main/java/dev/plex/listener/BukkitTelnetListener.java b/src/main/java/dev/plex/listener/BukkitTelnetListener.java index 0a4823d..6c9b973 100644 --- a/src/main/java/dev/plex/listener/BukkitTelnetListener.java +++ b/src/main/java/dev/plex/listener/BukkitTelnetListener.java @@ -34,7 +34,7 @@ public class BukkitTelnetListener extends PlexListener else if (plugin.getSystem().equalsIgnoreCase("permissions")) { PlexLog.debug("Plex-BukkitTelnet using permissions check"); - final OfflinePlayer offlinePlayer = Bukkit.getOfflinePlayer(UUID.fromString(player.getUuid())); + final OfflinePlayer offlinePlayer = Bukkit.getOfflinePlayer(player.getUuid()); if (BukkitTelnetModule.getModule().getPermissions().playerHas(null, offlinePlayer, "plex.telnet.autoconnect")) { event.setBypassPassword(true);