I have no idea how to do that I will google it rn, if i cant find it i will come back :D EDIT: I couldnt find anything but just one forum post...
thanks, i will try that :D OK i just tried it, it doesnt really change anything and I dont know why? Maybe I wrote it wrong? Code: @EventHandler...
Here is the code: Location location = event.getFrom(); Location recentLocation = player.getLocation();...
@KarimAKL I changed it to equals and now, it wont place it if im sprinting for some reason?
@KarimAKL I tried this rn, doesnt change anything for some reason? Code: Location location = event.getFrom(); Location recentLocation =...
@KarimAKL How can i do that? I tried this: if(location < recentLocation) { location.getBlock().setType(Material.BEDROCK); } But it...
@KarimAKL Thanks, but when i try this, it wont place the block behind me. Instead it will place it on the player, causing them to suffocate and...
@KarimAKL OK, but how do I get the block behind the player?? To get the location i could use getLocation(); , but how do I get the block behind...
I am trying to add something to my plugin so it will place 2 obsidian blocks behind you when you walk. How can I do this? I know I need to use it...
Hi, Thanks for replying again :D. I wrote some code, but I dont know if it will work or not. I dont have my main laptop with me, so I wrote this...
How do I do that? I tried it a bit for like 15 minutes, but I cant find anything. Maybe player.getClass()?? But when I try that it gives an error.
Ok but how do I apply damage to the player? I can not find it out. If it was a Player player, i could to this: player.setHealth(player.getHealth()...
@timtower thanks! @timtower Ok I just had the time to try this, but it doesnt work? Here is my code: @EventHandler public void...
I am trying to make a plugin where everything is harder and I want to add something like this: If the player touches lava, they instantly get...
Separate names with a comma.