I am just starting out on coding and I tried to make a plugin that you do /joke and it tells you a joke, so far its not working, doesnt even show up in my /plugins, heres the code. Code: package me.maxxxy; import org.bukkit.command.Command; import org.bukkit.command.CommandSender; import org.bukkit.entity.Player; import org.bukkit.plugin.java.JavaPlugin; public class FreezeByMax extends JavaPlugin { @Override public void onEnable() { } @Override public void onDisable () { } public boolean onCommand (CommandSender sender, Command cmd, String label, String[] args) { if (cmd.getName().equalsIgnoreCase("joke") && sender instanceof Player) { Player player = (Player) sender; player.sendMessage("What goes up but never goes down?!.... AGE"); return true; } } It is named freezebymax cause I changed my mind on what to make the plugin do when I had it all setup, as its just a test plugin, I dont mind.
@Maxxxy93 Code: org.bukkit.plugin.InvalidPluginException: Cannot find main class `me.maxxxy.freezebymax' And don't reload the server, restart instead. Capitalization is important.
http://pastebin.com/D0mzDEZS I am getting these errors > https://gyazo.com/439e261711b614c05dd4017fd9b40d46 were I have put a ) it says it shouldnt be there or something..
I did a complete rewrite of the plugin, and it shows up and lets me do /hello, but I want it to let me do /joke, but either way when I do /hello it doesnt tell me the joke I set, it just replies with /hello
@A5H73Y I already spoke him privately. The problem was simple. He was trying /hello but in his plugin.yml it wass "joke:" The plugin.yml command simply didn't matched with the command in his Class.