mirror of
https://github.com/plexusorg/Plex.git
synced 2025-07-13 00:18:35 +00:00
Add coreprotect support, start on prism but commented out until they figure out a maven repository for their API
This commit is contained in:
34
server/src/main/java/dev/plex/hook/PrismHook.java
Normal file
34
server/src/main/java/dev/plex/hook/PrismHook.java
Normal 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;
|
||||
}
|
||||
}
|
||||
*/
|
Reference in New Issue
Block a user