mirror of
				https://github.com/PlaceholderAPI/PlaceholderAPI
				synced 2025-10-31 06:12:28 +01:00 
			
		
		
		
	account for empty strings
This commit is contained in:
		| @@ -168,6 +168,9 @@ public final class CharsReplacer implements Replacer { | |||||||
|       builder.append(ChatColor.translateAlternateColorCodes('&', replacement)); |       builder.append(ChatColor.translateAlternateColorCodes('&', replacement)); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|  |     if (builder.length() == 0) { | ||||||
|  |       return ""; | ||||||
|  |     } | ||||||
|     char c = builder.charAt(builder.length() - 1); |     char c = builder.charAt(builder.length() - 1); | ||||||
|     if (c == ' ') { |     if (c == ' ') { | ||||||
|       return builder.substring(0, builder.length() - 1); |       return builder.substring(0, builder.length() - 1); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user