From 28b268e1756289aa19a77f18e2e2f5e6a2d8293e Mon Sep 17 00:00:00 2001 From: Auxilor Date: Wed, 28 Sep 2022 12:38:38 +0100 Subject: [PATCH] Added %player% to configslot --- .../main/java/com/willfp/eco/core/gui/slot/ConfigSlot.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eco-api/src/main/java/com/willfp/eco/core/gui/slot/ConfigSlot.java b/eco-api/src/main/java/com/willfp/eco/core/gui/slot/ConfigSlot.java index bf92cddb..2642ddc3 100644 --- a/eco-api/src/main/java/com/willfp/eco/core/gui/slot/ConfigSlot.java +++ b/eco-api/src/main/java/com/willfp/eco/core/gui/slot/ConfigSlot.java @@ -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()) ); } }