Revert "Add {PLAYER} placeholder with uppercase in kits (#2929)" (#3072)

This reverts commit 90c4a2f53c.
This commit is contained in:
triagonal 2020-03-15 16:49:48 +11:00 committed by GitHub
parent 90c4a2f53c
commit a782043798
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -163,7 +163,7 @@ public class Kit {
if (kitItem.startsWith("/")) {
String command = kitItem.substring(1);
String name = user.getName();
command = command.replaceAll("{(?:player|PLAYER)}", name);
command = command.replace("{player}", name);
Bukkit.dispatchCommand(Bukkit.getConsoleSender(), command);
continue;
}