From b53589b0b1517c5e3c3a353ea630ea2cb139b0e9 Mon Sep 17 00:00:00 2001 From: bedge117 <77640477+bedge117@users.noreply.github.com> Date: Fri, 13 Feb 2026 18:07:26 -0600 Subject: [PATCH] Fix cross-server spawner list showing N/A for last accessed The cross-server spawner item builder was hardcoding "N/A" for the last_player placeholder instead of using the actual data from CrossServerSpawnerData, which was already correctly loaded from the DB. Co-Authored-By: Claude Opus 4.6 --- .../nighter/smartspawner/commands/list/ListSubCommand.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/src/main/java/github/nighter/smartspawner/commands/list/ListSubCommand.java b/core/src/main/java/github/nighter/smartspawner/commands/list/ListSubCommand.java index 290c5e69..b719eab3 100644 --- a/core/src/main/java/github/nighter/smartspawner/commands/list/ListSubCommand.java +++ b/core/src/main/java/github/nighter/smartspawner/commands/list/ListSubCommand.java @@ -837,7 +837,8 @@ private ItemStack createCrossServerSpawnerItem(CrossServerSpawnerData spawner, S placeholders.put("x", String.valueOf(spawner.getLocX())); placeholders.put("y", String.valueOf(spawner.getLocY())); placeholders.put("z", String.valueOf(spawner.getLocZ())); - placeholders.put("last_player", "N/A"); + String lastPlayer = spawner.getLastInteractedPlayer(); + placeholders.put("last_player", lastPlayer != null ? lastPlayer : "None"); ItemStack spawnerItem;