Skip to content

Commit

Permalink
Merge pull request #1584 from ManInMyVan/track-descriptions
Browse files Browse the repository at this point in the history
track check descriptions
  • Loading branch information
SamB440 committed Jul 4, 2024
2 parents cf794f0 + c4f8d06 commit 9036486
Show file tree
Hide file tree
Showing 19 changed files with 20 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/ac/grim/grimac/checks/Check.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ public class Check implements AbstractCheck {
private String checkName;
private String configName;
private String alternativeName;
private String description;

private boolean experimental;
@Setter
Expand All @@ -43,6 +44,7 @@ public Check(final GrimPlayer player) {
this.setbackVL = checkData.setback();
this.alternativeName = checkData.alternativeName();
this.experimental = checkData.experimental();
this.description = checkData.description();
}

reload();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ private String replaceAlertPlaceholders(String original, PunishGroup group, Chec
.replace("%experimental%", check.isExperimental() ? experimentalSymbol : "")
.replace("%vl%", vl)
.replace("%verbose%", verbose)
.replace("%description%", check.getDescription())
);

original = GrimAPI.INSTANCE.getExternalAPI().replaceVariables(player, original, true);
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/messages/de.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ upload-log-upload-failure: "%prefix% &cBeim Hochladen dieses Protokolls ist etwa
# %prefix%
# %player%
# %check_name%
# %description%
# %experimental%
# %vl% - Verstöße
# %verbose% - zusätzliche Informationen aus dem Check wie z.B. Offsets, nicht alle Checks fügen Informationen hinzu
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/messages/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ upload-log-upload-failure: "%prefix% &cSomething went wrong while uploading this
# %prefix%
# %player%
# %check_name%
# %description%
# %experimental%
# %vl% - violations
# %verbose% - extra information from the check such as offsets, not all checks will add information
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/messages/es.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ upload-log-upload-failure: "%prefix% &cAlgo salio mal mientras subíamos ese reg
# %prefix%
# %player%
# %check_name%
# %description%
# %experimental%
# %vl% - violaciones
# %verbose% - información extra de la comprobación como compensaciones. No todas añadirán informacion.
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/messages/fr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ upload-log-upload-failure: "%prefix% &cUne erreur est survenue lors du téléver
# %prefix%
# %player%
# %check_name%
# %description%
# %experimental%
# %vl% - violations
# %verbose% - Informations supplémentaires sur les vérifivations comme les écarts, toutes les vérifications n'ajoutent pas d'information
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/messages/nl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ upload-log-upload-failure: "%prefix% &cEr is iets misgegaan tijdens het uploaden
# %prefix%
# %player%
# %check_name%
# %description%
# %experimental%
# %vl% - overtredingen
# %verbose% - extra informatie van de controle zoals offsets, niet alle controles voegen informatie toe
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/messages/pt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ upload-log-upload-failure: "%prefix% &cAlgo deu errado ao enviar essa log, veja
# %prefix%
# %player%
# %check_name%
# %description%
# %experimental%
# %vl% - violações
# %verbose% - Informação extra da verificação, como os desvios, nem todas as verifiações terão essa informação.
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/messages/ru.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ upload-log-upload-failure: "%prefix% &cЧто-то пошло не так при
# %prefix%
# %player%
# %check_name%
# %description%
# %experimental%
# %vl% - нарушения
# %verbose% - дополнительная информация от проверки, например, смещения, не все проверки добавляют информацию.
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/messages/zh.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ upload-log-upload-failure: "%prefix% &c上载此日志时出错, 有关详细信
# %prefix% - 前缀
# %player% - 玩家
# %check_name% - 检查名字
# %description%
# %experimental%
# %vl% - VL值
# %verbose% - 检查中的额外信息,例如偏移量,并非所有检查都会添加信息
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/punishments/de.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# %check_name% - Name der Prüfung
# %description% - description of the check
# %vl% - Verstöße
# %verbose% - zusätzliche Informationen
# %player% - Spielername
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/punishments/en.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# %check_name% - name of the check
# %description% - description of the check
# %vl% - violations
# %verbose% - extra information
# %player% - player name
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/punishments/es.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# %check_name% - nombre de la comprobación
# %description% - description of the check
# %vl% - violaciones
# %verbose% - informacion extra
# %player% - nombre del jugador
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/punishments/fr.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# %check_name% - Nom de la vérification
# %description% - description of the check
# %vl% - Violations
# %verbose% - Informations supplémentaires
# %player% - Nom du joueur
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/punishments/it.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# %check_name% - name of the check
# %description% - description of the check
# %vl% - violations
# %verbose% - extra information
# %player% - player name
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/punishments/nl.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# %check_name% - naam van de controle
# %description% - description of the check
# %vl% - overtredingen
# %verbose% - extra informatie
# %player% - spelersnaam
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/punishments/pt.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# %check_name% - nome da verificação
# %description% - description of the check
# %vl% - violações
# %verbose% - informação extra
# %player% - nome do jogador
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/punishments/ru.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# %check_name% - название проверки
# %description% - description of the check
# %vl% - нарушения
# %verbose% - дополнительная информация
# %player% - имя игрока
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/punishments/zh.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# %check_name% - 检查名称
# %description% - description of the check
# %vl% - 违规
# %verbose% - 额外信息
# %player% - 玩家名字
Expand Down

0 comments on commit 9036486

Please sign in to comment.