Package org.bukkit.plugin

Examples of org.bukkit.plugin.Plugin


        }

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

                if (bose.getDescription().getName().equals("BOSEconomy") && bose.getDescription().getVersion().startsWith("0.7")) {
                    economy.economy = (BOSEconomy) bose;
                    log.info(String.format("[%s][Economy] %s hooked.", plugin.getDescription().getName(), economy.name));
                }
            }
        }
View Full Code Here


    public Economy_GoldenChestEconomy (Plugin plugin) {
        this.plugin = plugin;
        Bukkit.getServer().getPluginManager().registerEvents(new EconomyServerListener(this), plugin);
        // Load Plugin in case it was loaded before
        if (economy == null) {
            Plugin ec = plugin.getServer().getPluginManager().getPlugin("GoldenChestEconomy");
            if (ec != null && ec.isEnabled() && ec.getClass().getName().equals("me.igwb.GoldenChest.GoldenChestEconomy")) {
                economy = (GoldenChestEconomy) ec;
                log.info(String.format("[%s][Economy] %s hooked.", plugin.getDescription().getName(), name));
            }
        }
    }
View Full Code Here

        }
   
        @EventHandler(priority = EventPriority.MONITOR)
        public void onPluginEnable(PluginEnableEvent event) {
            if (economy.economy == null) {
                Plugin ec = event.getPlugin();
   
                if (ec.getDescription().getName().equals("GoldenChestEconomy") && ec.getClass().getName().equals("me.igwb.GoldenChest.GoldenChestEconomy")) {
                    economy.economy = (GoldenChestEconomy) ec;
                    log.info(String.format("[%s][Economy] %s hooked.", plugin.getDescription().getName(), economy.name));
                }
            }
        }
View Full Code Here

    Bukkit.getServer().getPluginManager().registerEvents(new PermissionServerListener(this), plugin);

    // Load Plugin in case it was loaded before
    if (iChat == null) {
      Plugin chat = plugin.getServer().getPluginManager().getPlugin("iChat");
      if (chat != null) {
        iChat = ((iChat) chat).API;
        log.info(String.format("[%s][Chat] %s hooked.", plugin.getDescription().getName(), "iChat"));
      }
    }
View Full Code Here

    }

    @EventHandler(priority = EventPriority.MONITOR)
    public void onPluginEnable(PluginEnableEvent event) {
      if (this.chat.iChat == null) {
        Plugin chat = event.getPlugin();
        if (chat.getDescription().getName().equals("iChat")) {
          this.chat.iChat = ((iChat) chat).API;
          log.info(String.format("[%s][Chat] %s hooked.", plugin.getDescription().getName(), "iChat"));
        }
      }
    }
View Full Code Here

        Bukkit.getServer().getPluginManager().registerEvents(new PermissionServerListener(), plugin);

        // Load Plugin in case it was loaded before
        if (mChat == null) {
            Plugin chat = plugin.getServer().getPluginManager().getPlugin("mChatSuite");
            if (chat != null && chat.isEnabled()) {
                mChat = (mChatSuite) chat;
                log.info(String.format("[%s][Chat] %s hooked.", plugin.getDescription().getName(), "mChatSuite"));
            }
        }
    }
View Full Code Here

    public class PermissionServerListener implements Listener {

        @EventHandler(priority = EventPriority.MONITOR)
        public void onPluginEnable(PluginEnableEvent event) {
            if (mChat == null) {
                Plugin chat = event.getPlugin();
                if (chat.getDescription().getName().equals("mChatSuite")) {
                    mChat = (mChatSuite) chat;
                    log.info(String.format("[%s][Chat] %s hooked.", plugin.getDescription().getName(), "mChatSuite"));
                }
            }
        }
View Full Code Here

    public Chat_rscPermissions(Plugin plugin, Permission perm) {
        super(perm);
        this.vault = plugin;
        Bukkit.getServer().getPluginManager().registerEvents(new ChatServerListener(this), vault);
        if (rscp == null) {
            Plugin perms = plugin.getServer().getPluginManager().getPlugin("rscPermissions");
            if (perms != null && perms.isEnabled()) {
                this.rscp = (MainPluginClass) perms;
                rscpAPI = rscp.API;
                plugin.getLogger().info(String.format("[%s][Chat] %s hooked.", plugin.getDescription().getName(), "rscPermissions"));
            }
        }
View Full Code Here

        }

        @EventHandler(priority = EventPriority.MONITOR)
        private void onPluginEnable(PluginEnableEvent event) {
            if(bridge.rscp == null) {
                Plugin plugin = event.getPlugin();
                if (plugin.getDescription().getName().equals("rscPermissions")) {
                    bridge.rscp = (MainPluginClass) plugin;
                    bridge.rscpAPI = bridge.rscp.API;
                    log.info(String.format("[%s][Chat] %s hooked.", vault.getDescription().getName(), "rscPermissions"));
                }
            }
View Full Code Here

        super(perms);
        this.plugin = plugin;
        Bukkit.getServer().getPluginManager().registerEvents(new PermissionServerListener(), plugin);
        // Load service in case it was loaded before
        if (privs == null) {
            Plugin privsPlugin = plugin.getServer().getPluginManager().getPlugin(PLUGIN_NAME);
            if (privsPlugin != null && privsPlugin.isEnabled()) {
                this.privs = (Privileges) privsPlugin;
                plugin.getLogger().info(String.format("[%s][Chat] %s hooked.", plugin.getDescription().getName(), FRIENDLY_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.