@Supelpelle Since villagers get regeneration when they level up, you can listen for the EntityPotionEffectEvent, then check if the...
The way you tried to do it is very inconsistent. For java, use .equals() when trying to compare strings instead of the == operator. Also, it would...
You can get the spawn reason from CreatureSpawnEvent, no need to store entities
Something is wrong with your plugin.yml. Did you happen to use tab anywhere in the file? Also, give this a look:...
@Demyxa Why use a variable to contain the ItemStack? Will the item change? If not, you could just make craftItemA() return an ItemStack and then...
You have to implement listener. After you say that your plugin extends JavaPlugin add "implements Listener" and that will clear up your...
@nnx Start here
You have to explicitly kill the player yourself when you're setting damage. Test if the cHealth <= 0 and then kill the player. Also, it's better...
You put .toLowerCase() when making the lowerCmd variable, then you used capital letters in your switch statement for "fastAF" "nofastAF" and "Skelly"
@Matroxko The new Skill enum you made looks good, but you didn't really implement it in the best way. Since the enums hold their own String that...
Here it is with the part I mentioned: http://tutorials.jenkov.com/java/enums.html#enum-fields
@Matroxko The first step to solving might be to clean up your code with a better usage of enums like this: enum Skill {...
Maybe it's something with the worlds default GameMode? Have you tried changing the player's GameMode with a delay (like 1 tick or something)?
Right, have you plugged in some base values, like Point3D(0, 0, 1), and then tried to rotate it 90° and see what it says? Also, one concern I...
Have you confirmed all of your math works correctly for your Point3D class? Whenever I work with trig I always plug in numbers that I have already...
@l_MrBoom_l Couldn't you get the angle of either the yaw/pitch and use sin & cos?
@opd02 If you couldn't find anything better, you could check for all of the entities around the dispenser, cast the entity as TNTPrimed (after...
@Kozomo Not in their basic functionality. I'm pretty sure changing the EventPriority changes the order in which the event are called, so if...
@Kozomo Try using EventPriority
When you do the math for setting the damage test if it is below 0. If it is, kill the entity.
Separate names with a comma.