mirror of
https://github.com/EssentialsX/Essentials.git
synced 2025-02-02 05:21:52 +01:00
parent
8d07c4bb0f
commit
8b2c7d7ad1
@ -383,7 +383,7 @@ public class KeywordReplacer implements IText {
|
||||
|
||||
if (this.replaceSpacesWithUnderscores) {
|
||||
// Don't replace spaces with underscores in command nor escape underscores.
|
||||
if (line.startsWith("/")) {
|
||||
if (!line.startsWith("/")) {
|
||||
replacer = replacer.replace("_", "\\_").replaceAll("\\s", "_");
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user