add enable check to stacker manager

This commit is contained in:
jascotty2 2019-09-06 18:49:06 -05:00
parent 72187d9efe
commit fa03cef4cd
2 changed files with 10 additions and 2 deletions

View File

@ -4,8 +4,6 @@ import com.songoda.core.compatibility.LegacyMaterials;
import com.songoda.core.configuration.DataStoreObject;
import com.songoda.core.configuration.SimpleDataStore;
import com.songoda.core.gui.methods.Clickable;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.bukkit.configuration.ConfigurationSection;

View File

@ -22,6 +22,16 @@ public class EntityStackerManager {
return manager;
}
/**
* Check to see if there is a default stacker hook loaded. <br />
* NOTE: using a default stacker assumes that this library is shaded
*
* @return returns false if there are no supported plugins
*/
public static boolean isEnabled() {
return manager.isEnabled();
}
/**
* Grab the default hologram plugin. <br />
* NOTE: using a default hologram assumes that this library is shaded