Well it's easier to have a wrapper for all the data instead of having to get them directly from the .dat.
It gets a Player instance from a UUID or String, and yes, it loads it from the .dat file afaik.
This is awesome! Should people run the loadPlayer() method in another thread though?
So why not just use CraftItemStack.asNMSCopy(stack).getName() ?
Ok I didn't really use Maven until now, and I wanted to know how to shade this.
What about data values?
for (Abilities a : Abilities.values()) i guess
@Rabrg Do you only need this for mining? If so listen to a BlockBreakEvent, get the blocks and the relatives?
Spawn the Item, set the pickup delay to 2 ticks, add it to a Set, set its velocity to the player's direction, then on pickup you'd want to check...
Nice :)
I use this class I made: http://hastebin.com/noqemohuda.java You put an instance of that in a HashMap with the player's UUID as the key, and then...
I know this thread is old, but I was using your library for some time, today I discovered this: public static String getName(ItemStack stack) {...
There's also the ServerCommandEvent, which fires when the console executes a command, I'm not sure if it fires when command blocks do.
This is way better than UUIDFetcher in my opinion, simply because the names aren't case-sensitive :D
Well a critical hit happens when a player hits an entity while not on ground and falling, so: if(!((Entity)player).isOnGround() &&...
Separate names with a comma.