Check when they eat the food, then use if(item.hasMetaData()){ if(item.getMetaData().getDisplayName().equalsIgnoreCase("Test")){ //The...
//First thing is the hashmap to store the data per player public Map<String, EnumTypes> current = new HashMap<String, EnumTypes>(); //The class...
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
HeyAwesomePeople Np.
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.
if(player.getInventory().contains(Material.WRITTEN_BOOK)){ //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; protected...
@EventHandler 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 =...
connorkarting Yeah that works, maybe you messed up the name or something. Try adding a different debug message for whenever someone joins the...
Separate names with a comma.