Read this: Caused by: java.lang.ArrayIndexOutOfBoundsException: 0 at...
https://forums.bukkit.org/threads/lookat-and-move-functions.26768/ Use the lookAt function, and then just teleport the player. That will also...
Block block = //Get block from somewhere. Location loc = block.getLocation(); //Green wool player1.sendBlockChange(loc, Material.WOOL, (byte) 5);...
Cancelling the ProjectileHitEvent might work.
Surely it is possible to spawn in players, but there are issues with this: It might create side effects because other plugins are not prepared to...
Well hello, I'm looking into a possible to save a region at a specific date and roll it back at a later date. I've tried using BlockState's, but...
This method will block the main thread for 1.5 secs if no response. You should probably do one with an async callback.
Hello, according to the Bukkit JavaDocs the sqrt() function is very costly. I have always used the distanceSquared() function when possible, but...
The problem here is: I can not catch the event in the second Plugin, except if I do not cancel it.
2MBKindiegames The second one is never executed, except if the player has the permission. According to...
event.getPlayer().setHealth(((Damageable) event.getPlayer()).getHealth() + 4.0);
Hello, I am not sure whether this is a bug or I am just overlooking something. Let's assume for this case I have two plugins, Plugin A and...
You can use that one, but you need to make sure that the players returned are actually online.
If that works, I'm more than happy to implement it.
Hello, this might sound like a noob question, so before you go and answer player.setFireTicks(0), read the post. What I am doing is checking...
Separate names with a comma.