You can do a for loop for all the keys in the warps section of the config.
Don't store players in Arraylists, it might cause a memoryleak
Instead of using getType() == EntityType.PLAYER you can use getType() instanceof Player I don't know if this will fix the issue but it's worth a try
No need to use p.chat(string), you can use Bukkit.dispatchCommand(p, "espawn") In the for loop, you don't have a {, and you're returning inside...
You can use the built in Bukkit scoreboard API and create teams with prefixes
First off, you're not returning correctly. Second off, you're storing players in an arraylist, which could cause memory leaks
You could use StringUtils.join to make this easier.
if(Ints.tryParse(args[0]) == null)
EDIT: I figured it out I've been working on a point system with a capzone. It works the first time, but when I remove the player from the...
I need to be able to rollback the potion effects a player had. If a special player holds sugar it will give the players around them speed for...
The effect will be updated tho, so if you have it, you can get more time, so a timer wouldnt work
How can I check when a potion effect expires? I need to add back the potion effects the players given the effect had before the effect was given....
It worked with that method :)
It's not the main config.......
It works to put the uuid and the int in the config, but it doesn't work to get it
Separate names with a comma.