Use String#replace over String#replaceAll (the latter uses regex)

This commit is contained in:
ljacqu 2017-10-08 17:32:05 +02:00
parent f1bed873d5
commit 5b1d8c6429

View File

@ -109,8 +109,8 @@ public class TempbanManager implements SettingsDependent, HasCleanup {
player.kickPlayer(reason);
} else {
String command = customCommand
.replaceAll("%player%", name)
.replaceAll("%ip%", ip);
.replace("%player%", name)
.replace("%ip%", ip);
bukkitService.dispatchConsoleCommand(command);
}
});