Arrays start with 0, so if the length is 1, you can get spot 0, if the length is 2 you can get 0,1. You just need to change args to args
Just for future reference, the way to execute a command as console is:
You could try getting the UUID of the player, if the player doesn't exist on Mojang's side it will return null.
Here's a fun little class (taken...
The error isn't in getting inet, it's something with the reference to bannedIPs.
Ah! Duh, should of seen that in the stack trace. Haha. Man, this one baffles me. Loadconfiguration() is the only thing I'm thinking about right...
Hm, my only guess is you don't call loadConfiguration method? Try adding a log statement in it to see if it's actually called.
Why was this...
Well now you've got me. Dang. I'm gonna keep looking. Haha
Yep, I'm correct. Line 18, you make 'bannedIPs' but you never say what it is.
Can I see your BlockedIPList class, please.
I can't 100% say without seeing the whole control flow but I'm pretty sure it's not instantiated when you're calling the addWarning() method.
Where do you instantiate bannedIPs? I'm guessing it's not instantiated.
Could I see the stack trace please?
Your eye is much better than mine, :p. The YAML is odd looking but valid.
Add some Bukkit.getLogger("INFO"); statements in your logic so you can see where it stops executing, it will also help us find out where it's...
Alright, there's no need for you to be pedantic here, the issue is obviously Bukkit API, it would be different if OP was using Spigot method...
Its because you're trying to make another one of your plugins in the line
CheckForUpdate newInstance = new CheckForUpdate();
You can't do that...
I've done this before with the method you're using. One thing to check is the Bukkit version you're using. Also notice, names ARE CaSe SEnSitiVe.
Could you also post your main class that extends JavaPlugin? That way we can gave a look see at that getSQL() method.
I'd do something like this:
Check to see if world is in the config
Do the logic to do whatever it is you want
So your issue is, that when using setTarget() the zombies won't attack you after being spawned? Are they just not going after you, or something else?
Separate names with a comma.