Why do i need to reload the config? Since that is the first getConfig() method, the config is stored in instance of JavaPlugin.configFile. All the...
player events have a getPlayer() function to get the player that had the event. With the player, you can call sendMessage() to show them your...
right click project folder, click properties, open java build path, add the external jar. then open the hierarchy like i showed and you use the...
There's probably a lot of ways to do it. My way: You will need to overide the player events in bukkit and register them in a listener. You will...
Set the variables to public and why do this... Entity shooter = arrow.getShooter(); if (arrow.getShooter() instanceof...
If you are using Eclipse, the package explorer window starts on the left. Open it if it isn't. Then go to reference libraries and your jar will be...
Just pass the plugin as a parameter. That way it works with the same plugin but only passes the address of it....
public class MyPlugin extends JavaPlugin Also make sure to overide onEnable and onDisable even if they are empty. The getConfig() is under the...
The actual toggle commands for booleans in the config are a bit longer, I just wanted to give a simplified example. I'll post a snippit later,...
Register a listener in the onEnable event with the event PlayerJoinEvent. Then just do this... PlayerJoinEvent.getPlayer().setPlayerListName();...
With a config like this... Blocks: - id1 - id2 - id3 ... I think you can use getConfig().getList("Blocks") to get the list of ints. Just...
link as external jar and use the class hierarchy to browse it. Unless it comes with documentation, you are kind of just guessing what the classes...
I'm storing defaults in code so if they are missing they get added to the config. Problem is they aren't saving. boolean test = false; @Override...
http://wiki.bukkit.org/Portal:Developers start with setting up your workspace and then the general plugin tutorial.
I normally use this MySQLDatabase class i made. You're welcome to use it. Just replace the package name with your package. Remember to close all...
Separate names with a comma.