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);
|
player.kickPlayer(reason);
|
||||||
} else {
|
} else {
|
||||||
String command = customCommand
|
String command = customCommand
|
||||||
.replaceAll("%player%", name)
|
.replace("%player%", name)
|
||||||
.replaceAll("%ip%", ip);
|
.replace("%ip%", ip);
|
||||||
bukkitService.dispatchConsoleCommand(command);
|
bukkitService.dispatchConsoleCommand(command);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user