Added %player% to configslot

This commit is contained in:
Auxilor
2022-09-28 12:38:38 +01:00
parent 33937d1ce7
commit 28b268e175

View File

@@ -102,12 +102,12 @@ public class ConfigSlot extends CustomSlot {
if (console()) {
Bukkit.dispatchCommand(
Bukkit.getConsoleSender(),
command()
command().replace("%player%", player.getName())
);
} else {
Bukkit.dispatchCommand(
player,
command()
command().replace("%player%", player.getName())
);
}
}