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.
This is my first Plugin in this way. Please can you write a little bit of code?
I want to set a passenger to the player who used this command. Zombies and Cows for example go away from me.
I don't meen the EventHandler I can write and use them. I meen to spawn and set passenger.
skipperguy12 How can I do that? That is my question.
I want to make a Plugin which can spawn Babymobs and tame they instantly. This mobs should be: - babyzombie - all babyanimal - bat -...
Separate names with a comma.