Add coreprotect support, start on prism but commented out until they figure out a maven repository for their API

This commit is contained in:
Taah
2024-01-15 15:39:57 -08:00
parent 8c5c058292
commit b35bf63ba4
5 changed files with 175 additions and 4 deletions

View File

@ -0,0 +1,34 @@
/*
package dev.plex.hook;
import dev.plex.Plex;
import org.bukkit.plugin.Plugin;
public class PrismHook
{
private PrismApi prismApi;
public PrismHook(Plex plex)
{
Plugin plugin = plex.getServer().getPluginManager().getPlugin("Prism");
// Check that Prism is loaded
if (!plugin.isEnabled())
{
return;
}
// Check that the API is enabled
this.prismApi = (PrismApi) plugin;
}
public boolean hasPrism() {
return prismApi != null;
}
public PrismApi prismApi()
{
return prismApi;
}
}
*/