Ok I'm not sure if I am doing this right or not. I made a EntityDamageListener class and put this in it @EventHandler public void...
Ahh yes, forgot about the refresh. I'll see if that works.
Thanks for the java syntax. It is still not working. Here is the code: @EventHandler (priority = EventPriority.HIGHEST) public void...
Okay I got it working, but I am having trouble changing the colour of a players tag depending on their health. This is the code I have:...
Would it be more along the lines of: Player player = event.getPlayer(); And how do you get java code on forum posts, all I can get is general...
I'm having some trouble, I am trying to set the colour of a player's tag depending on their health. Here is what I have so far: @EventHandler...
Ohh right, cause I am doing something where players can see how long they have been alive. I'm using .getTicksLived() and I wanted to convert the...
Okay thanks, I'll see what I can do with that.
How would you convert ticks into seconds or minutes?
For out plugin we are creating different lang files for people to use, (so far we have an english lang file). Where would I go to get it translated?...
I don't want exact code, I just need a bit of help understanding how to lay it out and if I can do it in one class file. I am learning java, I know...
Okay, thanks anyway.
Thanks, that works. Is there a way to put the item back if a player presses E and drags the item out of the inventory. When I did it i still got the...
I think that's more for items being dropped from blocks. I mean items being dropped from an inventory, as in someone holding a stick for example and...
Is there a way to disallow items being dropped and have a message saying "You cannot drop items"?
Right here is what I want to do: Admin has server with three arenas. Admin sets the spawn points for each arena, names them a1, a1 and a3 A...
Thanks Ahmet, that works. Thanks for the help guys.
Okay, getting kinda confused now and getting my code mixed up. What is the code I need to use the EntityDamageByEntityEvent.
As in right click on a player. This is the code I have now. @EventHandler public void onPlayerHit(EntityDamageByEntityEvent event){...
Just tested it, it didn't work. Nothing happened when I clicked on the player.
Separate names with a comma.