Adds towny and superiorskyblock support (#1)

* Stash changes

* Add superiorskyblock2 support

* Add as a soft depend

* Fix skyblock support

* Add palmers towny support

* Turned off wildcard imports

* Update readme

* Update .gitignore

* Add new line

* Add new line
This commit is contained in:
Ryder Belserion
2024-04-16 13:57:08 -04:00
committed by GitHub
parent 74346c1afc
commit 34964d30cd
7 changed files with 215 additions and 4 deletions
@@ -3,6 +3,8 @@ package me.youhavetrouble.yardwatch;
import me.youhavetrouble.yardwatch.hooks.FactionsUUIDProtection;
import me.youhavetrouble.yardwatch.hooks.GriefPreventionProtection;
import me.youhavetrouble.yardwatch.hooks.LWCXProtection;
import me.youhavetrouble.yardwatch.hooks.SuperiorSkyBlockProtection;
import me.youhavetrouble.yardwatch.hooks.TownyProtection;
import me.youhavetrouble.yardwatch.hooks.WorldGuardProtection;
import org.bukkit.plugin.Plugin;
import org.bukkit.plugin.RegisteredServiceProvider;
@@ -15,7 +17,6 @@ public final class YardWatch extends JavaPlugin {
@Override
public void onEnable() {
if (shouldRegisterService("WorldGuard")) {
getServer().getServicesManager().register(
Protection.class, new WorldGuardProtection(this), this, ServicePriority.Normal
@@ -40,6 +41,18 @@ public final class YardWatch extends JavaPlugin {
);
}
if (shouldRegisterService("SuperiorSkyblock2")) {
getServer().getServicesManager().register(
Protection.class, new SuperiorSkyBlockProtection(this), this, ServicePriority.Normal
);
}
if (shouldRegisterService("Towny")) {
getServer().getServicesManager().register(
Protection.class, new TownyProtection(this), this, ServicePriority.Normal
);
}
}
/**