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...
Alright, I was also wondering how I would go about doing it asynchronously? Do I use a bukkit scheduler method or something else?
So, in my plugin I'm executing SQL quite a bit. In events, commands, and pretty much everywhere else. Well, my server gets pretty laggy with more...
Alright, well I've tried this: public ArrayList<Arrow> shotgunArrows = new ArrayList<Arrow>(); @EventHandler public void...
So, what I'm pretty much trying to do is create a big bunch of arrows to shoot when you shoot your bow. This is my code: @EventHandler...
Yeah, I've had this issue reported and I can't seem to fix it... Just have them do /spectate inv off for now.
Very nice, but I was just wondering if it was possible to get rid of that space at the end of a name?
Separate names with a comma.