nope
or do it the way i said if you still want nms access etc
((Damagable)player).getHealth()
Techy4198 mind linking to the original? ok making good process :D EDIT by Moderator: merged posts, please use the edit button instead of double...
you could store the material name and then do getMaterial(name)
that would be the reason then, set the instance to "this" in onenable instead of creating a new instance
are you calling "new pluginclasscrap()" ? on your main calss extending javaplugin
player.getIteminHand can be null, therefor calling any submethod without adequate checking = null pointer
check that the item in hand isnt null. and that it has meta, and a display name, before attempting to access
get rid of that ; after the permission check, your cancelling out your check and then running the code anyway
https://docs.google.com/spreadsheet/ccc?key=0Ai7FZY3N9uoYdFZEaU1RZUswZ2dqUFRpTTkyUEk1dXc&usp=sharing#gid=0
i think its because your extending the base class that extends javaplugin, try not doing that
@EventHandler public void onCommandPreprocess(PlayerChatEvent event) { Player sender = event.getPlayer(); if...
cast the entity to damagable, that will fix it while using bukkit
extends JavaPlugin implements Listener { public static someinstance instance = null; public void onEnable() {...
your if's are nested for biomes.
You need a tileentityfurnace to process the actual smelting.
me.Ambamore2000.SetHealthAndhunger.Main
you can use the above code for that.
@EventHandler (priority = EventPriority.LOW, ignoreCancelled = false) public void onSnowballHit(EntityDamageByEntityEvent event) {...
Separate names with a comma.