From d1d1679c0a84bcf5edd907d75e9e437f746747aa Mon Sep 17 00:00:00 2001 From: YoyoNow Date: Tue, 8 Apr 2025 20:54:48 +0200 Subject: [PATCH] Add /skull shorthand for own skull --- .../de/steamwar/bausystem/features/util/SkullCommand.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/BauSystem/BauSystem_Main/src/de/steamwar/bausystem/features/util/SkullCommand.java b/BauSystem/BauSystem_Main/src/de/steamwar/bausystem/features/util/SkullCommand.java index 1f50a2ae..55ea2c05 100644 --- a/BauSystem/BauSystem_Main/src/de/steamwar/bausystem/features/util/SkullCommand.java +++ b/BauSystem/BauSystem_Main/src/de/steamwar/bausystem/features/util/SkullCommand.java @@ -42,6 +42,11 @@ public class SkullCommand extends SWCommand { super("skull", "head"); } + @Register + public void giveCommand(@Validator Player p) { + giveCommand(p, p.getName()); + } + @Register(description = "SKULL_HELP") public void giveCommand(@Validator Player p, @Mapper("player") @ErrorMessage("SKULL_INVALID") String skull) { ItemStack is = SWItem.getPlayerSkull(skull).getItemStack();