Skip to content

Commit b8cc416

Browse files
committed
add %FLAGS% for history layout
1 parent 99aaf3f commit b8cc416

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

common/src/main/kotlin/net/azisaba/spicyAzisaBan/punishment/Punishment.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -590,6 +590,7 @@ data class Punishment(
590590
"unpunish_id" to unpunishId,
591591
"unpunish_operator" to unpunishOperator,
592592
"strikethrough_if_unpunished" to strikethroughIfUnpunished,
593+
"flags" to flags.joinToString(", ") { it.name }
593594
)
594595
.translate()
595596
)

common/src/main/resources/spicyazisaban/messages.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,9 @@ commands:
334334
- "%PREFIX%&c&o%PLAYER%&eは&c%SINCE%前&eから%STATUS%&eです。"
335335
- "&7UUID &8> &e&o%UUID%"
336336
- "&7最初のログイン &8> &e&o%FIRST_LOGIN%"
337+
- "&7最初のログイン試行 &8> &e&o%FIRST_LOGIN_ATTEMPT%"
337338
- "&7最近のログイン &8> &e&o%LAST_LOGIN%"
339+
- "&7最近のログイン試行 &8> &e&o%LAST_LOGIN_ATTEMPT%"
338340
- "&7過去の名前 &8> &e&o%NAME_HISTORY%"
339341
- "&7最近のIPアドレス &8> &e&o%IP% &7(&e%HOSTNAME%&7)"
340342
- "&7過去のすべてのIPアドレス &8> &e&o%IP_HISTORY%"
@@ -361,7 +363,7 @@ commands:
361363
# Available variables: %TARGET%
362364
header: "%PREFIX%&c&o%TARGET%&7の履歴:"
363365
# Available variables: variables of punishment + %DATE%, %STRIKETHROUGH_IF_UNPUNISHED%, %UNPUNISH_REASON%,
364-
# %UNPUNISH_ID%, %UNPUNISH_OPERATOR%
366+
# %UNPUNISH_ID%, %UNPUNISH_OPERATOR%, %FLAGS%
365367
layout:
366368
- "&8[&e%DATE%&8] &8(&e/%CMD_PREFIX%proofs %ID%&7で証拠を表示&8)"
367369
- "&c名前/IP &8> &7&o%PLAYER%"
@@ -371,6 +373,7 @@ commands:
371373
- "&cID &8> &7&o#%ID% %UNPUNISH_ID%"
372374
- "&cサーバー &8> &7&o%SERVER%"
373375
- "&c執行者 &8> &7&o%OPERATOR% %UNPUNISH_OPERATOR%"
376+
- "&cフラグ &8> &7&o%FLAGS%"
374377
# Available variables: %CURRENT_PAGE%, %MAX_PAGE%, %COUNT%
375378
footer: "&7ページ &e&o%CURRENT_PAGE%&7/&e&o%MAX_PAGE% &8| &7処罰件数: &e&o%COUNT%"
376379
# Available variables: %REASON%

0 commit comments

Comments
 (0)