Commit Graph

44 Commits

Author SHA1 Message Date
fb807d6163 Adds some helper code mainly related to signs
All checks were successful
KnarCraft/KnarLib/pipeline/head This commit looks good
2025-09-03 17:43:08 +02:00
0a4b9d5d8a Makes the string replacer more useful for translatable messages
All checks were successful
KnarCraft/KnarLib/pipeline/head This commit looks good
2025-09-03 03:05:48 +02:00
dee068f142 Adds some missing scope specifiers
All checks were successful
KnarCraft/KnarLib/pipeline/head This commit looks good
2025-09-03 02:28:05 +02:00
51ea6be94a Makes the format builder more flexible
All checks were successful
KnarCraft/KnarLib/pipeline/head This commit looks good
Adds new no-argument constructor
Adds methods for constructing, appending and replacing with string builders
Adds ability to use translatable messages as placeholders
Adds missing handling of an uninitialized string formatter for some methods
2025-09-03 02:03:06 +02:00
5a0deb877e Adds ability to append to a format builder
All checks were successful
KnarCraft/KnarLib/pipeline/head This commit looks good
2025-08-27 13:05:30 +02:00
42bf143e8b Adds format builder method for replacing string with translatable message
All checks were successful
KnarCraft/KnarLib/pipeline/head This commit looks good
2025-08-22 16:58:43 +02:00
5aa16bd528 Adds a FormatBuilder for cleaner advanced formatting operations
All checks were successful
KnarCraft/KnarLib/pipeline/head This commit looks good
2025-08-22 15:39:21 +02:00
5427e2a401 Fixes some problems with TabCompletionHelper.getStringList
All checks were successful
KnarCraft/KnarLib/pipeline/head This commit looks good
2024-05-04 13:59:53 +02:00
1d6a3f976e Fixes some problems with TabCompletionHelper.getStringList
All checks were successful
KnarCraft/KnarLib/pipeline/head This commit looks good
2024-05-04 13:37:49 +02:00
a0f81879db Adds a new tab-completion helper function
All checks were successful
KnarCraft/KnarLib/pipeline/head This commit looks good
Adds a new tab-completion helper function which is able to tab-complete comma-separated inputs.
2024-05-03 14:58:55 +02:00
75d4f84884 Fixes typos and float instead of double
All checks were successful
KnarCraft/KnarLib/pipeline/head This commit looks good
2024-04-30 02:46:19 +02:00
e9efb7cd34 Makes getting lines that are not key value pairs possible
All checks were successful
KnarCraft/KnarLib/pipeline/head This commit looks good
2024-04-29 05:56:19 +02:00
c35325c5a7 Improves particles
Some checks failed
KnarCraft/KnarLib/pipeline/head There was a failure building this commit
Allows specifying separate particle trails for each player.
Removes random particles as a class option.
Adds a particle config builder for easier particle specification.
2024-02-12 23:06:44 +01:00
17fd61e8b9 Adds methods for getting raw messages from the string formatter
All checks were successful
KnarCraft/KnarLib/pipeline/head This commit looks good
2024-01-25 15:21:01 +01:00
7dc0315469 Makes both String[] and List<String> available for string formatting
All checks were successful
KnarCraft/KnarLib/pipeline/head This commit looks good
2024-01-11 14:04:36 +01:00
a89ed1fb39 Removes unnecessary processingBlock variable
All checks were successful
KnarCraft/KnarLib/pipeline/head This commit looks good
2023-09-29 00:32:29 +02:00
8028a8556b Allows creating a particle spawner without material configurations 2023-09-27 14:56:20 +02:00
6ba13a1ced Improves some descriptions, and fixes a nullability problem
All checks were successful
KnarCraft/KnarLib/pipeline/head This commit looks good
2023-09-23 19:14:12 +02:00
5c3c3045eb Adds method for parsing a material without tag support
All checks were successful
EpicKnarvik97/KnarLib/pipeline/head This commit looks good
KnarCraft/KnarLib/pipeline/head This commit looks good
2023-07-10 13:15:23 +02:00
5719a8ec4c Makes sure to color message text if a custom prefix is used
All checks were successful
EpicKnarvik97/KnarLib/pipeline/head This commit looks good
2023-07-09 18:03:22 +02:00
46f85d37ab Allows specifying the material tag prefix
All checks were successful
EpicKnarvik97/KnarLib/pipeline/head This commit looks good
2023-07-08 17:49:39 +02:00
94d74e7794 Adds missing @NotNull annotations
All checks were successful
EpicKnarvik97/KnarLib/pipeline/head This commit looks good
2023-07-08 17:22:56 +02:00
914485c67b Adds a helper class for parsing materials and tags
All checks were successful
EpicKnarvik97/KnarLib/pipeline/head This commit looks good
2023-07-08 16:49:16 +02:00
e35156bea9 Makes some particle classes final
All checks were successful
EpicKnarvik97/KnarLib/pipeline/head This commit looks good
2023-07-08 15:33:27 +02:00
ad5dabc712 Adds code for spawning customizable particle and trail effects
All checks were successful
EpicKnarvik97/KnarLib/pipeline/head This commit looks good
2023-07-08 15:20:59 +02:00
4fb4429f8b Adds more options to StringFormatter
All checks were successful
EpicKnarvik97/KnarLib/pipeline/head This commit looks good
Makes it possible to set the prefix before the plugin name
Makes it possible to set the suffix after the plugin name
Makes it possible to set the ColorConversion for translated messages
2023-07-08 03:01:15 +02:00
88ea42783a Improves some TimeFormatter code
All checks were successful
EpicKnarvik97/KnarLib/pipeline/head This commit looks good
Adds more comments to make things easier to understand for returning developers
Extracts some functionality to improve cleanliness
Makes sure UNIT_NOW not being registered throws an exception
Makes sure to initialize units before any checks to improve consistency
Reduces the number of indentations where possible
2023-03-06 20:07:02 +01:00
2618d42992 Allows partial usage of time units if preferable
All checks were successful
EpicKnarvik97/KnarLib/pipeline/head This commit looks good
2023-03-06 14:31:49 +01:00
e8d62930ca Makes string formatter colors configurable
All checks were successful
EpicKnarvik97/KnarLib/pipeline/head This commit looks good
2023-01-25 17:03:39 +01:00
5e8b13785d Makes translator color conversion configurable
All checks were successful
EpicKnarvik97/KnarLib/pipeline/head This commit looks good
2023-01-25 16:38:56 +01:00
f1ccee13c2 Adds some tests for the color helper
All checks were successful
EpicKnarvik97/KnarLib/pipeline/head This commit looks good
2023-01-25 16:04:39 +01:00
341fce44e5 Makes the fallback language configurable 2023-01-25 16:03:50 +01:00
9696cf26a8 Adds a stateful StringReplacer for complex tasks 2022-11-16 16:31:07 +01:00
785e46e972 Suppresses unused warnings 2022-11-14 01:59:49 +01:00
1c926413d0 Changes type of dataFolder to File 2022-11-07 22:25:21 +01:00
7cd9ae087a Removes possibility of plugin collision
Allows the string formatter to be instantiated, and makes most methods non-static.
Makes the translator plugin-independent.
2022-11-07 21:31:43 +01:00
7299e86afc Makes the translator non-static to fix #1 2022-11-07 15:00:02 +01:00
f10e2caed2 Minor fixes and improvements
Uses translateColors from ColorHelper in StringFormatter
Uses a primitive double where the Double class was used
Adds improved description to the translator class
Adds a stripColorCodes class to the ColorHelper
Uses color conversion from ColorHelper in readKeyValuePairs
2022-11-07 10:30:07 +01:00
8b4f841ead Changes input of getDurationString to long 2022-11-07 02:01:37 +01:00
89456b370b Truly fixes parsing of &# color tags 2022-11-07 01:41:20 +01:00
84a2669022 Fixes some bugs
Fixes a problem in color parsing where a &# code would throw an exception.
Makes sure to remove non-numerical characters in plugin versions to prevent an exception.
2022-11-07 00:58:55 +01:00
fac01fd807 Performs some minor fixes and improvements 2022-11-07 00:15:19 +01:00
de546cac36 Adds option for only converting hex color codes 2022-11-06 16:23:52 +01:00
8f0c028bb5 Initial commit 2022-11-06 16:11:45 +01:00