Package org.bukkit.plugin

Examples of org.bukkit.plugin.Plugin


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

        // Load Plugin in case it was loaded before
        if(currency == null) {
            Plugin currencyPlugin = plugin.getServer().getPluginManager().getPlugin("CurrencyCore");
            if(currencyPlugin != null && currencyPlugin.getClass().getName().equals("is.currency.Currency")) {
                this.currency = (Currency) currencyPlugin;
                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(this.economy.currency == null) {
                Plugin currencyPlugin = event.getPlugin();
               
                if(currencyPlugin.getDescription().getName().equals("CurrencyCore") && currencyPlugin.getClass().getName().equals("is.currency.Currency")) {
                    this.economy.currency = (Currency) currencyPlugin;
                    log.info(String.format("[%s][Economy] %s hooked.", plugin.getDescription().getName(), this.economy.getName()))
                }
            }
        }
View Full Code Here

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

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

    }

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

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

        if (totalPermissions == null) {
            Plugin chat = plugin.getServer().getPluginManager().getPlugin("TotalPermissions");
            if (chat != null) {
                if (chat.isEnabled()) {
                    totalPermissions = (TotalPermissions) chat;
                    plugin.getLogger().info(String.format("[Chat] %s hooked.", name));
                }
            }
        }
View Full Code Here

        }

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

                if (perms != null) {
                    if (perms.getDescription().getName().equals("TotalPermissions")) {
                        if (perms.isEnabled()) {
                            chat.totalPermissions = (TotalPermissions) perms;
                            plugin.getLogger().info(String.format("[Chat] %s hooked.", chat.getName()));
                        }
                    }
                }
View Full Code Here

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

        // Load Plugin in case it was loaded before
        if (chat == null) {
            Plugin p = plugin.getServer().getPluginManager().getPlugin("Permissions");
            if (p == null) {
                plugin.getServer().getPluginManager().getPlugin("vPerms");
                name = "vPerms - Chat";
            }
            if (p != null) {
                if (p.isEnabled() && p.getDescription().getVersion().startsWith("3")) {
                    chat = (Permissions) p;
                    this.perms = chat.getHandler();
                    log.info(String.format("[%s][Chat] %s hooked.", plugin.getDescription().getName(), name));
                }
            }
View Full Code Here

    public class PermissionServerListener implements Listener {

        @EventHandler(priority = EventPriority.MONITOR)
        public void onPluginEnable(PluginEnableEvent event) {
            if (chat == null) {
                Plugin permChat = event.getPlugin();
                if((permChat.getDescription().getName().equals("Permissions") || permChat.getDescription().getName().equals("vPerms")) && permChat.getDescription().getVersion().startsWith("3")) {
                    if (permChat.isEnabled()) {
                        chat = (Permissions) permChat;
                        perms = chat.getHandler();
                        log.info(String.format("[%s][Chat] %s hooked.", plugin.getDescription().getName(), name));
                    }
                }
View Full Code Here

        }

        @EventHandler(priority = EventPriority.MONITOR)
        public void onPluginEnable(PluginEnableEvent event) {
            if (permission.permission == null) {
                Plugin perms = event.getPlugin();
                if (perms.getDescription().getName().equals("PermissionsEx")) {
                    try {
                        if (Double.valueOf(perms.getDescription().getVersion()) < 1.16) {
                            log.info(String.format("[%s][Permission] %s below 1.16 is not compatible with Vault! Falling back to SuperPerms only mode. PLEASE UPDATE!", plugin.getDescription().getName(), name));
                            return;
                        }
                    } catch (NumberFormatException e) {
                        // Do nothing
View Full Code Here

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

        // Load Plugin in case it was loaded before
        if (perms == null) {
            Plugin p = plugin.getServer().getPluginManager().getPlugin("Starburst");
            if (p != null) {
                perms = (StarburstPlugin) p;
                log.info(String.format("[%s][Permission] %s hooked.", plugin.getDescription().getName(), 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.