@bwfcwalshy public class DogsCommand extends EQCommand { int range = 20; public static HashMap<UUID, ArrayList<Wolf>> playerDogs = new...
Hello, The following code does not work as expected: dog.setSitting(false); plugin.logger.info("dog is sitting: "+dog.isSitting()); The info...
I did try it before I started casting it into YamlConfiguration. I eventually started just roughly loading the config file by myself and...
getConfig() is a method that does things, and I don't need to do those things if I simply want to read/modify data - so I store the...
Hello, I have this little problem - I sometimes need to add or move around stuff in the plugin's config file, but whenever I save the file, the...
RegalMachine 80 times a second? MC runs at 20 ticks per second. You're doing 4 runs on the same data that does not change during the length of a tick.
Will there be a recommended build of this, or will we be waiting for 1.8?
desht It is indeed 0. But how does that make sense? How can I create an ItemStack, store it, and have it of 0 quantity? EDIT: I get the...
Hello! The most peculiar bug happened to me - while using the addItem() method, the given item vanished after right clicking. The item is being...
If it returns null, that usually means that the player isn't there. If you're looking to check for even offline players, use...
Bukkit.getPlayer(player).getInventory
Adriani6 You need to set a Collection or Array that will hold the positions for you, and check with that. No other reliable way around that for...
jusjus112 The getContents returns an array. Arrays are fixed size, hence you will always get a specific number, regardless of the number of null...
xXRobbie21Xx use debug messages to see if your code gets fired at all.
GeorgeeeHD You need to understand how a for loop works first. It will iterate through all the coordinates, so naturally all the blocks will be...
shohouku You bind the spawning of a skeleton to a spawning event. So each skeleton will spawn 2 more skeletons, with each skeleton spawning...
Define map. As in, paste a group of blocks? Then yes, schematics would be a good idea.
If they have the same name, this error will be thrown. The loader doesn't care about the guts, it needs to run and register the plugin according...
GreatBlitz Learn to read the stack trace. Your plugin is null. You didn't set the private field in a constructor.
coasterman10 Performance wise, any one dimensional array is faster than a multidimensional one :P But yeah, for arrays that don't change their...
Separate names with a comma.