Aha! Indentation problem, by default, netbeans uses 4 spaces for yml, plugin.yml uses only 2 spaces, dont know why this became a problem just with...
Its been a while since I last used the bukkit API and now im facing this little problem, I usually register command aliases in the plugin.yml like...
Try removing this and see if the lag stops: @EventHandler public void onTeleport(PlayerTeleportEvent event) {...
Use \n to set new lines. getConfig().options().header("## line 1 ## \n ## line 2 ## \n # lin3..... ").copyHeader(true);
Before using the 'saveConfig', use the getConfig().options().header("the stuff here"); first, then the copyHeader(true). then saveConfig().. see...
Try "getConfig().options().copyHeader(true);"
Change this: ItemStack Blaze = new ItemStack(Material.BLAZE_ROD); if(((Player) selector).getItemInHand() == Blaze) { To this: if(((Player)...
if(config.getString(t.getName()).equals(s.getName())) {
Using SQLite, here: http://forums.bukkit.org/threads/quick-simple-sqlite.170153/ You can use the same queries as youd use on mysql.
This might work: Random rnd = new Random(101); if (rnd.nextInt(101) <= 33) { // 33% of change of doind something }
in my opnion this is the best method you could use. But I think your code wont work, static references are the same on every instance, which...
maxZ should always be bigger, anyway... Change this: To this: return rnd.nextInt(Math.abs(max - min)) + max; // get a new random number...
I think it is pretty simple, just cancel the chat event and store the message in some kind of list, and the head of this list will be the fixed...
what is a HUD Chat?
I'm not sure if this will work, but give it a try: Location start... // the first point Location end... // the second point public Location...
I'm guessing it was not discontinued, just not updated.
I think this method wont work, because if the player moves just a little bit it wont match the location inside the prisoners list. My ideia is...
Ive made some changes in some methods of both classes, comments inside. PlayerFile code: [spoiler] Economy code: [spoiler] See what you...
Sorry, just change to "world.getEntities()" to "world.getEntities().iterator()"; You can't remove the element while interacting with the for...
Leys say your main class is called MainClass and you need to access the list on the class called OtherClass. [spoiler] Or you could try...
Separate names with a comma.