mirror of
https://github.com/plexusorg/Module-BukkitTelnet.git
synced 2024-11-17 02:06:14 +00:00
Fix BukkitTelnet module
This commit is contained in:
parent
4c2efa7e1a
commit
c0be3b107d
@ -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")
|
||||||
}
|
}
|
||||||
|
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user