use of com.sk89q.worldedit.bukkit.WorldEditPlugin 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.");
}
}
use of com.sk89q.worldedit.bukkit.WorldEditPlugin in project WildernessTp by AcmeProject.
the class PortalzGoneWild method createPortal.
public void createPortal(Player p, String name) {
WildTP.debug("Got create portal");
WorldEditPlugin we = (WorldEditPlugin) Bukkit.getServer().getPluginManager().getPlugin("WorldEdit");
Selection sel = we.getSelection(p);
if (name == null) {
p.sendMessage("Invalid Name");
return;
}
if (sel == null) {
p.sendMessage("Invalid WorldEdit Selection");
return;
}
savePortal("Portals." + name, stringConvert(sel.getMaximumPoint()) + "~" + stringConvert(sel.getMinimumPoint()), p);
}
use of com.sk89q.worldedit.bukkit.WorldEditPlugin in project HawkEye by oliverwoodings.
the class HawkEye method checkDependencies.
/**
* Checks if required plugins are loaded
* @param pm PluginManager
*/
private void checkDependencies(PluginManager pm) {
//Check if WorldEdit is loaded
Plugin we = pm.getPlugin("WorldEdit");
if (we != null) {
worldEdit = (WorldEditPlugin) we;
Util.info("WorldEdit found, selection rollbacks enabled");
} else
Util.info("WARNING! WorldEdit not found, WorldEdit selection rollbacks disabled until WorldEdit is available");
}
Aggregations