You need an @EventHandler before any function that is a listener (like your onBlockPlace function) You also have to register your events in your...
int countPlayersInKingdom(String kingdomName) { int count = 0; String[] val; for (String pName :...
Use the deprecated function updateInventory() whenever you change someone's inventory, like giving them a kit, and it will prevent the ghosted...
Actually it's very easy to do this. (As a plugin developer this is how I test changes to my plugin, by updating it live every time I change a bit...
He means an Auth plugin for offline-mode servers that let players set up an in-game auth password for their account in case someone logs into it,...
It's "Martial" Law, not "Marshall" law.
You did a good job checking if there was a killer (killer != null) before adding the potion effect, but you forgot to check it before you look for...
Each world keeps track of its own maximum build height. int mainWorldCeiling = getServer().getWorlds().get(0).getMaxHeight();
http://dev.bukkit.org/server-mods/worldborder/
something like: getServer().getScheduler().scheduleSyncRepeatingTask(this, new Runnable() { int clock = 120; public void run() { if...
Need to see your code.
if(e.getBlock.getTypeId == 1){ should be: if(e.getBlock().getTypeId() == 1){ or better yet (because it's more readable): if(e.getBlock().getType()...
Okay great! Exactly what I wanted to know. I will make a new version very quickly that has the nag message for ALL users, and I will take down the...
I am the author. The only difference between the free version (without a key) and the unlimited version (if you give me 5 bucks for a key) is the...
http://dev.bukkit.org/server-mods/vitals-plugin/
I'm partial to this one: http://dev.bukkit.org/server-mods/vitals-plugin/ Disclaimer: it's mine :P. It's designed to supplement essentials...
Don't combine them, keep the X midpoint and Z midpoint separate Say these are the coords of your polygon (x, z): 1,1 ; 1,5 ; 5, 1; 5, 5 Now say...
Compute the midpoint of X and Z by averaging the highest X and lowest X, and the highest Z and lowest Z. Then any coordinates that are on the half...
You could put the command "new" as a command for your plugin, then check if (args[0].equals("quest")) and lookup args[1] to see if it is a valid...
My plugin can do this: http://dev.bukkit.org/server-mods/vitals-plugin/ The feature is called UsefulCompass, if enabled it makes compasses ALWAYS...
Separate names with a comma.