- Баллы
- 96
Чет не могу правильно оформить конструктор для этого эвента.
Посмотрел на вики, то там так: (1.7.10)
А сервер мне вот чё:
[12:30:52] [Server thread/ERROR]: [SimplePlugin] SimplePlugin v0.1 attempted to register an invalid EventHandler method signature "public void com.prototype.livestockcontroll.Main.EntityBreedEvent(org.bukkit.entity.LivingEntity,org.bukkit.entity.LivingEntity,org.bukkit.entity.LivingEntity,org.bukkit.entity.LivingEntity,org.*********ventory.ItemStack,int)" in class com.prototype.simpleplugin.Main
[12:30:52] [Server thread/INFO]: [SimplePlugin] isEnable!
Посмотрел на вики, то там так: (1.7.10)
Java:
@EventHandler
public void EntityBreedEvent(LivingEntity child, LivingEntity mother, LivingEntity father, LivingEntity breeder, ItemStack bredWith, int experience) {
}
[12:30:52] [Server thread/ERROR]: [SimplePlugin] SimplePlugin v0.1 attempted to register an invalid EventHandler method signature "public void com.prototype.livestockcontroll.Main.EntityBreedEvent(org.bukkit.entity.LivingEntity,org.bukkit.entity.LivingEntity,org.bukkit.entity.LivingEntity,org.bukkit.entity.LivingEntity,org.*********ventory.ItemStack,int)" in class com.prototype.simpleplugin.Main
[12:30:52] [Server thread/INFO]: [SimplePlugin] isEnable!
