Skip to content

Commit

Permalink
Merge branch 'fix/setjs'
Browse files Browse the repository at this point in the history
  • Loading branch information
Lorenzo0111 committed Dec 28, 2022
2 parents 1489ea5 + 4e2c734 commit aef3eed
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {

Expand Down

0 comments on commit aef3eed

Please sign in to comment.