Skip to content

Commit

Permalink
add %FLAGS% for history layout
Browse files Browse the repository at this point in the history
  • Loading branch information
acrylic-style committed Mar 30, 2024
1 parent 99aaf3f commit b8cc416
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -590,6 +590,7 @@ data class Punishment(
"unpunish_id" to unpunishId,
"unpunish_operator" to unpunishOperator,
"strikethrough_if_unpunished" to strikethroughIfUnpunished,
"flags" to flags.joinToString(", ") { it.name }
)
.translate()
)
Expand Down
5 changes: 4 additions & 1 deletion common/src/main/resources/spicyazisaban/messages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,9 @@ commands:
- "%PREFIX%&c&o%PLAYER%&eは&c%SINCE%前&eから%STATUS%&eです。"
- "&7UUID &8> &e&o%UUID%"
- "&7最初のログイン &8> &e&o%FIRST_LOGIN%"
- "&7最初のログイン試行 &8> &e&o%FIRST_LOGIN_ATTEMPT%"
- "&7最近のログイン &8> &e&o%LAST_LOGIN%"
- "&7最近のログイン試行 &8> &e&o%LAST_LOGIN_ATTEMPT%"
- "&7過去の名前 &8> &e&o%NAME_HISTORY%"
- "&7最近のIPアドレス &8> &e&o%IP% &7(&e%HOSTNAME%&7)"
- "&7過去のすべてのIPアドレス &8> &e&o%IP_HISTORY%"
Expand All @@ -361,7 +363,7 @@ commands:
# Available variables: %TARGET%
header: "%PREFIX%&c&o%TARGET%&7の履歴:"
# Available variables: variables of punishment + %DATE%, %STRIKETHROUGH_IF_UNPUNISHED%, %UNPUNISH_REASON%,
# %UNPUNISH_ID%, %UNPUNISH_OPERATOR%
# %UNPUNISH_ID%, %UNPUNISH_OPERATOR%, %FLAGS%
layout:
- "&8[&e%DATE%&8] &8(&e/%CMD_PREFIX%proofs %ID%&7で証拠を表示&8)"
- "&c名前/IP &8> &7&o%PLAYER%"
Expand All @@ -371,6 +373,7 @@ commands:
- "&cID &8> &7&o#%ID% %UNPUNISH_ID%"
- "&cサーバー &8> &7&o%SERVER%"
- "&c執行者 &8> &7&o%OPERATOR% %UNPUNISH_OPERATOR%"
- "&cフラグ &8> &7&o%FLAGS%"
# Available variables: %CURRENT_PAGE%, %MAX_PAGE%, %COUNT%
footer: "&7ページ &e&o%CURRENT_PAGE%&7/&e&o%MAX_PAGE% &8| &7処罰件数: &e&o%COUNT%"
# Available variables: %REASON%
Expand Down

0 comments on commit b8cc416

Please sign in to comment.