Skip to content

Commit

Permalink
Fix format parsing in /home (Fixes #5653)
Browse files Browse the repository at this point in the history
  • Loading branch information
JRoy committed Feb 10, 2024
1 parent 544f69a commit 3d9d3a3
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import com.earth2me.essentials.OfflinePlayerStub;
import com.earth2me.essentials.Trade;
import com.earth2me.essentials.User;
import com.earth2me.essentials.utils.AdventureUtil;
import com.earth2me.essentials.utils.StringUtil;
import io.papermc.lib.PaperLib;
import net.ess3.api.TranslatableException;
Expand Down Expand Up @@ -97,7 +98,7 @@ public void run(final Server server, final User user, final String commandLabel,
homes.add(user.playerTl("bedNull"));
}
}
user.sendTl("homes", StringUtil.joinList(homes), count, getHomeLimit(finalPlayer));
user.sendTl("homes", AdventureUtil.parsed(StringUtil.joinList(homes)), count, getHomeLimit(finalPlayer));
}
});
if (!player.getBase().isOnline() || player.getBase() instanceof OfflinePlayerStub) {
Expand Down

0 comments on commit 3d9d3a3

Please sign in to comment.