Commit Graph

271 Commits

Author SHA1 Message Date
Artemis-the-gr8
b46a25d23f Merged different StatResult classes into one typed record 2022-10-07 19:48:37 +02:00
Artemis-the-gr8
e4fca5a0c8 Rewrote StatCommand logic, got rid of RequestSettings and RequestHandler and instead made InternalStatRequest to mirror the other StatRequest classes 2022-10-07 17:45:56 +02:00
Artemis-the-gr8
56dc30830a Started a rewrite to make the request-business more clear and better organized 2022-10-05 17:24:51 +02:00
Artemis-the-gr8
e30bc5efd2 Removed unnecessary method from BukkitConsoleComponentFactory, minor annotation improvements 2022-10-05 14:20:12 +02:00
Artemis-the-gr8
2c7717a20c Fixed language bugs (#123), improved LanguageKeyHandler, ComponentUtils and StringUtils 2022-10-04 16:48:09 +02:00
Artemis-the-gr8
9ac77a365b Separated initial plugin set-up from reloading and organized responsibilities better for the OfflinePlayerHandler, ThreadManager and the classes implementing FileHandler 2022-10-03 15:40:45 +02:00
Artemis-the-gr8
3417233dec Started working on exclude file (#88) and made file-reloading/updating more organized with an abstract FileHandler 2022-10-02 15:19:51 +02:00
Artemis-the-gr8
9942d6fea5 Fixed stat-name for Deaths (#121) 2022-08-28 17:04:14 +02:00
Artemis-the-gr8
667d695c75 Small documentation fix 2022-08-28 16:32:53 +02:00
Artemis-the-gr8
d1cb3d37c9 Improved documentation, (#120) 2022-08-28 15:17:16 +02:00
Artemis-the-gr8
c713879312 Added #getVersion() for reflection, moved lib folder (#120) 2022-08-22 21:21:33 +02:00
Artemis-the-gr8
928aae3173 Added another formatting method to the API 2022-08-20 21:17:14 +02:00
Artemis-the-gr8
73c7fd8445 Small bug fix (API didn't follow config-settings for use-dots) 2022-08-19 18:43:30 +02:00
Artemis-the-gr8
329bc8fb10 Fixed package-name in plugin.yml, getting ready for release v1.7! (#83) 2022-08-17 17:22:59 +02:00
Artemis-the-gr8
320e6a6c22 Merge branch 'api'
# Conflicts:
#	src/main/java/com/artemis/the/gr8/playerstats/enums/Unit.java
#	src/main/java/com/artemis/the/gr8/playerstats/msg/msgutils/NumberFormatter.java
2022-08-17 13:14:46 +02:00
Artemis-the-gr8
7e2a105b71 Added finishing touches to javadoc comments and started preparing for 1.7 release (#100) 2022-08-17 00:27:25 +02:00
Artemis-the-gr8
7c9f03038f Added javadoc configuration and improved documentation (#100) 2022-08-16 17:14:22 +02:00
Artemis-the-gr8
93b44da8c7 Reworked all javadoc comments to follow official guidelines (#100) 2022-08-16 15:16:57 +02:00
Robin
f238221511 Made the time formatting a bit more simple and dynamic 2022-08-15 23:22:17 +02:00
Artemis-the-gr8
5eb4a1705c Added more documentation (#100) 2022-08-15 23:20:25 +02:00
Artemis-the-gr8
20fa697eab Improved POM and changed package name and groupId to an appropriate domain (#101) 2022-08-15 22:40:54 +02:00
Artemis-the-gr8
4dc5fe86e0 Fixed bug with time-number-formatting (#116), removed api test method (#115) 2022-08-15 16:57:45 +02:00
Artemis-the-gr8
a456c1aa14 Added new chart to bstats to see placeholder-usage (#110) 2022-08-15 13:51:02 +02:00
Artemis-the-gr8
8924e02bba Added language file to properly translate stat-keys into Minecraft text (#113, #79) 2022-08-15 01:01:59 +02:00
Artemis-the-gr8
b57d8af335 Finished extra formatting methods for the API and merged the ApiOutputManager into the MessageBuilder 2022-08-12 20:52:37 +02:00
Artemis-the-gr8
cc2e061ae3 Made ApiFormatter use the same settings for TranslatableComponents as the InternalFormatter 2022-08-12 12:48:21 +02:00
Artemis-the-gr8
7c3b6d0ef0 Fixed heart-unit not displaying in APIFormatter 2022-08-12 01:44:19 +02:00
Artemis-the-gr8
d4a7587642 Made rainbow-prefix not random for APIformatter 2022-08-11 20:53:41 +02:00
Artemis-the-gr8
d7285f71de Improved MyLogger, added more formatting methods to the API 2022-08-11 17:23:02 +02:00
Artemis-the-gr8
9c1298794d Fixed bug in entity/material-related Requests, added IllegalArgumentException for wrong player-name 2022-08-11 01:04:26 +02:00
Artemis-the-gr8
86e9a7827e Fixed minor formatting bug, added 3 new formatting methods for server-stat and top-stat to the ApiFormatter 2022-08-10 13:50:38 +02:00
Artemis-the-gr8
21dc6ef275 Started separating regular output from API-output and started creating more format methods for the API 2022-08-09 21:02:19 +02:00
Artemis-the-gr8
3c9e454ad4 Improved consistency with StatRequest and StatResult Type parameters 2022-08-09 02:34:14 +02:00
Artemis-the-gr8
eeb164e194 Improved Request-business inside API 2022-08-08 17:24:22 +02:00
Artemis-the-gr8
3a9eb86c1e Made an "execute" step in the API 2022-08-08 00:54:18 +02:00
Artemis-the-gr8
a34bf32c5a Expanded API sligtly 2022-08-07 21:18:11 +02:00
Artemis-the-gr8
177effeae5 Updated to v1.6.1 for Minecraft 1.19.1 2022-08-04 15:25:56 +02:00
Elise
84ee9a86db
Merge pull request #104 from itHotL/placeholder-api
Placeholder api
2022-08-04 15:16:35 +02:00
Artemis-the-gr8
d4e3463cea Updated Adventure-platform, removed some unnecessary logging from DebugLevel.LOW 2022-08-04 15:11:59 +02:00
Artemis-the-gr8
992344b210 Added formatter to API 2022-08-03 20:06:14 +02:00
Artemis-the-gr8
f960bbd5a2 Started expanding the API, fixed minor bug in ConfigHandler for #playerNameIsBold 2022-08-03 15:24:29 +02:00
Artemis-the-gr8
85ceb0b8c7 Made top-list-size configurable for API-requests, improved MessageBuilder 2022-08-02 22:30:18 +02:00
Artemis-the-gr8
f6e37de926 Added a lot more documentation, and made topListSize a parameter for API requests 2022-08-01 21:40:43 +02:00
Artemis-the-gr8
f988b96adf Added more documentation 2022-08-01 17:49:42 +02:00
Artemis-the-gr8
9ad0f1eeca Finished API rework 2022-08-01 16:57:20 +02:00
Artemis-the-gr8
3ff4458a3a Further messing with API 2022-08-01 13:16:03 +02:00
Artemis-the-gr8
228f1f2d73 More API rework 2022-07-28 22:12:50 +02:00
Artemis-the-gr8
c3bf1e60fc Started attempt to make the API more user friendly 2022-07-28 19:44:21 +02:00
Artemis-the-gr8
a3c9f66fd8 Small javadoc changes 2022-07-28 03:08:12 +02:00
Artemis-the-gr8
f2b09198b0 Reworked the API again to make it more user-friendly, and I think I'm finally happy with the result! (#99, #98, #100) 2022-07-28 02:50:59 +02:00
Artemis-the-gr8
2b73e4f183 Improved the StatResult by working with record hashCode instead of UUID 2022-07-28 00:55:58 +02:00
Artemis-the-gr8
3a542ec72a Separated the API into 3 different interfaces: RequestGenerator, StatCalculator, and StatFormatter 2022-07-27 23:47:53 +02:00
Artemis-the-gr8
81acf6b308 Finally managed to serialize all TranslatableComponents properly (#98, #99) 2022-07-27 17:21:06 +02:00
Artemis-the-gr8
50b12921f3 Attempted to serialize the final TranslatableComponents into String, 95% there (entity ones are killing me) 2022-07-27 01:31:53 +02:00
Artemis-the-gr8
9bf4e25750 Made EnumHandler not static, made update-settings-methods static to remove unnecessary classes in constructors 2022-07-26 16:13:11 +02:00
Artemis-the-gr8
810c93c5bd Added bStats! 2022-07-26 01:17:33 +02:00
Artemis-the-gr8
fe4f5db12e Started experimenting with serializing my Components into String 2022-07-25 17:33:16 +02:00
Artemis-the-gr8
8be8d7962a Found out ChatColor.of(java.awt.Color) is a thing. Having an existential crisis. 2022-07-25 01:09:03 +02:00
Artemis-the-gr8
b207622a24 Improved documentation 2022-07-24 20:04:49 +02:00
Artemis-the-gr8
5368331441 The API is working! 2022-07-24 17:09:58 +02:00
Artemis-the-gr8
f6dca79c57 Finished reworking the API, now onto testing we go 2022-07-24 16:22:07 +02:00
Artemis-the-gr8
096bb89607 Messing with API structure some more 2022-07-24 13:44:34 +02:00
Artemis-the-gr8
9781cb4dec Added some more Eastereggs for my own server 2022-07-23 23:53:17 +02:00
Artemis-the-gr8
7b796c15dc Rework of API design 2022-07-23 21:28:32 +02:00
Artemis-the-gr8
de150bfe51 Got rough version of API to work! 2022-07-23 16:08:35 +02:00
Artemis-the-gr8
54040c4e3d Added more documentation (for future Javadoc-generating) 2022-07-23 13:20:58 +02:00
Artemis-the-gr8
ca7a1d3e67 Even more API experimentation 2022-07-23 03:00:02 +02:00
Artemis-the-gr8
8136bce894 Further API experimentation 2022-07-22 21:20:29 +02:00
Artemis-the-gr8
a775def8f8 Experimented with Interfaces to create an API 2022-07-22 19:28:40 +02:00
Artemis-the-gr8
3aa6be39f7 More internal improvements (made some classes final, minor clean-up) 2022-07-21 21:02:06 +02:00
Artemis-the-gr8
3a3084978a Re-organized MessageWriter and ComponentFactory relationship (moved factory into their own package), improved method names 2022-07-21 17:30:10 +02:00
Artemis-the-gr8
f760cd2fd5 Added screenshots 2022-07-20 17:29:37 +02:00
Artemis-the-gr8
e76e85020e Getting ready for release v1.6! 2022-07-20 17:16:06 +02:00
Artemis-the-gr8
9ba0a5bf0c Fixed OutputManager and MessageWriter structure 2022-07-20 13:20:46 +02:00
Artemis-the-gr8
b7d1171d83 Implemented random chance for backwards rainbow prefix, fixed several config setting bugs, started fixing the separate message system for console 2022-07-19 19:29:59 +02:00
Artemis-the-gr8
e23913e32e Fixed bug (#95), made enters configurable per stat-result 2022-07-19 13:34:53 +02:00
Artemis-the-gr8
2bfbf3c73c Made enters configurable, improved indentation, found issue for ComponentFactory getting created twice (is normal) 2022-07-18 21:47:52 +02:00
Artemis-the-gr8
e06802c906 Minor fixes, added config options for enter-usage 2022-07-18 18:03:23 +02:00
Artemis-the-gr8
1307196295 Finished stat-results in hover-text (#92, #52), moved random name colors to PrideComponentFactory, improved formatting 2022-07-18 17:36:28 +02:00
Artemis-the-gr8
8ae089f222 Decided on formatting for shared stat-results in hover-text (#92, #52), added random name-colors for shared-by-player, improved ComponentFactory and MessageWriter (fixed gray brackets not being gray) 2022-07-18 13:01:25 +02:00
Artemis-the-gr8
20a4743740 Easter egg yo 2022-07-18 10:53:18 +02:00
Artemis-the-gr8
16b1350948 Finished stat-result feedback message and made it hover with actual stat-result for sharer 2022-07-17 16:34:29 +02:00
Artemis-the-gr8
644a9c0e0b Added signed-by-player to shared results 2022-07-17 12:53:20 +02:00
Artemis-the-gr8
dcdb4293c0 Wrote sharedSignature, did more testing with Adventure 2022-07-15 20:33:57 +02:00
Artemis-the-gr8
980fbcb43e Made share button work! 2022-07-15 17:56:53 +02:00
Artemis-the-gr8
8054bd42b7 Reworked OutputManager more, improved share button 2022-07-14 23:52:21 +02:00
Artemis-the-gr8
45ba10afe1 Started reimplementing share-button functionality 2022-07-14 18:48:54 +02:00
Artemis-the-gr8
d36cb3a574 Massive overhaul of message-system (made MessageSender to put all the message-sending in one place, created different componentFactories for different themes 2022-07-14 02:55:26 +02:00
Artemis-the-gr8
b91d16aec8 Improved rainbow prefix, because... focus, fixed default top-list colors not being the right shade of gold in the config.yml 2022-07-13 14:29:11 +02:00
Artemis-the-gr8
bf4a1aed03 Fixed some message bugs, tested ArrayBlockingQueue, turned order of checks in ShareCommand around 2022-07-13 02:43:36 +02:00
Artemis-the-gr8
1c8d77e9cd Made ShareCommand more better, added feedback for no-share-allowed 2022-07-13 02:20:59 +02:00
Artemis-the-gr8
ce8b870560 Changed to jdk-16 and made it work with Minecraft 1.16.5 and 1.17.1 as well 2022-07-12 23:06:30 +02:00
Artemis-the-gr8
2b2fa70eab Small annotation improvement 2022-07-12 16:37:45 +02:00
Artemis-the-gr8
8619b0af4e Improved config explanations, improved shading and relocating for potential use on Minecraft 1.17 (#47), more minor improvements 2022-07-12 16:26:47 +02:00
Artemis-the-gr8
aa8f31c6fb Finished up tab-complete improvements, added "examples" at start of command (#72, #91), changed version number to 1.6 2022-07-12 12:54:08 +02:00
Artemis-the-gr8
ec13ec51b8 Some more minor code improvements, made reload effective for ShareManager settings and added some logging 2022-07-12 01:07:15 +02:00
Artemis-the-gr8
0356bc6df8 Updated config version for v1.6 (#86) 2022-07-12 00:33:41 +02:00
Artemis-the-gr8
bc0918c4f6 Loads of minor internal changes regarding static/final classes and variables (#89) 2022-07-12 00:29:41 +02:00
Artemis-the-gr8
3fe8afe216 Merge branch 'main' into share-button
# Conflicts:
#	src/main/java/com/gmail/artemis/the/gr8/playerstats/Main.java
#	src/main/java/com/gmail/artemis/the/gr8/playerstats/msg/MessageWriter.java
2022-07-11 20:34:12 +02:00
Artemis-the-gr8
dca4968a91 Split some utility methods into their own class (StringUtils and FontUtils), did some minor general code improvement 2022-07-11 18:59:13 +02:00