Hey, I'm a little confused about how player.getLocation().getDirection() works, and everything about vectors, so I was wondering how I would go...
Hey, I was wondering if there was an event for when blocks are broken when they're attached to a block that turns into a falling block? For...
Sure, I can get a github set up in a bit.
I'm pretty tired and I have to get back to working on some stuff, so this is the best I could do as a demonstration for now: [media]
Already working on something like this, just trying to find a way to store the data without using up too much ram or hard drive space. I talked...
You can use this: world.createExplosion(location, 1); I think the "1" value is the size of the explosion.
Hey. In my plugin I don't want players going anywhere near water. I've got a system that will teleport them out of water, but I also don't want...
I use this in my plugin for K/D: public double roundTwoDecimals(double d) { DecimalFormat twoDForm = new DecimalFormat("#.##");...
Hey, I'm making a plugin which opens a custom inventory for the player when they type in a command, and when the inventory is open, one of the...
It works fine, the only problems I have right now is that when you shoot the arrows, wherever they originate is where the server thinks they...
I fixed it, this is my code: for (int i = 6; i > 0; i--) { Arrow a = event.getPlayer().launchProjectile(Arrow.class);...
Would that actually fix it...?
Hey, I'm trying to code a plugin that makes it so when a player shoots a bow, it spawns 6 arrows. The problem is, I can't get the offset to work....
That only works if they're within 16 blocks of the player. I have some code I'm actually using for my own tower defense plugin, but it's on my...
Separate names with a comma.