mirror of
https://github.com/AuthMe/AuthMeReloaded.git
synced 2024-10-31 07:39:42 +01:00
Use String#replace over String#replaceAll (the latter uses regex)
This commit is contained in:
parent
f1bed873d5
commit
5b1d8c6429
@ -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);
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user