diff --git a/src/main/java/me/lorenzo0111/rocketplaceholders/command/subcommands/SetJSCommand.java b/src/main/java/me/lorenzo0111/rocketplaceholders/command/subcommands/SetJSCommand.java index e0cfb6a..6789444 100644 --- a/src/main/java/me/lorenzo0111/rocketplaceholders/command/subcommands/SetJSCommand.java +++ b/src/main/java/me/lorenzo0111/rocketplaceholders/command/subcommands/SetJSCommand.java @@ -81,10 +81,10 @@ public void perform(CommandSender sender, String[] args) { } builder.deleteCharAt(builder.length() - 1); - engine.bind("Player", sender); - engine.bind("Server", Bukkit.getServer()); - engine.bind("Placeholder", placeholder); try { + engine.bind("Player", user != null ? user : sender); + engine.bind("Server", Bukkit.getServer()); + engine.bind("Placeholder", placeholder); String text = engine.parse(builder.toString()); if (text != null) {