Simply amazing! This will really come in handy for a particular project I'm working on -- thanks!
Is there any particular reason as to why you're casting a String to a Map?
Once Spout is released, you could very well create your own mobs. ;)
Thanks for the reply! I was under the impression that the returned ItemStack would reference the same location in memory, so I figured the '=='...
Here's my current situation: I'm grabbing an ItemStack from a specific slot in a player's inventory, but the ItemStack that is returned isn't the...
If the player "sticks" to, let's say, a block in the air, wouldn't cancelling the event be similar to just teleporting them back to the location...
Any suggestion on how to go about "sticking" a player to a particular location? I could of course keep teleporting a player to a location, but I...
Just grab a key from the map and you should be able to get their inventory: inventories.get(player.getName())...
Thanks for the clarification. :)
First off - awesome job Comphenix! ;) This sure is handy. I was hoping you'd be able to answer a question for me though. I'm a little confused as...
I'm just as confused. I just updated and everything seems to work fine.
Sure.
Perhaps something like this: final int timer = Bukkit.getScheduler().scheduleSyncRepeatingTask(plugin, new Runnable() { int count = 100 //...
I'd like to check if a player is directly in another player's direction. I'm also checking if the players are within a certain distance from each...
I do believe I fixed it. I was setting the MaterialData rather than the data itself. Below is how I fixed the issue: Instead of doing this:...
I recently stumbled upon this particular thread detailing how to get a block's data during a block place event:...
I'd just like to add a little somethin' I found: I could get the blocks within a player's line of sight, but I still need to check if the block in...
Let's say I'm holding the location of a player and would like to check if said player's location was within two blocks of another player's...
You mean when a player attempts to drop an item? Just listen for PlayerDropItemEvent and cancel it.
Ah, so I'm looking got MapList instead.
Separate names with a comma.