Yes, but you can get the date/time that the cooldown started (or the date/time the cooldown expires), store that and then keep comparing it to the...
Unix time would be better for this.
You need to include type parameters in the Map declaration for creatureSetter, i.e. Map<Type,Type>.
%p and event.getPlayer() aren't Strings (or CharSequences). You need to use the string you wish to replace and the name of the player, not the...
You can use string.replace() to replace "%p" in the retrieved string from config with the player name.
Try Set<String> instead of Set.
Well, the server can be written in any language that can accept connections through sockets. There used to be a wide range of custom server...
I think he means multiple event listeners in the same class, not a custom event. @satarskrin Yes, you can. Just remember to use the @EventHandler...
Use e.setCancelled(), not p.setHealth(). You can also use e.getCause() to check if the damage is from falling.
Because standard Java map implementations are many-to-one mappings. If two players have the same number of kills, you can't represent that as a...
Ah okay, was confused by the name. I thought ignoreCancelled implied it would ignore the cancellation of an event, not ignore cancelled events.
Problem is what you suggested wouldn't work; even if it did there are much cleaner ways to do that using TreeMaps. Writing a comparator for value...
A cleaner way would just be to set a string to either '.' or ',' depending on whether it was the last element then append that to s + it.next().
No, you have to move the check for it.hasNext() to after you call it.next().
Move the check to after the s = s + it.next() + ", "; line. it.hasNext() will only return false after it.next() returns the last element.
Separate names with a comma.