Package org.bukkit.plugin

Examples of org.bukkit.plugin.Plugin


            dir.getPath());
      }
    }

    private void setupPermissions() throws EnableError {
      Plugin test = this.getServer().getPluginManager().getPlugin("Permissions");
      if(test != null) {
        // make sure Permissions gets enabled first
        if(!test.isEnabled())
          getServer().getPluginManager().enablePlugin(test);

        permissions = ((Permissions)test).getHandler();

      }
View Full Code Here


    return false;
  }

  public boolean startGroupManager()
  {
    Plugin p = plugin.getServer().getPluginManager().getPlugin("GroupManager");
    if (p != null)
    {
      if (!p.isEnabled())
      {
        plugin.getServer().getPluginManager().enablePlugin(p);
      }
      GroupManager gm = (GroupManager) p;
      GroupManager_Perms = gm.getWorldsHolder();
View Full Code Here

    return false;
  }
 
  public boolean startPermissions()
  {
    Plugin p = plugin.getServer().getPluginManager().getPlugin("Permissions");
    if (p != null)
    {
      if (!p.isEnabled())
      {
        plugin.getServer().getPluginManager().enablePlugin(p);
      }
      Permissions_Perms = ((Permissions)p).getHandler();
      return true;
View Full Code Here

    debugees.put(player, value);
  }

  public void setupPermissions()
  {
    Plugin test = this.getServer().getPluginManager().getPlugin("Permissions");
    if(EpicZones.permissions == null)
    {
      if(test != null)
      {
        if(!test.isEnabled())
        {
          getServer().getPluginManager().enablePlugin(test);
        }
        EpicZones.permissions = ((Permissions)test).getHandler();
      }
View Full Code Here

    }
  }

  public void setupHeroChat()
  {
    Plugin test = this.getServer().getPluginManager().getPlugin("HeroChat");
    if (test != null)
    {
      heroChat = (com.bukkit.dthielke.herochat.HeroChatPlugin)test;
    }
  }
View Full Code Here

  public void setDebugging(final Player player, final boolean value) {
    debugees.put(player, value);
  }

  private void setupPermissions() throws Exception {
    Plugin test = this.getServer().getPluginManager().getPlugin("Permissions");
    if(test != null) {
      // make sure Permissions gets enabled first
      if(!test.isEnabled()){getServer().getPluginManager().enablePlugin(test);}
      permissions = ((Permissions)test).getHandler();
    }
    else {
      throw new Exception("Permission plugin not available.");
    }
View Full Code Here

            dir.getPath());
      }
    }

    private void setupPermissions() throws EnableError {
      Plugin test = this.getServer().getPluginManager().getPlugin("Permissions");
      if(test != null) {
        // make sure Permissions gets enabled first
        if(!test.isEnabled())
          getServer().getPluginManager().enablePlugin(test);

        permissions = ((Permissions)test).getHandler();

      }
View Full Code Here

    PluginDescriptionFile pdfFile = this.getDescription()
    System.out.println( pdfFile.getName() + " version " + pdfFile.getVersion() + " is disabled." );
  }
  public void setupPermissions()
  {
    Plugin test = this.getServer().getPluginManager().getPlugin("Permissions");
    if(EpicGates.permissions == null)
    {
      if(test != null)
      {
        if(!test.isEnabled())
        {
          getServer().getPluginManager().enablePlugin(test);
        }
        EpicGates.permissions = ((Permissions)test).getHandler();
      }
View Full Code Here

  private Minefaconomy economy = null;

  public Economy_Minefaconomy(Plugin plugin) {
    this.plugin = plugin;
    Bukkit.getServer().getPluginManager().registerEvents(new EconomyServerListener(this), plugin);
    Plugin econ = null;
    // Load Plugin in case it was loaded before
    if (economy == null) {
      econ = plugin.getServer().getPluginManager().getPlugin("Minefaconomy");
      log.info("Loading Minefaconomy")
    }
    if (econ != null && econ.isEnabled()) {
      economy = (Minefaconomy) econ;
      log.info(String.format("[%s][Economy] %s hooked.", plugin.getDescription().getName(), this.name));
      return;
    }
    log.info("Error Loading Minefaconomy");
View Full Code Here

        }

        @EventHandler(priority = EventPriority.MONITOR)
        public void onPluginEnable(PluginEnableEvent event) {
            if (economy_minefaconomy.economy == null) {
                Plugin mfc = event.getPlugin();

                if (mfc.getDescription().getName().equals("Minefaconomy")) {
                    economy_minefaconomy.economy = (Minefaconomy) economy;
                    log.info(String.format("[%s][Economy] %s hooked.", plugin.getDescription().getName(), economy_minefaconomy.name));
                }
            }
        }
View Full Code Here

TOP

Related Classes of org.bukkit.plugin.Plugin

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.