Thanks for the good replies. I now have a working timer or whatever you will call it.
What I need to do is make a 5 seconds delay. An example would be that when I run the /spawn command I will be teleported to spawn instantly but I...
He just wanted an example.
@EventHandler public void onPlayerDeath(EntityDeathEvent e) { if(e.getEntity() instanceof Player) { //Checks if the killed entity is a player....
Ok, thanks :)
The code is just an example of the players hunger not being set.
bump
Yes, I know this code wont compile as I replaced parts of it. I'll fix th code if you guys need it to help me out with p.setFoodLevel(int)....
I guess you only registered your main class. I will fix the code for you if you post it.
This is my code: @EventHandler public void onFoodLevelChange(FoodLevelChangeEvent e) { if(e.getEntityType() == EntityType.PLAYER) {...
The mediafire download doesn't work. EDIT: Lol it worked when i clicked the link again.
Separate names with a comma.