@Halmerson The item is unspecified when the checked inventory slot is empty.. but I cant find a way to check if it is unspecified, because if I...
@Halmerson How can i detect if its an unspecified item?! EDIT: also i am trying to get the display name of each item in the player's inventory.
for (int in =0; in<=35;in++){ ItemStack i = p.getInventory().getItem(in); Bukkit.getServer().broadcastMessage("" +...
just as the title says. I'm getting an error when i try to do this: for (ItemStack i : p.getinventory.getcontents(){ ERROR > if (i.getAmmount()...
Already tried that tutorials but I'm getting an error on "cannot cast from net.minecraft bla bla to java.awt.list" anyeon!?
How can i do this? is it even possible? thanks! rlly need this.
I'll try to do this.
Thank you so much sir! @teej107
as the title says. I've looked around but dont seem to understand any help is greatly appreciated! thanks!
bump
"for" it is a for loop Why does that for loop wont work if you're really far away? is it because entities get unloaded when u are far away from...
as the title says. It dosent work when u try to get an entity that is far away, or an entity that is outside of a loaded chunk, how could I fix...
Well. I solved it myself.. I actually found another way to get the killer, im gonna be posting the simple code later when i get home so if other...
EntityDamageByEntityEvent cst = (EntityDamageByEntityEvent) e.getEntity().getLastDamageCause(); is that correct ? that returns me the killed...
Sorry I am really new but I am trying to get the killer inside of a EntityDeathEvent, this is my code: @EventHandler public void...
Separate names with a comma.