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...
Separate names with a comma.