Java 类org.bukkit.command.PluginCommandYamlParser 实例源码

项目:Thermos-Bukkit    文件:SimplePluginManager.java   
public void enablePlugin(final Plugin plugin) {
    if (!plugin.isEnabled()) {
        List<Command> pluginCommands = PluginCommandYamlParser.parse(plugin);

        if (!pluginCommands.isEmpty()) {
            commandMap.registerAll(plugin.getDescription().getName(), pluginCommands);
        }

        try {
            plugin.getPluginLoader().enablePlugin(plugin);
        } catch (Throwable ex) {
            server.getLogger().log(Level.SEVERE, "Error occurred (in the plugin loader) while enabling " + plugin.getDescription().getFullName() + " (Is it up to date?)", ex);
        }

        HandlerList.bakeAll();
    }
}
项目:ExilePearl    文件:TestPluginManager.java   
@Override
public void enablePlugin(Plugin plugin) {
       if (!plugin.isEnabled()) {
           List<Command> pluginCommands = PluginCommandYamlParser.parse(plugin);
           if (!pluginCommands.isEmpty()) {
               commandMap.registerAll(plugin.getDescription().getName(), pluginCommands);
           }

           try {
            loaderEnablePlugin(plugin);
           } catch (Throwable ex) {
               server.getLogger().log(Level.SEVERE, "Error occurred (in the plugin loader) while enabling " + plugin.getDescription().getFullName() + " (Is it up to date?)", ex);
           }

           HandlerList.bakeAll();
       }
}
项目:CauldronGit    文件:SimplePluginManager.java   
public void enablePlugin(final Plugin plugin) {
    if (!plugin.isEnabled()) {
        List<Command> pluginCommands = PluginCommandYamlParser.parse(plugin);

        if (!pluginCommands.isEmpty()) {
            commandMap.registerAll(plugin.getDescription().getName(), pluginCommands);
        }

        try {
            plugin.getPluginLoader().enablePlugin(plugin);
        } catch (Throwable ex) {
            server.getLogger().log(Level.SEVERE, "Error occurred (in the plugin loader) while enabling " + plugin.getDescription().getFullName() + " (Is it up to date?)", ex);
        }

        HandlerList.bakeAll();
    }
}
项目:Cauldron    文件:SimplePluginManager.java   
public void enablePlugin(final Plugin plugin) {
    if (!plugin.isEnabled()) {
        List<Command> pluginCommands = PluginCommandYamlParser.parse(plugin);

        if (!pluginCommands.isEmpty()) {
            commandMap.registerAll(plugin.getDescription().getName(), pluginCommands);
        }

        try {
            plugin.getPluginLoader().enablePlugin(plugin);
        } catch (Throwable ex) {
            server.getLogger().log(Level.SEVERE, "Error occurred (in the plugin loader) while enabling " + plugin.getDescription().getFullName() + " (Is it up to date?)", ex);
        }

        HandlerList.bakeAll();
    }
}
项目:Cauldron    文件:SimplePluginManager.java   
public void enablePlugin(final Plugin plugin) {
    if (!plugin.isEnabled()) {
        List<Command> pluginCommands = PluginCommandYamlParser.parse(plugin);

        if (!pluginCommands.isEmpty()) {
            commandMap.registerAll(plugin.getDescription().getName(), pluginCommands);
        }

        try {
            plugin.getPluginLoader().enablePlugin(plugin);
        } catch (Throwable ex) {
            server.getLogger().log(Level.SEVERE, "Error occurred (in the plugin loader) while enabling " + plugin.getDescription().getFullName() + " (Is it up to date?)", ex);
        }

        HandlerList.bakeAll();
    }
}
项目:Cauldron    文件:SimplePluginManager.java   
public void enablePlugin(final Plugin plugin) {
    if (!plugin.isEnabled()) {
        List<Command> pluginCommands = PluginCommandYamlParser.parse(plugin);

        if (!pluginCommands.isEmpty()) {
            commandMap.registerAll(plugin.getDescription().getName(), pluginCommands);
        }

        try {
            plugin.getPluginLoader().enablePlugin(plugin);
        } catch (Throwable ex) {
            server.getLogger().log(Level.SEVERE, "Error occurred (in the plugin loader) while enabling " + plugin.getDescription().getFullName() + " (Is it up to date?)", ex);
        }

        HandlerList.bakeAll();
    }
}
项目:Almura-API    文件:SimplePluginManager.java   
public void enablePlugin(final Plugin plugin) {
    if (!plugin.isEnabled()) {
        List<Command> pluginCommands = PluginCommandYamlParser.parse(plugin);

        if (!pluginCommands.isEmpty()) {
            commandMap.registerAll(plugin.getDescription().getName(), pluginCommands);
        }

        try {
            plugin.getPluginLoader().enablePlugin(plugin);
        } catch (Throwable ex) {
            server.getLogger().log(Level.SEVERE, "Error occurred (in the plugin loader) while enabling " + plugin.getDescription().getFullName() + " (Is it up to date?)", ex);
        }

        HandlerList.bakeAll();
    }
}
项目:Spigot-API    文件:SimplePluginManager.java   
public void enablePlugin(final Plugin plugin) {
    if (!plugin.isEnabled()) {
        List<Command> pluginCommands = PluginCommandYamlParser.parse(plugin);

        if (!pluginCommands.isEmpty()) {
            commandMap.registerAll(plugin.getDescription().getName(), pluginCommands);
        }

        try {
            plugin.getPluginLoader().enablePlugin(plugin);
        } catch (Throwable ex) {
            server.getLogger().log(Level.SEVERE, "Error occurred (in the plugin loader) while enabling " + plugin.getDescription().getFullName() + " (Is it up to date?)", ex);
        }

        HandlerList.bakeAll();
    }
}
项目:Bukkit-JavaDoc    文件:SimplePluginManager.java   
public void enablePlugin(final Plugin plugin) {
    if (!plugin.isEnabled()) {
        List<Command> pluginCommands = PluginCommandYamlParser.parse(plugin);

        if (!pluginCommands.isEmpty()) {
            commandMap.registerAll(plugin.getDescription().getName(), pluginCommands);
        }

        try {
            plugin.getPluginLoader().enablePlugin(plugin);
        } catch (Throwable ex) {
            server.getLogger().log(Level.SEVERE, "Error occurred (in the plugin loader) while enabling " + plugin.getDescription().getFullName() + " (Is it up to date?)", ex);
        }

        HandlerList.bakeAll();
    }
}