I need a plugin that makes it that users can't eat food to regen there hunger and there hunger bar is always empty but they don't loose hearts basically disabling sprint and food bar cheers!
This is plugin 'requests', he asks this becaus he can't code -_- Maybe u can use this on http://forums.bukkit.org/threads/me...l-directly-and-fully-costumizable-1240.36922/ in the config you can disable hungerbar, idk about sprint EDIT by Moderator: merged posts, please use the edit button instead of double posting.
I just wrote it, but I'm at school, so I can't upload it to any file sharing sites. Here's the code: Code: import org.bukkit.event.EventHandler; import org.bukkit.event.Listener; import org.bukkit.event.player.PlayerToggleSprintEvent; import org.bukkit.plugin.java.JavaPlugin; public class NoSprint extends JavaPlugin implements Listener { public void onEnable() { getServer().getPluginManager().registerEvents(this, this); } @EventHandler public void onPlayerSprint(PlayerToggleSprintEvent e) { if (e.isSprinting() && !e.getPlayer().hasPermission("nosprint.sprint")) { e.setCancelled(true); } } }