Jump to content
Search In
  • More options...
Find results that contain...
Find results in...


 I am coding a HardCorePlugin for my server and it seems I can't even get the basic "bones" of the plugin to load on the server.


Fyi This is JavaScript. 


Here is my main and only class:


package me.creed.bukkit;

import org.bukkit.command.Command;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
import org.bukkit.plugin.java.JavaPlugin;

public class HardCorePlugin extends JavaPlugin {
      //Shows Console Plugin Has Been Enabled
		public void onEnable() {
			getLogger().info("The Plugin Is Loading");
		public void OnDisable() { 
public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args){
 //Gives Information About the Plugin		
 if (cmd.getName().equalsIgnoreCase("hardcore") && sender instanceof Player) {
		 Player player = (Player) sender; 
 		player.sendMessage("HardCore Mode Plugin By Creed_MC");
 		//Little Prank 
 		return true; 
 } else if (cmd.getName().equalsIgnoreCase("getop") && sender instanceof Player) {
	 Player player = (Player) sender;
	   return true; 

           return false; 


Here is my plugin.yml


main: me.creed.bukkit.HardCorePlugin
version: 1.0
name: NubbyHardCore
        description: Shows Information About The Plugin

Here is my error when loading the plugin:


[12:49:24 ERROR]: Could not load 'plugins\NubbyHardCoreV1.jar' in folder 'plugins'
org.bukkit.plugin.InvalidPluginException: Cannot find main class `me.creed.bukkit.HardCorePlugin'
        at org.bukkit.plugin.java.PluginClassLoader.<init>(PluginClassLoader.java:66) ~[spigot-1.9.jar:git-Spigot-87e2f47-ef13ca4]
        at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:131) ~[spigot-1.9.jar:git-Spigot-87e2f47-ef13ca4]
        at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:329) ~[spigot-1.9.jar:git-Spigot-87e2f47-ef13ca4]
        at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:251) [spigot-1.9.jar:git-Spigot-87e2f47-ef13ca4]
        at org.bukkit.craftbukkit.v1_9_R1.CraftServer.loadPlugins(CraftServer.java:296) [spigot-1.9.jar:git-Spigot-87e2f47-ef13ca4]
        at net.minecraft.server.v1_9_R1.DedicatedServer.init(DedicatedServer.java:201) [spigot-1.9.jar:git-Spigot-87e2f47-ef13ca4]
        at net.minecraft.server.v1_9_R1.MinecraftServer.run(MinecraftServer.java:527) [spigot-1.9.jar:git-Spigot-87e2f47-ef13ca4]
        at java.lang.Thread.run(Unknown Source) [?:1.8.0_73]
Caused by: java.lang.ClassNotFoundException: me.creed.bukkit.HardCorePlugin
        at java.net.URLClassLoader.findClass(Unknown Source) ~[?:1.8.0_73]
        at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:101) ~[spigot-1.9.jar:git-Spigot-87e2f47-ef13ca4]
        at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:86) ~[spigot-1.9.jar:git-Spigot-87e2f47-ef13ca4]
        at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_73]
        at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_73]
        at java.lang.Class.forName0(Native Method) ~[?:1.8.0_73]
        at java.lang.Class.forName(Unknown Source) ~[?:1.8.0_73]
        at org.bukkit.plugin.java.PluginClassLoader.<init>(PluginClassLoader.java:64) ~[spigot-1.9.jar:git-Spigot-87e2f47-ef13ca4]
        ... 7 more

Why am I getting this error? 



Tech enthusiast and CS Student






Link to post
Share on other sites
  • 2 weeks later...
On 3/19/2016 at 6:55 AM, CmzPlusHardware said:


This is some crazy ass JavaScript man

Current laptop: Macbook Air 13" Broadwell Updated - HD 6000
Current Desktop: i5 4690K (4.2GHz) | Gigabyte GTX 960 G1 (1.515 GHz) | Cooler Master V650S | HyperX 8GB 1866 MHz (1x8) | ASRock Z97 Anniversary | Samsung 1TB HDD | SanDisk Ultra II 240GB SSDZalman R1 Peripherals: Ducky Shine MX Red | Razer Naga 2012 | Razer Kraken Pro | Philips 246V 24"

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now