I'm getting this error: 'The method replace(char, char) in the type String is not applicable for the arguments (String, int)' for this code: Anyone able to help with this? Thanks in advance.
add String.valueOf() around Bukkit.getOnlinePlayers().size(); (so: String.valueOf(Bukkit.getOnlinePlayers().size())
Derugo The replace method is used for replacing all characters in a String with another character. You want replaceAll (for replacing all occurrences of a String in a String with another String) or replaceFirst (for doing the same but just with the first occurrence). You probably want replaceAll. edit: also what Datdenkikniet said (ninja'd)