Fair enough. Can't think of how it'd throw an NPE, but I'll take your word for it XD
I didn't think Bukkit did, but rather Essentials does
His BlockBreakHandler was initialized on every PlayerJoinEvent prior to him editing the code, which was blanking out his HashMap that was stored...
Yeah, I'm assuming you mean over /reload, but I mealt this a bit differently. I think there was a HashMap in a class that was initialized on...
Yeah, I think it's fine since they're always going to be the same object, not being something that can be instantiated or re-assigned. Although it...
Don't use ==, use .equalsIgnoreCase() or .equals() if you need the case-sensitivity. There IS a difference. The '==' checks if non primitive data...
Use the scheduler as you have been and use the remove() method for the Sheep. Note that when accessing variables outside a scheduler block from...
You may make sure that another plugin isn't cancelling spawn events for entities. Primarily WorldGuard or Multiverse
Not likely. The sheep's color doesn't technically change, it's a client-side effect, but the sheep's color is technically always the same. The...
Why are you initializing a scheduler variable, then trying to get one by initializing the NyanSheep class? You probably want to do...
If you wrap that in and it's a bit easier to read XD Also, 20L is one second in ticks. 10L is half a second.
Posting your attempt is usually preferable, to help us understand what you've managed so far. I'd say yes, although this forum community is...
Not tested, but I would likely have a method to fetch a random int, and get a value from DyeColor.values() using that int. i.e. DyeColor...
World#spawnEntity(Location, EntityType) to spawn the sheep, which will return an Entity. Cast it to a Sheep and use the Sheep#setColor(DyeColor)...
That depends on the plugin. Not familiar with PermissionsBukkit (what he said he used), but I know that GroupManager can optionally give Op all perms.
Instead of simply checking for a permission, you may also need to check if the sender is an instance of a BlockCommandSender (for command blocks)...
Can you repost the class with the code you have now? Can't tell much from that. You can still make that shorter by using: ItemStack helmet =...
Is that not the code you already have in place? Short of the sound at least. The sound bit depends heavily on what sounds are available, but I...
Please include the stack trace and note which line in the code it's pointing to, if you can.
Use AND operator to check if it isn't null, AND to check if it's type is glass, as I put in my answer above (edited). You MUST check if it isn't...
Separate names with a comma.