Development Assistance No public constructor error.

Discussion in 'Plugin Help/Development/Requests' started by Yukisando, Jun 20, 2015.

Thread Status:
Not open for further replies.
  1. Offline

    Yukisando

    Hey guys, I have this error coming up:

    Could not load 'plugins\NPCplugin.jar' in folder 'plugins'
    org.bukkit.plugin.InvalidPluginException: No public constructor

    Apparently Caused by:

    org.bukkit.plugin.java.PluginClassLoader can not access a member of class NPCplugin.NPCpluginMain with modifiers ""

    I have no Idea what they mean for the second one, but for the first one, I don't get why bukkit doesn't find my constructor.

    Here's my code:
    The Error (open)

    Code:
    [15:47:19 ERROR]: Could not load 'plugins\NPCplugin.jar' in folder 'plugins'
    org.bukkit.plugin.InvalidPluginException: No public constructor
            at org.bukkit.plugin.java.PluginClassLoader.<init>(PluginClassLoader.java:54) ~[craf
    tbukkit.jar:git-Bukkit-0a645a2]
            at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:129) ~[c
    raftbukkit.jar:git-Bukkit-0a645a2]
            at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:328) ~[
    craftbukkit.jar:git-Bukkit-0a645a2]
            at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:251) [
    craftbukkit.jar:git-Bukkit-0a645a2]
            at org.bukkit.craftbukkit.v1_8_R2.CraftServer.loadPlugins(CraftServer.java:288) [cra
    ftbukkit.jar:git-Bukkit-0a645a2]
            at org.bukkit.craftbukkit.v1_8_R2.CraftServer.<init>(CraftServer.java:250) [craftbuk
    kit.jar:git-Bukkit-0a645a2]
            at net.minecraft.server.v1_8_R2.PlayerList.<init>(PlayerList.java:69) [craftbukkit.j
    ar:git-Bukkit-0a645a2]
            at net.minecraft.server.v1_8_R2.DedicatedPlayerList.<init>(SourceFile:14) [craftbukk
    it.jar:git-Bukkit-0a645a2]
            at net.minecraft.server.v1_8_R2.DedicatedServer.init(DedicatedServer.java:180) [craf
    tbukkit.jar:git-Bukkit-0a645a2]
            at net.minecraft.server.v1_8_R2.MinecraftServer.run(MinecraftServer.java:501) [craft
    bukkit.jar:git-Bukkit-0a645a2]
            at java.lang.Thread.run(Unknown Source) [?:1.8.0_45]
    Caused by: java.lang.IllegalAccessException: Class org.bukkit.plugin.java.PluginClassLoader
    can not access a member of class NPCplugin.NPCpluginMain with modifiers ""
            at sun.reflect.Reflection.ensureMemberAccess(Unknown Source) ~[?:1.8.0_45]
            at java.lang.Class.newInstance(Unknown Source) ~[?:1.8.0_45]
            at org.bukkit.plugin.java.PluginClassLoader.<init>(PluginClassLoader.java:52) ~[craf
    tbukkit.jar:git-Bukkit-0a645a2]
            ... 10 more
    [15:47:19 INFO]: [WorldEdit] Loading WorldEdit v6.0;3342-78f975b9
    [15:47:19 INFO]: [MagicArrow] Loading MagicArrow v1.0
    [15:47:19 INFO]: [Essentials] Loading Essentials vTeamCity
    [15:47:19 INFO]: [Nightvision] Loading Nightvision v1.0
    [15:47:19 WARN]: **** SERVER IS RUNNING IN OFFLINE/INSECURE MODE!
    [15:47:19 WARN]: The server will make no attempt to authenticate usernames. Beware.
    [15:47:19 WARN]: While this makes the game possible to play without internet access, it also
    opens up the ability for hackers to connect with any username they choose.
    [15:47:19 WARN]: To change this, set "online-mode" to "true" in the server.properties file.
    [15:47:19 INFO]: Preparing level "world"
    [15:47:19 INFO]: Preparing start region for level 0 (Seed: 3250444638768220715)
    [15:47:20 INFO]: Preparing start region for level 1 (Seed: -7159536436518966574)
    [15:47:20 INFO]: Preparing start region for level 2 (Seed: -7159536436518966574)
    [15:47:20 INFO]: [WorldEdit] Enabling WorldEdit v6.0;3342-78f975b9
    [15:47:21 INFO]: WEPIF: Using the Bukkit Permissions API.
    [15:47:21 WARN]: [WorldEdit]
    **********************************************
    ** This WorldEdit version does not fully support your version of Bukkit.
    **
    ** When working with blocks or undoing, chests will be empty, signs
    ** will be blank, and so on. There will be no support for entity
    ** and biome-related functions.
    **
    ** Please see http://wiki.sk89q.com/wiki/WorldEdit/Bukkit_adapters
    **********************************************
    
    [15:47:21 INFO]: [MagicArrow] Enabling MagicArrow v1.0
    [15:47:21 INFO]: [Essentials] Enabling Essentials vTeamCity
    [15:47:21 INFO]: Bukkit version format changed. Version not checked.
    [15:47:21 INFO]: git-Bukkit-0a645a2 (MC: 1.8.3)
    [15:47:21 INFO]: 1.8.3-R0.1-SNAPSHOT
    [15:47:21 INFO]: Using locale en_US
    [15:47:21 INFO]: Using locale en_US
    [15:47:21 INFO]: Essentials: Using config file enhanced permissions.
    [15:47:21 INFO]: Permissions listed in as player-commands will be given to all users.
    [15:47:21 INFO]: [Nightvision] Enabling Nightvision v1.0
    [15:47:21 INFO]: Server permissions file permissions.yml is empty, ignoring it
    [15:47:21 INFO]: Done (2.173s)! For help, type "help" or "?"
    >stop
    [15:47:27 INFO]: Stopping the server
    [15:47:27 INFO]: Stopping server
    [15:47:27 INFO]: [Nightvision] Disabling Nightvision v1.0
    [15:47:27 INFO]: [Essentials] Disabling Essentials vTeamCity
    [15:47:27 INFO]: [MagicArrow] Disabling MagicArrow v1.0
    [15:47:27 INFO]: [WorldEdit] Disabling WorldEdit v6.0;3342-78f975b9
    [15:47:27 INFO]: Saving players
    [15:47:27 INFO]: Saving worlds
    [15:47:27 INFO]: Saving chunks for level 'world'/Overworld
    [15:47:28 INFO]: Saving chunks for level 'world_nether'/Nether
    [15:47:28 INFO]: Saving chunks for level 'world_the_end'/The End
    >
    C:\Users\Nathan\Documents\Work\Java\Server>activate
    
    C:\Users\Nathan\Documents\Work\Java\Server>java -Xms2048M -Xmx4096M  -jar craftbukkit.jar
    Loading libraries, please wait...
    [15:51:15 INFO]: Starting minecraft server version 1.8.3
    [15:51:15 INFO]: Loading properties
    [15:51:15 INFO]: Default game type: CREATIVE
    [15:51:15 INFO]: Generating keypair
    [15:51:16 INFO]: Starting Minecraft server on *:666
    [15:51:16 INFO]: Using default channel type
    [15:51:16 INFO]: This server is running CraftBukkit version git-Bukkit-0a645a2 (MC: 1.8.3) (
    Implementing API version 1.8.3-R0.1-SNAPSHOT)
    [15:51:16 ERROR]: Could not load 'plugins\NPCplugin.jar' in folder 'plugins'
    org.bukkit.plugin.InvalidPluginException: No public constructor
            at org.bukkit.plugin.java.PluginClassLoader.<init>(PluginClassLoader.java:54) ~[craf
    tbukkit.jar:git-Bukkit-0a645a2]
            at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:129) ~[c
    raftbukkit.jar:git-Bukkit-0a645a2]
            at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:328) ~[
    craftbukkit.jar:git-Bukkit-0a645a2]
            at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:251) [
    craftbukkit.jar:git-Bukkit-0a645a2]
            at org.bukkit.craftbukkit.v1_8_R2.CraftServer.loadPlugins(CraftServer.java:288) [cra
    ftbukkit.jar:git-Bukkit-0a645a2]
            at org.bukkit.craftbukkit.v1_8_R2.CraftServer.<init>(CraftServer.java:250) [craftbuk
    kit.jar:git-Bukkit-0a645a2]
            at net.minecraft.server.v1_8_R2.PlayerList.<init>(PlayerList.java:69) [craftbukkit.j
    ar:git-Bukkit-0a645a2]
            at net.minecraft.server.v1_8_R2.DedicatedPlayerList.<init>(SourceFile:14) [craftbukk
    it.jar:git-Bukkit-0a645a2]
            at net.minecraft.server.v1_8_R2.DedicatedServer.init(DedicatedServer.java:180) [craf
    tbukkit.jar:git-Bukkit-0a645a2]
            at net.minecraft.server.v1_8_R2.MinecraftServer.run(MinecraftServer.java:501) [craft
    bukkit.jar:git-Bukkit-0a645a2]
            at java.lang.Thread.run(Unknown Source) [?:1.8.0_45]
    Caused by: java.lang.IllegalAccessException: Class org.bukkit.plugin.java.PluginClassLoader
    can not access a member of class NPCplugin.NPCpluginMain with modifiers ""
            at sun.reflect.Reflection.ensureMemberAccess(Unknown Source) ~[?:1.8.0_45]
            at java.lang.Class.newInstance(Unknown Source) ~[?:1.8.0_45]
            at org.bukkit.plugin.java.PluginClassLoader.<init>(PluginClassLoader.java:52) ~[craf
    tbukkit.jar:git-Bukkit-0a645a2]
            ... 10 more
    [15:51:16 INFO]: [WorldEdit] Loading WorldEdit v6.0;3342-78f975b9
    [15:51:16 INFO]: [MagicArrow] Loading MagicArrow v1.0
    [15:51:16 INFO]: [Essentials] Loading Essentials vTeamCity
    [15:51:16 INFO]: [Nightvision] Loading Nightvision v1.0
    [15:51:16 WARN]: **** SERVER IS RUNNING IN OFFLINE/INSECURE MODE!
    [15:51:16 WARN]: The server will make no attempt to authenticate usernames. Beware.
    [15:51:16 WARN]: While this makes the game possible to play without internet access, it also
    opens up the ability for hackers to connect with any username they choose.
    [15:51:16 WARN]: To change this, set "online-mode" to "true" in the server.properties file.
    [15:51:16 INFO]: Preparing level "world"
    [15:51:16 INFO]: Preparing start region for level 0 (Seed: 3250444638768220715)
    [15:51:17 INFO]: Preparing start region for level 1 (Seed: -7159536436518966574)
    [15:51:17 INFO]: Preparing start region for level 2 (Seed: -7159536436518966574)
    [15:51:18 INFO]: [WorldEdit] Enabling WorldEdit v6.0;3342-78f975b9
    [15:51:18 INFO]: WEPIF: Using the Bukkit Permissions API.
    [15:51:18 WARN]: [WorldEdit]
    **********************************************
    ** This WorldEdit version does not fully support your version of Bukkit.
    **
    ** When working with blocks or undoing, chests will be empty, signs
    ** will be blank, and so on. There will be no support for entity
    ** and biome-related functions.
    **
    ** Please see http://wiki.sk89q.com/wiki/WorldEdit/Bukkit_adapters
    **********************************************
    
    [15:51:18 INFO]: [MagicArrow] Enabling MagicArrow v1.0
    [15:51:18 INFO]: [Essentials] Enabling Essentials vTeamCity
    [15:51:18 INFO]: Bukkit version format changed. Version not checked.
    [15:51:18 INFO]: git-Bukkit-0a645a2 (MC: 1.8.3)
    [15:51:18 INFO]: 1.8.3-R0.1-SNAPSHOT
    [15:51:18 INFO]: Using locale en_US
    [15:51:18 INFO]: Using locale en_US
    [15:51:18 INFO]: Essentials: Using config file enhanced permissions.
    [15:51:18 INFO]: Permissions listed in as player-commands will be given to all users.
    [15:51:18 INFO]: [Nightvision] Enabling Nightvision v1.0
    [15:51:18 INFO]: Server permissions file permissions.yml is empty, ignoring it
    [15:51:18 INFO]: Done (2.089s)! For help, type "help" or "?"
    >reload
    [15:57:33 INFO]: CONSOLE: Please note that this command is not supported and may cause issues when using some plugins.
    [15:57:33 INFO]: CONSOLE: If you encounter any issues please use the /stop command to restart your server.
    [15:57:33 INFO]: [Nightvision] Disabling Nightvision v1.0
    [15:57:33 INFO]: [Essentials] Disabling Essentials vTeamCity
    [15:57:33 INFO]: [MagicArrow] Disabling MagicArrow v1.0
    [15:57:33 INFO]: [WorldEdit] Disabling WorldEdit v6.0;3342-78f975b9
    [15:57:33 ERROR]: Could not load 'plugins\NPCplugin.jar' in folder 'plugins'
    org.bukkit.plugin.InvalidPluginException: No public constructor
            at org.bukkit.plugin.java.PluginClassLoader.<init>(PluginClassLoader.java:54) ~[craftbukkit.jar:git-Bukkit-0a645a2]
            at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:129) ~[craftbukkit.jar:git-Bukkit-0a645a2]
            at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:328) ~[craftbukkit.jar:git-Bukkit-0a645a2]
            at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:251) [craftbukkit.jar:git-Bukkit-0a645a2]
            at org.bukkit.craftbukkit.v1_8_R2.CraftServer.loadPlugins(CraftServer.java:288) [craftbukkit.jar:git-Bukkit-0a645a2]
            at org.bukkit.craftbukkit.v1_8_R2.CraftServer.reload(CraftServer.java:723) [craftbukkit.jar:git-Bukkit-0a645a2]
            at org.bukkit.Bukkit.reload(Bukkit.java:543) [craftbukkit.jar:git-Bukkit-0a645a2]
            at org.bukkit.command.defaults.ReloadCommand.execute(ReloadCommand.java:25) [craftbukkit.jar:git-Bukkit-0a645a2]
            at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:140) [craftbukkit.jar:git-Bukkit-0a645a2]
            at org.bukkit.craftbukkit.v1_8_R2.CraftServer.dispatchCommand(CraftServer.java:625) [craftbukkit.jar:git-Bukkit-0a645a2]
            at org.bukkit.craftbukkit.v1_8_R2.CraftServer.dispatchServerCommand(CraftServer.java:611) [craftbukkit.jar:git-Bukkit-0a645a2]
            at net.minecraft.server.v1_8_R2.DedicatedServer.aN(DedicatedServer.java:372) [craftbukkit.jar:git-Bukkit-0a645a2]
            at net.minecraft.server.v1_8_R2.DedicatedServer.A(DedicatedServer.java:337) [craftbukkit.jar:git-Bukkit-0a645a2]
            at net.minecraft.server.v1_8_R2.MinecraftServer.z(MinecraftServer.java:626) [craftbukkit.jar:git-Bukkit-0a645a2]
            at net.minecraft.server.v1_8_R2.MinecraftServer.run(MinecraftServer.java:534) [craftbukkit.jar:git-Bukkit-0a645a2]
            at java.lang.Thread.run(Unknown Source) [?:1.8.0_45]
    Caused by: java.lang.IllegalAccessException: Class org.bukkit.plugin.java.PluginClassLoader can not access a member of class NPCplugin.NPCpluginMain with modifiers ""
            at sun.reflect.Reflection.ensureMemberAccess(Unknown Source) ~[?:1.8.0_45]
            at java.lang.Class.newInstance(Unknown Source) ~[?:1.8.0_45]
            at org.bukkit.plugin.java.PluginClassLoader.<init>(PluginClassLoader.java:52) ~[craftbukkit.jar:git-Bukkit-0a645a2]
            ... 15 more
    [15:57:33 INFO]: [WorldEdit] Loading WorldEdit v6.0;3342-78f975b9
    [15:57:33 INFO]: [MagicArrow] Loading MagicArrow v1.0
    [15:57:33 INFO]: [Essentials] Loading Essentials vTeamCity
    [15:57:33 INFO]: [Nightvision] Loading Nightvision v1.0
    [15:57:33 INFO]: [WorldEdit] Enabling WorldEdit v6.0;3342-78f975b9
    [15:57:33 INFO]: WEPIF: Using the Bukkit Permissions API.
    [15:57:33 WARN]: [WorldEdit]
    **********************************************
    ** This WorldEdit version does not fully support your version of Bukkit.
    **
    ** When working with blocks or undoing, chests will be empty, signs
    ** will be blank, and so on. There will be no support for entity
    ** and biome-related functions.
    **
    ** Please see http://wiki.sk89q.com/wiki/WorldEdit/Bukkit_adapters
    **********************************************
    
    [15:57:33 INFO]: [MagicArrow] Enabling MagicArrow v1.0
    [15:57:33 INFO]: [Essentials] Enabling Essentials vTeamCity
    [15:57:33 INFO]: Bukkit version format changed. Version not checked.
    [15:57:33 INFO]: git-Bukkit-0a645a2 (MC: 1.8.3)
    [15:57:33 INFO]: 1.8.3-R0.1-SNAPSHOT
    [15:57:33 INFO]: Using locale en_US
    [15:57:34 INFO]: Using locale en_US
    [15:57:34 INFO]: Essentials: Using config file enhanced permissions.
    [15:57:34 INFO]: Permissions listed in as player-commands will be given to all users.
    [15:57:34 INFO]: [Nightvision] Enabling Nightvision v1.0
    [15:57:34 INFO]: Server permissions file permissions.yml is empty, ignoring it
    [15:57:34 INFO]: CONSOLE: Reload complete.
    >reload
    [15:59:17 INFO]: CONSOLE: Please note that this command is not supported and may cause issues when using some plugins.
    [15:59:17 INFO]: CONSOLE: If you encounter any issues please use the /stop command to restart your server.
    [15:59:17 INFO]: [Nightvision] Disabling Nightvision v1.0
    [15:59:17 INFO]: [Essentials] Disabling Essentials vTeamCity
    [15:59:17 INFO]: [MagicArrow] Disabling MagicArrow v1.0
    [15:59:17 INFO]: [WorldEdit] Disabling WorldEdit v6.0;3342-78f975b9
    [15:59:17 ERROR]: Could not load 'plugins\NPCplugin.jar' in folder 'plugins'
    org.bukkit.plugin.InvalidPluginException: No public constructor
            at org.bukkit.plugin.java.PluginClassLoader.<init>(PluginClassLoader.java:54) ~[craftbukkit.jar:git-Bukkit-0a645a2]
            at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:129) ~[craftbukkit.jar:git-Bukkit-0a645a2]
            at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:328) ~[craftbukkit.jar:git-Bukkit-0a645a2]
            at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:251) [craftbukkit.jar:git-Bukkit-0a645a2]
            at org.bukkit.craftbukkit.v1_8_R2.CraftServer.loadPlugins(CraftServer.java:288) [craftbukkit.jar:git-Bukkit-0a645a2]
            at org.bukkit.craftbukkit.v1_8_R2.CraftServer.reload(CraftServer.java:723) [craftbukkit.jar:git-Bukkit-0a645a2]
            at org.bukkit.Bukkit.reload(Bukkit.java:543) [craftbukkit.jar:git-Bukkit-0a645a2]
            at org.bukkit.command.defaults.ReloadCommand.execute(ReloadCommand.java:25) [craftbukkit.jar:git-Bukkit-0a645a2]
            at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:140) [craftbukkit.jar:git-Bukkit-0a645a2]
            at org.bukkit.craftbukkit.v1_8_R2.CraftServer.dispatchCommand(CraftServer.java:625) [craftbukkit.jar:git-Bukkit-0a645a2]
            at org.bukkit.craftbukkit.v1_8_R2.CraftServer.dispatchServerCommand(CraftServer.java:611) [craftbukkit.jar:git-Bukkit-0a645a2]
            at net.minecraft.server.v1_8_R2.DedicatedServer.aN(DedicatedServer.java:372) [craftbukkit.jar:git-Bukkit-0a645a2]
            at net.minecraft.server.v1_8_R2.DedicatedServer.A(DedicatedServer.java:337) [craftbukkit.jar:git-Bukkit-0a645a2]
            at net.minecraft.server.v1_8_R2.MinecraftServer.z(MinecraftServer.java:626) [craftbukkit.jar:git-Bukkit-0a645a2]
            at net.minecraft.server.v1_8_R2.MinecraftServer.run(MinecraftServer.java:534) [craftbukkit.jar:git-Bukkit-0a645a2]
            at java.lang.Thread.run(Unknown Source) [?:1.8.0_45]
    Caused by: java.lang.IllegalAccessException: Class org.bukkit.plugin.java.PluginClassLoader can not access a member of class NPCplugin.NPCpluginMain with modifiers ""
            at sun.reflect.Reflection.ensureMemberAccess(Unknown Source) ~[?:1.8.0_45]
            at java.lang.Class.newInstance(Unknown Source) ~[?:1.8.0_45]
            at org.bukkit.plugin.java.PluginClassLoader.<init>(PluginClassLoader.java:52) ~[craftbukkit.jar:git-Bukkit-0a645a2]
            ... 15 more
    


    And here's my Code:

    The Code (open)

    Code:
    package me.yukisando.NPCplugin;
    
    import org.bukkit.ChatColor;
    import org.bukkit.Location;
    import org.bukkit.Material;
    import org.bukkit.command.Command;
    import org.bukkit.command.CommandExecutor;
    import org.bukkit.command.CommandSender;
    import org.bukkit.entity.Player;
    import org.bukkit.event.EventHandler;
    import org.bukkit.event.EventPriority;
    import org.bukkit.event.Listener;
    import org.bukkit.event.entity.EntityDamageEvent;
    import org.bukkit.inventory.ItemStack;
    
    public class NPCpluginListener implements Listener, CommandExecutor {
    
        public NPCpluginMain plugin;
    
        public NPCpluginListener(NPCpluginMain plugin) {
            this.plugin = plugin;
    
        }
    
        public Player player;
        public String playerName;
    
        @Override
        public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
    
            if (!(sender instanceof Player)) {
                sender.sendMessage(ChatColor.RED + "In game only.");
                return true;
            }
    
            player = (Player) sender;
            playerName = player.getName();
    
            if (plugin.enabledPlayers.contains(playerName)) {
    
                ItemStack Lighter = new ItemStack(Material.FLINT_AND_STEEL);
                player.getInventory().removeItem(Lighter);
                player.sendMessage(ChatColor.DARK_GREEN + "¨NPC disabled!");
                plugin.enabledPlayers.remove(playerName);
    
            } else {
    
                plugin.enabledPlayers.add(playerName);
                ItemStack Lighter = new ItemStack(Material.FLINT_AND_STEEL);
                player.getInventory().addItem(Lighter);
                player.sendMessage(ChatColor.GREEN + "NPC enabled!");
    
            }
    
            return true;
        }
    
    
        org.bukkit.entity.NPC followers;
        Location NPCloc;
        boolean stoped;
    
        @EventHandler(priority = EventPriority.NORMAL)
        public void onBaffeEvent(EntityDamageEvent event){
    
            if(followers.getFireTicks() > 0 && !stoped){
    
                player.sendMessage(ChatColor.AQUA + "Stop!");
                stoped = true;
            }else{
                stoped = false;
                player.sendMessage(ChatColor.BLUE + "Go!");
            }
    
        }
    }


    and the Main Class:

    Main Class Code (open)

    Code:
    package me.yukisando.NPCplugin;
    
    import java.util.ArrayList;
    
    
    import org.bukkit.plugin.PluginManager;
    import org.bukkit.plugin.java.JavaPlugin;
    
    public class NPCpluginMain extends JavaPlugin {
    
        protected ArrayList<String>    enabledPlayers = new ArrayList<>();
        protected NPCpluginLogger log;
    
        @Override
        public void onDisable() {
    
        }
    
        @Override
        public void onEnable() {
    
            this.log = new NPCpluginLogger();
    
            this.getCommand("npc").setExecutor(new NPCpluginListener(this));
    
            PluginManager pm = this.getServer().getPluginManager();
            pm.registerEvents(new NPCpluginListener(this), this);
    
        }
    
    }


    Tell me if you need more info ! :)
     
  2. Offline

    Boomer

    Your
    main:
    entry in your plugin.yml might not be correct
     
  3. Offline

    Yukisando

    Here's my yml:

    name: NPCplugin
    version: 1.0
    main: me.yukisando.NPCplugin.NPCpluginMain
    commands:
    NPCplugin:
    description: AI for NPC.
    usage: /<command>

    --

    I opened the .jar file once the artifact created it, and it doesn't only put the module output and the Yml but the whole intelliJ project... so I deleted the files directly with 7zip and it works...

    I don't why the artifact doesn't output correctly but at least that's another problem.

    Thanks for the help anyway!


    {{Posts merged by Myrathi}}
     
    Last edited by a moderator: Jun 20, 2015
  4. Online

    timtower Administrator Administrator Moderator

    Moved to Bukkit alternatives and locked.
    Offline mode is not supported.
     
Thread Status:
Not open for further replies.

Share This Page