Skip to content

Commit

Permalink
Merge pull request #32 from Zarkness/main
Browse files Browse the repository at this point in the history
add placeholder %eternaltags_description_<id>%
  • Loading branch information
Oribuin authored Jun 12, 2024
2 parents d1d540f + 389631c commit 214002d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/xyz/oribuin/eternaltags/hook/Expansion.java
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ public String onRequest(@Nullable OfflinePlayer offlineUser, @NotNull String par
case "has" -> (offlineUser.getPlayer() == null ? "false" : this.manager.canUseTag(offlineUser.getPlayer(), tag) ? "true" : "false");
case "has-unlocked" -> (offlineUser.getPlayer() == null ? "false" : this.manager.canUseTag(offlineUser.getPlayer(), tag) ? Setting.TAG_UNLOCKED_FORMAT.getString() : Setting.TAG_LOCKED_FORMAT.getString());
case "active" -> String.valueOf(this.manager.getOfflineUserTag(offlineUser) == tag);
case "description" -> TagsUtils.formatList(tag.getDescription(), Setting.DESCRIPTION_DELIMITER.getString());
default -> "Unknown Placeholder";
};
}
Expand Down

0 comments on commit 214002d

Please sign in to comment.