diff --git a/src/main/java/org/bukkit/craftbukkit/tag/CraftTag.java b/src/main/java/org/bukkit/craftbukkit/tag/CraftTag.java index 39f157ffb8..c08671e232 100644 --- a/src/main/java/org/bukkit/craftbukkit/tag/CraftTag.java +++ b/src/main/java/org/bukkit/craftbukkit/tag/CraftTag.java @@ -3,7 +3,9 @@ package org.bukkit.craftbukkit.tag; import net.minecraft.server.MinecraftKey; import net.minecraft.server.TagsServer; import org.bukkit.Keyed; +import org.bukkit.NamespacedKey; import org.bukkit.Tag; +import org.bukkit.craftbukkit.util.CraftNamespacedKey; public abstract class CraftTag implements Tag { @@ -26,4 +28,9 @@ public abstract class CraftTag implements Tag { return handle; } + + @Override + public NamespacedKey getKey() { + return CraftNamespacedKey.fromMinecraft(tag); + } }