Oh, well that makes sense. Thank you!
Hey, I'm trying to change the text of a sign, but it doesn't seem to be working. Here is the code I am using. The Sign class I have imported...
Unless I missed it, it looks like the plugin variable you are using to access the getConfig() method is never set to anything. Try setting it in...
Remove all of the "return false;" statements, except the last one (at the end of the "fod" if statement). If you call return, it exits the method,...
You need to use PermissionAttachment. If you can get the player variable, through an event or command, you can use "PermissionAttachment...
In the PasteBin it looks like you are trying to override the onCommand method from JavaPlugin or CommandExecutor. The method only has one...
[IMG] IM-Admin provides a way for players to contact you when you are not signed in to Minecraft. The IM-Admin.jar is a plugin, but also a...
No it doesn't, but I guessed that the majority of plugins would use a listener, and I thought it would be more relevant than just a random class.
MyPlugin: public class MyPlugin extends JavaPlugin { private MyPlayerListener playerListener; @Override public void onEnable() {...
I guess the world or mob is null. Is the world defined in the config an actual world on the server, also, is the mob listed in the config...
When you add your defaults under onEnable your putting the : in the code. You dont need to do that, they are added automatically. Change this:...
It might be worth having a look in the Resources section, there are loads of good tutorials on creating a config file and getting the information....
You need to have the int in your config file for you to be able to get the value. Thats probably whats causing the NullPointerException. Does your...
Shouldnt this line: int exrad = plugin.getConfig().getInt("Egg explosion radius:", 2); Be this: int exrad = plugin.getConfig().getInt("Egg...
You create a new file object, check if it exists or not, and then use FileConfiguration to set and get the information and save and load the file....
Separate names with a comma.