Examples of JavaPluginLoader


Examples of org.bukkit.plugin.java.JavaPluginLoader

   * getPlugin("Permissions")
   */
  protected static void loadPseudoPlugin(Permissions parent,
      ClassLoader classLoader) {
    // create a pseudo-Permissions plugin as compatibility layer
    JavaPluginLoader pluginLoader = (JavaPluginLoader) parent
        .getPluginLoader();
    PluginClassLoader pluginClassLoader = new PluginClassLoader(
        pluginLoader, new java.net.URL[] {}, classLoader.getParent());
    String version = com.nijikokun.bukkit.Permissions.Permissions.version;
    PluginDescriptionFile description = new PluginDescriptionFile(
View Full Code Here

Examples of org.bukkit.plugin.java.JavaPluginLoader

    final PluginDescriptionFile pdf = new PluginDescriptionFile(new FileInputStream(new File(dataDir, "plugin.yml")));
   
//      final void init(PluginLoader loader, Server server, PluginDescriptionFile description, File dataFolder, File file, ClassLoader classLoader) {
    final Method init = JavaPlugin.class.getDeclaredMethod("init", PluginLoader.class, Server.class, PluginDescriptionFile.class, File.class, File.class, ClassLoader.class);
    init.setAccessible(true);
    init.invoke(skript, new JavaPluginLoader(s), s, pdf, dataDir, jar, getClass().getClassLoader());
   
    Skript.getAddonInstance().loadClasses("ch.njol.skript", "entity");
    new JavaClasses();
    new BukkitClasses();
    new BukkitEventValues();
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.