Check when they eat the food, then use
//First thing is the hashmap to store the data per player
public Map<String, EnumTypes> current = new HashMap<String, EnumTypes>();
You should do if(event.getItemInHand().hasMetadata())
To make sure it's a renamed item and such, then just get the display name and compare
Minnymin3 is right, if you do return in it, it will stop the for loop and wont continue
Thanks, i saw no one was helping you so i thought i'd give it a shot
You could store the percent as it's decimal form, then when you get it out just multiply it by 100.
//They have a written book
You would have to use an inksac and set the durabilty to the data value of bonemeal
Sorry, i wasn't writing in code form to help you learn
EntityDamageByEntityEvent if event.getDamager instanceof Player && ((Player)event.getDamager()).getItemInHand().getType() == Material.IRON_SWORD...
Just make a new class thats called HSNPlayer with the methods in it you like, have these variables and methods
protected Player player;
public void onJoin...
And you should save their credits to a file, or else every reload their credits get reset
Although ZeusAllMighty11 gives what you basically need, i will simplify it
//First we create the map.
public Map<String, Integer> killstreaks =...
Yeah that works, maybe you messed up the name or something. Try adding a different debug message for whenever someone joins the...
So you did getServer().getPluginManager().registerEvents(new MyListener(this), this);?
PlayerInteractEvent , if they are holding bonemeal, and if the clicked block is grass..
1) Does your class implement Listener
2) Did you register your listener in your onEnable?
3) Don't use == when comparing strings, use .equals or...
ZeusAllMighty11 It's just a waste of a file in my opinion, i see no point of using a file
ZeusAllMighty11 You can just check if the sign has the lines and it would work for any location, no saving, works through reloads, etc. Crazy, I know.
Separate names with a comma.