What i am trying to do is when the player does a command it does a effect this is the code i have so far Code: public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args){ if(cmd.getName().equalsIgnoreCase("smoke")){ Player p = (Player) sender; sender.sendMessage(ChatColor.GREEN + "SMOKE!"); World w = p.getWorld(); w.playEffect(p.getLocation(), Effect.SMOKE, null); } return false; When i do the command in game i get "A internal error error has occurred" Also i am really new to making plugins.
The last paramater is for the direction of the smoke. Also I'm not sure if what exactly you are trying to do, but when you type the command /smoke it will not follow the player's direction.
Actually I'm 99% sure it's intensity and it does nothing, unless I have that mistaken with the playSound that was added then removed.