Removes the replacement of spaces to underscores for the cleanString method
Some checks failed
EpicKnarvik97/Stargate/pipeline/head There was a failure building this commit

This commit is contained in:
Kristian Knarvik 2021-11-13 17:04:13 +01:00
parent e1a3d2d560
commit 51f5420f9e
2 changed files with 3 additions and 4 deletions

View File

@ -304,8 +304,7 @@ public class Portal {
* @return <p>The clean string</p>
*/
public static String cleanString(String string) {
string = ChatColor.stripColor(ChatColor.translateAlternateColorCodes('&', string));
return string.toLowerCase().replace(' ', '_');
return ChatColor.stripColor(ChatColor.translateAlternateColorCodes('&', string)).toLowerCase();
}
@Override