Package org.bukkit.plugin

Examples of org.bukkit.plugin.Plugin


    public class PermissionServerListener implements Listener {

        @EventHandler(priority = EventPriority.MONITOR)
        public void onPluginEnable(PluginEnableEvent event) {
            if (privs == null) {
                Plugin permChat = event.getPlugin();
                if (PLUGIN_NAME.equals(permChat.getDescription().getName())) {
                    if (permChat.isEnabled()) {
                        privs = (Privileges) permChat;
                        plugin.getLogger().info(String.format("[Chat] %s hooked.", FRIENDLY_NAME));
                    }
                }
            }
View Full Code Here


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

        // Load Plugin in case it was loaded before
        if (groupManager == null) {
            Plugin chat = plugin.getServer().getPluginManager().getPlugin("GroupManager");
            if (chat != null) {
                if (chat.isEnabled()) {
                    groupManager = (GroupManager) chat;
                    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 (chat.groupManager == null) {
                Plugin perms = event.getPlugin();

                if (perms.getDescription().getName().equals("GroupManager")) {
                    chat.groupManager = (GroupManager) perms;
                    log.info(String.format("[%s][Chat] %s hooked.", plugin.getDescription().getName(), chat.name));
                }
            }
        }
View Full Code Here

        this.plugin = plugin;

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

        if (overPerms == null) {
            Plugin p = plugin.getServer().getPluginManager().getPlugin("OverPermissions");
            if (p != null) {
                overPerms = (OverPermissions) p;
                plugin.getLogger().info(String.format("[%s][Chat] %s hooked.", new Object[] {plugin.getDescription().getName(), "OverPermissions"}));
            }
        }
View Full Code Here

         if(! config.getBooleanProperty("usePermissions", true))
            return;
         if (permissionHandler != null) {
            return;
         }
         Plugin permissionsPlugin = this.getServer().getPluginManager().getPlugin("Permissions");
         if (permissionsPlugin == null) {
            log.warning("MultiCurrency has not found Permissions, and will now use OP.");
            return;
         }
         permissionHandler = ((Permissions) permissionsPlugin).getHandler();
View Full Code Here

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

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

        }

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

    public Permission_Xperms(Plugin plugin) {
        this.plugin = plugin;
        Bukkit.getServer().getPluginManager().registerEvents(new PermissionServerListener(this), plugin);

        if(perms == null){
            Plugin perms = plugin.getServer().getPluginManager().getPlugin("Xperms");
            if(this.perms != null){
                if(perms.isEnabled()){
                    try{
                        if(Double.valueOf(perms.getDescription().getVersion()) < 1.1){
                            log.info(String.format("[%s] [Permission] %s Current version is not compatible with vault! Please Update!", plugin.getDescription().getName(), name));
                        }
                    } catch(NumberFormatException e){
                        // version is first release, numbered 1.0.0
                        log.info(String.format("[%s] [Permission] %s Current version is not compatibe with vault! Please Update!", plugin.getDescription().getName(), name));
View Full Code Here

        }

        @EventHandler(priority = EventPriority.MONITOR)
        public void onPluginEnable(PluginEnableEvent event) {
            if (permission.perms == null) {
                Plugin perms = event.getPlugin();
                if(perms.getDescription().getName().equals("Xperms")){
                    try{
                        if(Double.valueOf(perms.getDescription().getVersion()) < 1.1){
                            log.info(String.format("[%s] [Permission] %s Current version is not compatible with vault! Please Update!", plugin.getDescription().getName(), name));
                        }
                    } catch(NumberFormatException e){
                        // version is first release, numbered 1.0.0
                        log.info(String.format("[%s] [Permission] %s Current version is not compatibe with vault! Please Update!", plugin.getDescription().getName(), name));
View Full Code Here

       
        Bukkit.getServer().getPluginManager().registerEvents(new PermissionServerListener(), plugin);
       
        // Load Plugin in case it was loaded before
        if (!hooked) {
            Plugin p = plugin.getServer().getPluginManager().getPlugin("bPermissions");
            if (p != null) {
                hooked = true;
                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.