use of me.botsko.prism.bridge.PrismBlockEditHandler in project Prism-Bukkit by prism.
the class Prism method checkPluginDependancies.
/**
*
*/
public void checkPluginDependancies() {
// WorldEdit
final Plugin we = getServer().getPluginManager().getPlugin("WorldEdit");
if (we != null) {
plugin_worldEdit = (WorldEditPlugin) we;
//Easier and foolproof way.
try {
WorldEdit.getInstance().getEventBus().register(new PrismBlockEditHandler());
log("WorldEdit found. Associated features enabled.");
} catch (Throwable error) {
log("Required WorldEdit version is 6.0.0 or greater! Certain optional features of Prism disabled.");
}
} else {
log("WorldEdit not found. Certain optional features of Prism disabled.");
}
}
Aggregations