Your "tw" variable is global and you never clear it. Each time you set up the item you add lines to it and it will keep growing. Either clear it...
Yes, because of the second part of my response. You set the type/data of the blocks incorrectly. Assuming your a.getBlocks() method is correct,...
Well, with BlockState you need to call apply() to make a change. Also, with your code it seems you set each block to all of the types and datas in...
looks fine
Saving an ArrayList of strings to a config section: config.set(key, list); Loading an List of strings from a config section: List<String> list =...
If it's an ArrayList of a primitive like integers, doubles, or even strings, you can just set it to the config normally and there's getters for...
BlockState state = block.getState(); MaterialData data = state.getData(); if (data instanceof Wool) { ((Wool) data).setColor(DyeColor.RED);...
could just get the location of the problem, loop through the players, and do playerLoc.distanceSquared(source) < 1600 to check if the player is in...
I haven't done too much with this but try getting the BlockState once, setting everything to that instance, and updating that instead of getting...
So I've been working on a project for awhile and it has worked fine for the longest time. Suddenly, without changing Bukkit versions, my events...
That was for checking if a location is within a provided radius of another location. To get all of the locations within a radius of a center...
center.distanceSquared(l) < radius * radius
public class Listeners implements Listener { public Listeners(Ijoin plugin) { plugin.getServer().getPluginManager().registerEvents(this,...
Do not create another instance of your plugin, make a constructor that takes a reference instead Use the @EventHandler annotation above every...
then just do startsWith(String) The thing I told you to replace with .equals(String) is when you compare using == when you check it against the...
Separate names with a comma.