Thank you for help. You solved my problem. The rest is no problem for me.
The only question is how can I get the EntityType of the killer.
I'm only interested by the EntityType so I can broadcast the right messagetype.
I want to get the killerentity of a player. E.g. a player was killed by an zombie. How can I get the EntityType of the zombie?
Can't anyone help me. This problem is the ground of my plugin.
Compressions How have you start? You had also problems. So let him be. If it does bother you, you have not to read this thread.
Than you have to check if the clicked entity a player and than you can also check the name.
This won't work because java wants to have the brackets. getServer().getPluginManager().registerEvents(new INVTELE(),this); Will work.
Using a npcplugin and replace the villiger with an playernpc is very easer.
And is it an external Listener you have to register it like this: getServer().getPluginManager().registerEvents(new <Listenerclass>(if needed...
Please show your INVTELE.class
for example you can save the Locations.
If I'm right you forgot the @Override annotation for onEnable() ans onDisable().
I have a problem with "player.getInventory().setMaxStackSize(2);". I want that a player can't stack higher as I say (in this example not higher as...
Ok, ok. I only ask because I don't work whith it before.
Separate names with a comma.