Examples of PluginDisableEvent


Examples of de.kilobyte22.app.kibibyte.events.PluginDisableEvent

    }

    public void disable() {
        enabled = false;
        eventBus.postLocal(new DisableEvent());
        eventBus.post(new PluginDisableEvent());
        botAccess.commandManager.setEnabled(false);
    }
View Full Code Here

Examples of org.bukkit.event.server.PluginDisableEvent

        if (plugin.isEnabled()) {
            String message = String.format("Disabling %s", plugin.getDescription().getFullName());
            plugin.getLogger().info(message);

            server.getPluginManager().callEvent(new PluginDisableEvent(plugin));

            JavaPlugin jPlugin = (JavaPlugin) plugin;
            ClassLoader cloader = jPlugin.getClassLoader();

            try {
View Full Code Here

Examples of org.bukkit.event.server.PluginDisableEvent

                        "Error occurred while disabling " + plugin.getDescription().getFullName()
                                + " (Is it up to date?): " + ex.getMessage(),
                        ex);
            }

            server.getPluginManager().callEvent(new PluginDisableEvent(plugin));

            String pluginName = pyPlugin.getDescription().getName();
            if (loadedplugins.contains(pluginName))
                loadedplugins.remove(pluginName);
        }
View Full Code Here

Examples of org.bukkit.event.server.PluginDisableEvent

                server.getLogger().log(Level.SEVERE, "Error occurred while disabling " + plugin.getDescription().getFullName() + ": " + ex.getMessage(), ex);
            }

            // Perhaps abort here, rather than continue going, but as it stands,
            // an abort is not possible the way it's currently written
            server.getPluginManager().callEvent(new PluginDisableEvent(plugin));
        }
    }
View Full Code Here

Examples of org.bukkit.event.server.PluginDisableEvent

        plugin.onEnable();
    }

    @Override
    public void disablePlugin(Plugin plugin) {
        server.getPluginManager().callEvent(new PluginDisableEvent(plugin));
        plugin.onDisable();
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.