Pterodactyl integration is broken again

This commit is contained in:
Telesphoreo 2022-01-16 17:48:23 -06:00
parent a33fd0d978
commit 7d71fc0a29
3 changed files with 5 additions and 2 deletions

View file

@ -97,6 +97,7 @@ dependencies {
implementation('org.javassist:javassist:3.28.0-GA') implementation('org.javassist:javassist:3.28.0-GA')
implementation('org.jetbrains:annotations:22.0.0') implementation('org.jetbrains:annotations:22.0.0')
implementation('com.mattmalec:Pterodactyl4J:2.BETA_92') implementation('com.mattmalec:Pterodactyl4J:2.BETA_92')
implementation("com.squareup.okhttp3:okhttp:3.11.0")
compileOnly('org.spigotmc:spigot:1.18.1-R0.1-SNAPSHOT') compileOnly('org.spigotmc:spigot:1.18.1-R0.1-SNAPSHOT')
compileOnly('me.totalfreedom:BukkitTelnet:4.7') compileOnly('me.totalfreedom:BukkitTelnet:4.7')
compileOnly('me.totalfreedom:TF-LibsDisguises:10.0.27-SNAPSHOT') compileOnly('me.totalfreedom:TF-LibsDisguises:10.0.27-SNAPSHOT')
@ -195,6 +196,7 @@ shadowJar {
include(dependency('org.reflections:reflections')) include(dependency('org.reflections:reflections'))
include(dependency('org.jetbrains:annotations')) include(dependency('org.jetbrains:annotations'))
include(dependency('com.mattmalec:Pterodactyl4J')) include(dependency('com.mattmalec:Pterodactyl4J'))
include(dependency('com.squareup:okhttp3'))
} }
relocate 'org.bstats', 'me.totalfreedom.totalfreedommod' relocate 'org.bstats', 'me.totalfreedom.totalfreedommod'
relocate 'io.papermc.lib', 'me.totalfreedom.totalfreedommod.paperlib' relocate 'io.papermc.lib', 'me.totalfreedom.totalfreedommod.paperlib'

View file

@ -330,7 +330,7 @@ public class TotalFreedomMod extends JavaPlugin
snp = new SignBlocker(); snp = new SignBlocker();
ew = new EntityWiper(); ew = new EntityWiper();
vh = new VanishHandler(); vh = new VanishHandler();
ptero = new Pterodactyl(); //ptero = new Pterodactyl();
} }
private void initAdminUtils() private void initAdminUtils()

View file

@ -27,10 +27,10 @@ public class SignBlocker extends FreedomService
{ {
} }
/*
@EventHandler(priority = EventPriority.NORMAL) @EventHandler(priority = EventPriority.NORMAL)
public void onPlayerPlaceBlock(BlockPlaceEvent event) public void onPlayerPlaceBlock(BlockPlaceEvent event)
{ {
final Player player = event.getPlayer(); final Player player = event.getPlayer();
if (Tag.SIGNS.getValues().contains(event.getBlock().getType())) if (Tag.SIGNS.getValues().contains(event.getBlock().getType()))
{ {
@ -50,6 +50,7 @@ public class SignBlocker extends FreedomService
} }
} }
} }
*/
@EventHandler(priority = EventPriority.LOWEST) @EventHandler(priority = EventPriority.LOWEST)
public void onPlayerInteractSign(PlayerInteractEvent event) public void onPlayerInteractSign(PlayerInteractEvent event)