forgor to change the thingy to use CommandException
This commit is contained in:
parent
d0f0911f8c
commit
a4f7b0e6a8
1 changed files with 2 additions and 2 deletions
|
@ -43,10 +43,10 @@ public class SeenCommand extends Command {
|
||||||
}
|
}
|
||||||
|
|
||||||
final JsonElement playerElement = PlayersPersistentDataPlugin.playersObject.get(player);
|
final JsonElement playerElement = PlayersPersistentDataPlugin.playersObject.get(player);
|
||||||
if (playerElement == null) return Component.translatable(
|
if (playerElement == null) throw new CommandException(Component.translatable(
|
||||||
"%s was never seen",
|
"%s was never seen",
|
||||||
Component.text(player)
|
Component.text(player)
|
||||||
).color(NamedTextColor.RED);
|
));
|
||||||
|
|
||||||
final JsonObject lastSeen = playerElement.getAsJsonObject().get("lastSeen").getAsJsonObject();
|
final JsonObject lastSeen = playerElement.getAsJsonObject().get("lastSeen").getAsJsonObject();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue