diff --git a/plugin/src/main/java/com/denizenscript/denizen/objects/properties/bukkit/BukkitElementProperties.java b/plugin/src/main/java/com/denizenscript/denizen/objects/properties/bukkit/BukkitElementProperties.java index 4bc0785594..ab48ea8e3c 100644 --- a/plugin/src/main/java/com/denizenscript/denizen/objects/properties/bukkit/BukkitElementProperties.java +++ b/plugin/src/main/java/com/denizenscript/denizen/objects/properties/bukkit/BukkitElementProperties.java @@ -425,6 +425,61 @@ public static void registerTags() { } return null; }); + + // <--[tag] + // @attribute + // @returns ElementTag + // @group text manipulation + // @description + // Makes the input text italic. Equivalent to "<&o><&o.end_format>" + // --> + PropertyParser.registerTag("italicize", (attribute, object) -> { + return new ElementTag(ChatColor.ITALIC + object.asString() + ChatColor.COLOR_CHAR + "[reset=o]"); + }); + + // <--[tag] + // @attribute + // @returns ElementTag + // @group text manipulation + // @description + // Makes the input text bold. Equivalent to "<&l><&l.end_format>" + // --> + PropertyParser.registerTag("bold", (attribute, object) -> { + return new ElementTag(ChatColor.BOLD + object.asString() + ChatColor.COLOR_CHAR + "[reset=l]"); + }); + + // <--[tag] + // @attribute + // @returns ElementTag + // @group text manipulation + // @description + // Makes the input text underlined. Equivalent to "<&n><&n.end_format>" + // --> + PropertyParser.registerTag("underline", (attribute, object) -> { + return new ElementTag(ChatColor.UNDERLINE + object.asString() + ChatColor.COLOR_CHAR + "[reset=n]"); + }); + + // <--[tag] + // @attribute + // @returns ElementTag + // @group text manipulation + // @description + // Makes the input text struck-through. Equivalent to "<&m><&m.end_format>" + // --> + PropertyParser.registerTag("strikethrough", (attribute, object) -> { + return new ElementTag(ChatColor.STRIKETHROUGH + object.asString() + ChatColor.COLOR_CHAR + "[reset=m]"); + }); + + // <--[tag] + // @attribute + // @returns ElementTag + // @group text manipulation + // @description + // Makes the input text obfuscated. Equivalent to "<&k><&k.end_format>" + // --> + PropertyParser.registerTag("obfuscate", (attribute, object) -> { + return new ElementTag(ChatColor.MAGIC + object.asString() + ChatColor.COLOR_CHAR + "[reset=k]"); + }); } @Override