Skip to content

Commit

Permalink
Fix: Fixed some pattern in scoreboard (hannibal002#1152)
Browse files Browse the repository at this point in the history
  • Loading branch information
j10a1n15 authored Mar 13, 2024
1 parent 9bacc66 commit 5b1aee2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ object ScoreboardPattern {
)
val votesPattern by mainSb.pattern(
"votes",
"(?<votes>§[caebd]\\|+§f\\|+ §(.+)\$)"
"(?<votes>§[caebd]\\|+(§f)?\\|+ §(.+)$)$)"
)
val waitingForVotePattern by mainSb.pattern(
"waitingforvote",
Expand Down Expand Up @@ -144,7 +144,7 @@ object ScoreboardPattern {
)
val pastingPattern by farmingSb.pattern(
"pasting",
"^\\s*§f(Barn )?Pasting§7: (§.)*[\\d,]+%$"
"^\\s*§f(Barn )?Pasting§7: (§.)*[\\d,.]+%$"
)
val peltsPattern by farmingSb.pattern(
"pelts",
Expand Down Expand Up @@ -307,11 +307,11 @@ object ScoreboardPattern {
)
val dojoPointsPattern by miscSb.pattern(
"dojopoints",
"^(§.)*Points: (§.)*(?<points>[\\w,.]+) ?( (§.)*\\((§.)*[+-](§.)*(?<difference>[\\w,.]+)(§.)*\\))?\$"
"^(§.)*Points: (§.)*[\\w.]+( §7\\(§.*§7\\))?$"
)
val dojoTimePattern by miscSb.pattern(
"dojotime",
"^(§.)*Time: (§.)*(?<time>(?<seconds>\\w+s))( (§.)*\\((§.)*[+-](§.)*(?<difference>[\\w,.]+)(§.)*\\))?$"
"^(§.)*Time: (§.)*[\\w.]+( §7\\(§.*§7\\))?$"
)
val objectivePattern by miscSb.pattern(
"objective",
Expand Down Expand Up @@ -393,7 +393,7 @@ object ScoreboardPattern {
)
val mithrilPowderPattern by tablistGroup.pattern(
"mithrilpowder",
"^\\s*Gemstone Powder: (?:§.)+(?<mithrilpowder>[\\d,\\.]+)$"
"^\\s*Mithril Powder: (?:§.)+(?<mithrilpowder>[\\d,\\.]+)$"
)
val gemstonePowderPattern by tablistGroup.pattern(
"gemstonepowder",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class ServerRestartTitle {
)
val restartingGreedyPattern by restartingGroup.pattern(
"greedy",
"§cServer closing:.*"
"§cServer closing.*"
)
}

Expand Down

0 comments on commit 5b1aee2

Please sign in to comment.