Why not first check if the item in hand isn't null, then check if it has an item meta and has a display name.
Hmm... Weird doesn't seem to work.
String stat = sign.getLine(1).split(": ");
if (StatisticType.getStatType(stat) != null)
Used println to...
I don't think that will work when getting the stat name. How do you get it like this:
if (StatisticType.getStatType(sign.getLine(1).replace(?, ?))...
Using .split(":"); won't really work because there is a space. Shots: 7926.
How to get the stat type? Like shots or kills without anything else
I'm working on my mini game plugin and decided to create just a simple leaderboard signs with the format:
Line 1: Prefix
Listen for PlayerMoveEvent and check if the player is inside a boat and then simply multiply its velocity. Not sure if that would work :P
So basically I'm working on a mini-game and I''m trying to create a countdown for the lobby waiting time and I'm trying to make it so for...
Thanks man this is really useful, I was looking for something like this in awhile. One question tho! I haven't tested it but does the location...
I don't think you can place armor stands in water.
First - Create a HashMap (Not an ArrayList) storing the NPC as a key and itemstack as a value. This will store all player's inventory contents....
Listen for PlayerQuitEvent, check if he was tagged if he is then store his inventory items in the HashMap after that do the rest as I said above.
Separate names with a comma.