Just check number of players at connect and then kick player if server is full & player is non-OP Then you set your maxplayers at server level to...
How I do to enumerate all available worlds on a server at start? This should include nether, theend and such, and also all "extra worlds" on a...
Thanks. I did this instead: public class ChunkAutoClaimer extends JavaPlugin implements Listener, Runnable { public void onEnable() {...
s.sendMessage(ChatColor.RED + "Coords: " + player2.getLocation().toString()); Try it. If it wont work, try player2.getLocation() only. Also...
How I do to read config belongning to a another plugin via getConfig()? The plugin in question does not need any "own" config, so I want to...
Could anyone verify this issue? If its true and unfixed, I could add a check that checks if its not air above the chest, and thus not open the...
Now I updated this to Version 1.6, adding Wilderness protection. Just waiting for approval.
Thats not possible without modifying indivual packets. You will need something that decides "active player". For example you can use nearest...
How you gonna detect which player is which? nearest player? Player press button to read "his" stats?
Cannot find this somewhere. If I want to get the height of a placed block, should I get its X coordinate, Y coordinate or Z coordinate? I guess...
Yep, updateInventory does work currently, without using setItemInHand. But wonder, since the method is depreciated, bukkit dev team might remove...
How I do to resend what its in hand? SetItemInHand wont work, seems like its executed before event finalization. Also tried with getScheduler...
I think this depends on the order the block are spawned in, for example if you "load" the ladder before the block behind it, the ladder will spawn...
Here is my code: @SuppressWarnings("unchecked") @EventHandler public void onPlayerEmptyBucket (PlayerBucketEmptyEvent event) { ArrayList<String>...
You are using the wrong command if (args.length == 3) { if(args[0].equalsIgnoreCase("kick") ||...
Ill prefer not to use Git and/or auto-publish/autopackager, they always spit out some error or wont do whatever you want. I would suggest you do...
@garrett2smart87 : aha now I understand. I tought he meant that I just should make a thread pointing to BukkitDev just for making sure the plugin...
garrett2smart87 : http://forums.bukkit.org/threads/moving-to-bukkitdev-phasing-out-the-plugin-submissions-releases-forums.41022/ "For the time...
jeffro1001 : Nope. The server cannot "see" if the client is using X-ray, so the server CPU/RAM utilisation is exactly the same, regardless of if...
Here is my code: @EventHandler public void ignitefire (BlockIgniteEvent e) { if (!e.isCancelled()) { if (!allowFireSpread) {...
Separate names with a comma.