diff options
| author | Krakenied <Krakenied1@gmail.com> | 2024-08-27 20:18:40 +0200 |
|---|---|---|
| committer | Krakenied <46192742+Krakenied@users.noreply.github.com> | 2024-08-28 11:37:11 +0200 |
| commit | 4f254f515123dd3626267079a7a99bfc67347e4f (patch) | |
| tree | 4584850fd78a2dd801c62ea8e5ba1515cf4271c4 /bukkit/src | |
| parent | e70150b2a25337773d3df86e03354bdf038cb535 (diff) | |
A little docs cleanup
Diffstat (limited to 'bukkit/src')
| -rw-r--r-- | bukkit/src/main/java/com/leonardobishop/quests/bukkit/util/TaskUtils.java | 6 | ||||
| -rw-r--r-- | bukkit/src/main/resources/resources/bukkit/config.yml | 4 |
2 files changed, 10 insertions, 0 deletions
diff --git a/bukkit/src/main/java/com/leonardobishop/quests/bukkit/util/TaskUtils.java b/bukkit/src/main/java/com/leonardobishop/quests/bukkit/util/TaskUtils.java index 380733f1..a202a933 100644 --- a/bukkit/src/main/java/com/leonardobishop/quests/bukkit/util/TaskUtils.java +++ b/bukkit/src/main/java/com/leonardobishop/quests/bukkit/util/TaskUtils.java @@ -486,6 +486,9 @@ public class TaskUtils { public abstract boolean matches(@NotNull String str1, @NotNull String str2, boolean ignoreCase); } + /** + * @param legacyColor whether {@link Chat#legacyColor(String)} method ought to be used on {@code string} before the comparison + */ public static boolean matchString(@NotNull BukkitTaskType type, @NotNull PendingTask pendingTask, @Nullable String string, @NotNull UUID player, @NotNull String stringKey, @NotNull String listKey, boolean legacyColor, @NotNull String matchModeKey, boolean ignoreCase) { Task task = pendingTask.task; @@ -529,6 +532,9 @@ public class TaskUtils { return false; } + /** + * @param legacyColor whether {@link Chat#legacyColor(String)} method ought to be used on {@code strings} before the comparison + */ public static boolean matchAnyString(@NotNull BukkitTaskType type, @NotNull PendingTask pendingTask, @NotNull String @Nullable [] strings, @NotNull UUID player, final @NotNull String stringKey, final @NotNull String listKey, boolean legacyColor, @NotNull String matchModeKey, boolean ignoreCase) { Task task = pendingTask.task; diff --git a/bukkit/src/main/resources/resources/bukkit/config.yml b/bukkit/src/main/resources/resources/bukkit/config.yml index a7e46c18..69e67077 100644 --- a/bukkit/src/main/resources/resources/bukkit/config.yml +++ b/bukkit/src/main/resources/resources/bukkit/config.yml @@ -192,6 +192,10 @@ options: quest-mode: mode: "NORMAL" # More modes are a work in progress +# Most common locales: +# de-DE: 1.234,56 +# en-US: 1,234.56 +# fr-ch: 1'234,56 number-formats: # decimal format used for processing float, double and BigDecimal placeholders floating: |
