Sweet! Thanks Digi, it works perfectly now. :)
So I changed it to Material.WOOL, but what is the code for the dye? Material.ROSE_RED doesn't exist, and Material.RED_ROSE is for a red rose. I...
I cannot seem to figure out what the code would be for doing this. I am currently using if(p.getItemInHand().getType().equals(DyeColor.RED)) {...
I will try this out. This isn't my first plugin, I know how setting health and getting items and stuff works, I just wasn't sure which event is...
I'm trying to make it in my server when you left click a player with paper, you heal them, but what is leaving me stuck is how to do this. I don't...
I actually went back and fixed my previous code so it would do the same thing. Made it drop their entire inventory by doing a for loop, and then...
The error is gone, I probably would have been able to figure out that easy error had I ever used the Scheduler before. I will now test on my...
Yeah, I changed it to Bukkit.getSchedualer(), however a new error appeared, this time underlining the "scheduleSyncDelayedTask" part. The error...
This is the only problem with the code that I have encountered. "The method getServer() is undefined for the type playerOnDeathListener"...
I will have to try this out on my server, this looks interesting.
Actually, the "p.getInventory().clear();" line works for clearing their entire inventory, however you are right that their armor doesn't get...
I tested it out on my server, it works except it puts their health and hunger at half, so I fixed this by updating the setHealth and setFoodLevel...
Alright, PlayerDamageEvent doesn't exist, so I used EntityDamageEvent, then checked if the entity is a player, converted it to a player and ran...
Nope, it every time underlines it in red and says that setCancelled is undefined for PlayerDeathEvent. I also tried it with EntityDeathEvent and...
I seem to be having an issue with cancelling the event. The PlayerDeathEvent doesn't seem to be cancellable. "The method setCancelled(boolean)...
Ah, I did not think of doing this. Thanks man for the fast reply and good advice.
Hello, is it possible to skip the screen that appears when you die (with the "Respawn" and "Title Screen" buttons). I'm making a plugin for a...
Separate names with a comma.