Hi Guys! By some weird reason my command /tutorial instead of doin what's it supposed todo it displays the stuff in usage in the pluigin.yml file. Source code package me.Assaru.TestPlugin; import org.bukkit.ChatColor; import org.bukkit.command.Command; import org.bukkit.command.CommandSender; import org.bukkit.plugin.java.JavaPlugin; public class TestPlugin extends JavaPlugin { @Override public void onEnable() { } @Override public void onDisable() { } public boolean onCommand(CommandSender sender, Command cmd, String commandlabel, String[] args) { if(cmd.getName().equalsIgnoreCase("tutorial")) { sender.sendMessage(ChatColor.AQUA + "Welcome to GGGaming! When readed the rules, do /test for the server to interrogate you about the rules! Välkommen till GGGaming! När du har läst reglerna, skriv /test för att servern ska förhöra dig på reglerna!"); } if(commandlabel.equalsIgnoreCase("test")){ } return true; } } Same with /test but im not done with that command yet
I would suggest putting the "return true;" inside where your command is run, that should fix the problem you are having, if that does not fix it then you need to fix your plugin.yml. What is the full stacktrace that it is giving you? And finally, you need to post this in plugin development, as that is the most likely place that anyone will be able to see it.