if(teleported.getLocation().getBlockX() >= (locationX-2) && teleported.getLocation().getBlockX()<= (locationX+2)) { //code to be run }
Did you add deathForDiseases to DarkRangerConfig? i.e. ; public class DarkRangerConfig extends Config { public DarkRangerConfig(Plugin...
Use args[0].equalsIgnoreCase("reload").
Assuming you added the variable to the config;if(config.Death-For-Diseases) { target.setHealth(0); } Btw, when naming variables you really...
Bukkit.getServer().getOnlinePlayers();
1. There's a button in the WYSIWYG Editor that looks like a chain, that's the link button. Type some text, highlight it, then hit that button. A...
Sorry, not my area. I've only dealt with bukkit plugins so far. You can ask someone else here, or you might want to check out the Minecraft Forum...
So apparently the problem is that the command 'spiderapocalypse' isn't defined correctly in your plugin.yml.
World.getHighestBlockYAt()
Ok, first off all you should use the [ SYNTAX=JAVA ] tag when posting code when line numbers are important. I really need to know exactly which...
Ok, so this isn't really a version error but a NullPointerException. For future reference you might want to read How to read stack-traces. Post...
What's saying it's not up to date? SuperEasyConfig doesn't have anything to do with any version tracking, so it's probably something else you did....
Change config = new DarkRangerConfig(); to config = new DarkRangerConfig(this);. You need to pass your plugin to your config, so it knows which...
If you're going to look into using packets I'd recommend using ProtocolLib. Best packet lib I can find as of this post, and Comphenix has been...
Yea, you can name the class anything, as long as it extends Config.
... Configuration API Reference : Getting Values
Really I can't explain the default configuration api any better than http://wiki.bukkit.org/Configuration_API_Reference. If it proves too...
Make sure you're bukkit version is up to date and spawnEntity should work fine. I think it's kinda new, sense maybe MC 1.2. Don't really know....
For 1 and 2 see this: http://wiki.bukkit.org/Configuration_API_Reference For 3 the line World.spawnEntity(EntityType.ZOMBIE, args[0]); is all...
.trim() gets rid of white space (spaces) on the front and back of the string. Without it you would have an extra space at the beginning of the...
Separate names with a comma.