Fix BukkitTelnet module

This commit is contained in:
Telesphoreo 2022-04-08 22:28:51 -05:00
parent 4c2efa7e1a
commit c0be3b107d
2 changed files with 2 additions and 2 deletions

View File

@ -31,7 +31,7 @@ dependencies {
compileOnly("org.projectlombok:lombok:1.18.22") compileOnly("org.projectlombok:lombok:1.18.22")
annotationProcessor("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("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") { compileOnly("me.totalfreedom:BukkitTelnet:4.7") {
exclude("org.spigotmc", "spigot-api") exclude("org.spigotmc", "spigot-api")
} }

View File

@ -34,7 +34,7 @@ public class BukkitTelnetListener extends PlexListener
else if (plugin.getSystem().equalsIgnoreCase("permissions")) else if (plugin.getSystem().equalsIgnoreCase("permissions"))
{ {
PlexLog.debug("Plex-BukkitTelnet using permissions check"); 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")) if (BukkitTelnetModule.getModule().getPermissions().playerHas(null, offlinePlayer, "plex.telnet.autoconnect"))
{ {
event.setBypassPassword(true); event.setBypassPassword(true);