I simply don't have enough time to finish this. I want it to add 3 hearts after eating soup if food bar is full (or filled by that soup). No commands or perms needed here's the code that I've started if you want to use it, it's up to you. If you can finish it by late Sunday it'd be great but not trying to rush. Code:java public final Logger logger = Logger.getLogger("Minecraft");@Overridepublic void onDisable() {logger.info("QuickSoup has been disabled");} @Overridepublic void onEnable() {logger.info("QuickSoup has been enabled");PluginManager pm = getServer().getPluginManager();pm.registerEvents((Listener) this, this);} public void EatEvent(PlayerItemConsumeEvent event){Player player = event.getPlayer(); if(player.getItemInHand().getType() instanceof ){ //Add in the MUSHROOM_SOUP here }}
mastermustard 1. Your code is incorrect, 2. You are casting a plugin to a listener, just implement Listener. 3. Most developers are faster using their own code. 4. Done: https://www.dropbox.com/s/bkhavwfta0vgf9h/QuickSoup.jar SkillSam 5 minute plugin EDIT by Moderator: merged posts, please use the edit button instead of double posting.
I noticed the code was wrong just before you posted. I attempted this past midnight and stopped because I had other things to do with my server before release. Thanks.