The files might not exist use File#exists() to check if they do and if they don't, use File#createNewFile() to create one
that returns the distance between block a and b...?
blockA.getLocation().distance(blockB.getLocation()); is this what you're looking for?
The very basic Killaura will hit an enemy at their exact eye location, this "sweet spot" is very hard to hit legit, you can check how precise...
This took a few clicks http://lmgtfy.com/?q=Bukkit+Bossbar+API
remove this part from the contructor if(!cancelled) { gun.fire(); } and then use this code whenever someone tries to shoot the gun, this...
Use PacketType.Play.Server.getInstance().values() to specify ALL packet types in the PacketAdapter Constructor new PacketAdapter(this,...
Use ProtocolLib
Another NullPointer https://bukkit.org/threads/how-to-read-stack-traces-and-troubleshoot-your-own-plugins-by-yourself.32457/ Caused by:...
Clearlag can also remove placed minecarts etc. to prevent users from spawning hundreds of them. Clearlag can also remove Items in intervals...
Vanilla minecraft already despawns dropped items after 5 minutes
In your HubHandler class, change if (block.getWorld().equals("HUBB")) { // Things } to if (block.getWorld().getName().equals("HUBB")) { //...
if (s.getLine(2).equalsIgnoreCase("§cSell Coa1l")); if (p.getInventory().contains(Material.COAL)); if you put a semi colon after an if statement,...
can we see the getAmount() method?
e.getDrops().add(myItemStack)
listen to entitydeath if the entity is a player set their health to 20 you don't need to cancel any event
InventoryClickEvent is called when the player clicks whenever he's in an inventory (even if he is clicking outside of the inventory) If that's the...
bannedBlocksString is public and static .-. use PlayerListener.bannedBlocksString in your Main class
you imported javax.tools.DocumentationTool.Location, import org.bukkit.Location
Instead of all of this getConfig().getString("hub").replaceAll("&0", ChatColor.BLACK + "").replaceAll("&1", ChatColor.DARK_BLUE +...
Separate names with a comma.