Package com.sk89q.worldedit.bukkit

Examples of com.sk89q.worldedit.bukkit.WorldEditAPI


    public void pluginEnable(PluginEnableEvent event) {
        if (event.getPlugin().getDescription().getName().equals("Multiverse-Core")) {
            this.plugin.setCore(((MultiverseCore) this.plugin.getServer().getPluginManager().getPlugin("Multiverse-Core")));
            this.plugin.getServer().getPluginManager().enablePlugin(this.plugin);
        } else if (event.getPlugin().getDescription().getName().equals("WorldEdit")) {
            this.plugin.setWorldEditAPI(new WorldEditAPI((WorldEditPlugin) this.plugin.getServer().getPluginManager().getPlugin("WorldEdit")));
            MultiversePortals.staticLog(Level.INFO, "Found WorldEdit. Using it for selections.");
        } else if (event.getPlugin().getDescription().getName().equals("MultiVerse")) {
            if (event.getPlugin().isEnabled()) {
                this.plugin.getServer().getPluginManager().disablePlugin(event.getPlugin());
                MultiversePortals.staticLog(Level.WARNING, "I just disabled the old version of Multiverse for you. You should remove the JAR now, your configs have been migrated.");
View Full Code Here


     * Currently, WorldEdit is required for portals, we're listening for new plugins coming online, but we need to make
     * sure
     */
    private void checkForWorldEdit() {
        if (this.getServer().getPluginManager().getPlugin("WorldEdit") != null) {
            this.worldEditAPI = new WorldEditAPI((WorldEditPlugin) this.getServer().getPluginManager().getPlugin("WorldEdit"));
        }
    }
View Full Code Here

   */
  @EventHandler
  public void onPluginEnable(PluginEnableEvent event) {
    // worldEdit - inspired by MultiversePortals
    if (event.getPlugin().getDescription().getName().equals("WorldEdit")) {
      SimpleSpleef.setWorldEditAPI(new WorldEditAPI((WorldEditPlugin) SimpleSpleef.getPlugin().getServer().getPluginManager().getPlugin("WorldEdit")));
      SimpleSpleef.log.info("[SimpleSpleef] Found WorldEdit. Using it for selections.");
    }
  }
View Full Code Here

          .warning("[SimpleSpleef] Found WorldEdit, but must be at least version 5.0 to work! Ignoring it.");
          return;
        }
      } catch (Exception e) {} // no number, should be fine...
     
      SimpleSpleef.setWorldEditAPI(new WorldEditAPI((WorldEditPlugin) plugin));
      SimpleSpleef.log
          .info("[SimpleSpleef] Found WorldEdit " + plugin.getDescription().getVersion() + ". Using it for selections.");
    }
  }
View Full Code Here

TOP

Related Classes of com.sk89q.worldedit.bukkit.WorldEditAPI

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.