Commit Graph

258 Commits

Author SHA1 Message Date
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
Artemis-the-gr8
80a5f17079 Added armor_stand back on list with filtered entity-suggestions 2022-07-11 15:35:11 +02:00
Artemis-the-gr8
608dfcc215 Added rough share-button for testing, sharing works! 2022-07-10 15:55:12 +02:00
Artemis-the-gr8
347e59220c Made a ShareManager and designed methods to save/retrieve a statResult, save timestamp of sharing, and check waiting-time for players 2022-07-10 15:31:01 +02:00
Artemis-the-gr8
e44e0e7b0e Added config options for share button and made ShareQueue methods 2022-07-07 22:12:07 +02:00
Artemis-the-gr8
3c3ae71389 Started implementing share button. Made ShareCommand, added permission and command to plugin.yml, and made ShareQueue 2022-07-07 16:38:03 +02:00
Artemis-the-gr8
776862d396 Added filter for EntityType::isAlive 2022-07-07 12:58:47 +02:00
Artemis-the-gr8
87e3d30eb1 Started implementing some more filters for the tab-suggestions 2022-07-07 01:20:33 +02:00
Artemis-the-gr8
ce6a1d0dab Made it possible to disable stat-request-limiting in the config 2022-07-06 21:43:24 +02:00
Artemis-the-gr8
fac5ee0a6b Limited statRequests to one at a time per commandSender (#49) 2022-07-06 21:33:13 +02:00
Artemis-the-gr8
73806280c9 Fixed old screenshots 2022-07-05 17:24:32 +02:00
Artemis-the-gr8
45b6ef83c8 Included missing screenshot 2022-07-05 17:11:41 +02:00
Artemis-the-gr8
e4a5aa69fc Added heart unicode symbol for Unit.HEART, tried and abandoned darker time-units, added screenshot for release v1.5 2022-07-05 17:05:17 +02:00
Artemis-the-gr8
52ad16f40b Fixed bug where time-unit sometimes has too many spaces once again (#81) 2022-07-05 11:51:56 +02:00
Artemis-the-gr8
1d05a6d0af Fixed time-unit-rounding bug 2022-07-04 23:27:15 +02:00
Artemis-the-gr8
3213580efa Adjusted a screenshot 2022-07-04 22:34:59 +02:00
Artemis-the-gr8
5093fc6398 Changed banlist-check for player-is-banned check if LiteBans is present (#77), release v1.5! 2022-07-04 22:26:36 +02:00
Artemis-the-gr8
6a040a9e82 Added feature to automatically detect the best unit to use (#80), improved MyLogger 2022-07-04 21:59:45 +02:00
Artemis-the-gr8
31df67bc12 Fixed spaces in time-unit (#81) 2022-07-04 12:50:59 +02:00
Artemis-the-gr8
7e9f7ee549 Fixed time-based statistics unit configurability 2022-07-04 02:17:31 +02:00
Artemis-the-gr8
5b96f0b292 Reworked all languagekey-business to MessageWriter, fixed all statUnit-getting 2022-07-03 21:18:28 +02:00
Artemis-the-gr8
f22fc6a7ed Added config support to configure time units, made min and max time unit options, took String-to-Unit converting out of ConfigHandler and put it in Unit instead 2022-07-03 15:47:51 +02:00
Artemis-the-gr8
cde80fa9d2 Implemented hoverComponents with dynamic color, proper formatting and proper unit for damage and distance-based statistics! 2022-07-03 02:29:05 +02:00
Artemis-the-gr8
f723a657e7 started working with Unit.Type as a sub-enum 2022-07-02 22:01:47 +02:00
Artemis-the-gr8
a05a97617b Made hoverText with the full statNumber, with dynamic color, added config support for distance- and damage-units, started on adding unit to hoverText as well 2022-07-02 15:48:29 +02:00
Artemis-the-gr8
77808da3a3 Moved all space-creating to MessageWriter where possible and fixed duplicate/missing spaces, properly rounded formatted numbers, and some more minor bug fixing 2022-07-02 13:48:04 +02:00
Artemis-the-gr8
3ad7e337aa Moved all space-creating to MessageWriter where possible and fixed duplicate/missing spaces, and some minor bug fixing 2022-07-02 12:08:35 +02:00
Artemis-the-gr8
772d59941d Rewrote ComponentFactory again, added ExampleMessage and HelpMessage as their own class 2022-07-01 20:44:27 +02:00
Artemis-the-gr8
bf571cb750 Removed isValid from StatRequest, turned some Components into Builders to reduce amount of redundant Component-making, added unit for distance-based stats (#75) 2022-07-01 11:13:21 +02:00
Artemis-the-gr8
5cf477614f Gave distance-, time- and damage-based statistics their own formatting (#75, #74, #73) 2022-06-30 15:10:52 +02:00
Artemis-the-gr8
9949da4384 Improved reload process, excluded unnecessary files in pom.xml and deleted some unnecessary error throwing 2022-06-29 21:30:25 +02:00
Artemis-the-gr8
9ca234975b Made LanguageKeyHandler static, improved MyLogger, added a while statement in StatThread in an attempt to enable ReloadThread to kill it (#64), Re-enabled PrideComponentFactory 2022-06-29 17:11:43 +02:00
Artemis-the-gr8
82a0196214 Added PluginColor enum, rewrote help message (previous commit), messed with color scheme slightly, reworked isConsoleSender to be more Bukkit-specific 2022-06-29 14:09:19 +02:00
Artemis-the-gr8
b2bc509933 Finished rewrite of MessageWriter and ComponentFactory 2022-06-28 22:31:57 +02:00
Artemis-the-gr8
97b653a67a Started splitting MessageFactory into a MessageWriter and ComponentFactory 2022-06-28 17:39:53 +02:00
Artemis-the-gr8
6ddc543bd0 Moved subStatNameComponent method in MessageFactory up to be more consistent 2022-06-27 19:12:45 +02:00
Artemis-the-gr8
54c2f73e76 Removed double subStatName-check in MessageFactory (in missingSubStatName and wrongSubStatName) 2022-06-27 14:36:14 +02:00
Artemis-the-gr8
9a4ed4c3f6 Removed trailing enters 2022-06-27 14:21:35 +02:00
Artemis-the-gr8
6253627846 Reworked MessageFactory to work with a StatRequest, and reworked LanguageKeyHandler to only work with Enums. Now the only place a String is converted into an Enum is inside the StatCommand. Also added method isValid to StatRequest and changed selection to SERVER for "me" in console 2022-06-27 13:54:14 +02:00
Artemis-the-gr8
fcb5283982 Reworked everything to work with the statEnum instead of statName to limit the amount of string-to-enum/string-to-type actions, improved StatCommand (separated patching-request from validating-request and worked in immediate feedback instead of checking twice), renamed Query to Target and limited its method to only getters and setters, reduced amount of error-throwing-methods, cleaned up EnumHandler, switched to MyLogger in various places 2022-06-27 11:56:08 +02:00
Artemis-the-gr8
8ca928df57 Fixed negative number issue for real now (#71) and abstracted a method in TabCompleter 2022-06-25 20:52:50 +02:00
Artemis-the-gr8
d8f1766ae8 Added screenshot of new number formatting 2022-06-24 16:59:30 +02:00
Artemis-the-gr8
5a8e638189 Added screenshot of translated text 2022-06-24 16:39:50 +02:00
Artemis-the-gr8
3926ddcceb Added config migration (#69), and upgraded version numbers for release v1.4! 2022-06-23 21:29:41 +02:00
Artemis-the-gr8
e8f17afa8f Added number formatting to display big numbers with commas (#70) 2022-06-23 20:31:40 +02:00
Artemis-the-gr8
b6be510462 Resolved styling issue (#67) and fixed server stat becoming negative (#66) 2022-06-23 19:24:43 +02:00
Artemis-the-gr8
8e0666bceb Put brackets around subStatNames (#65), made nicer default color scheme, fixed entityNames appearing twice (#68), half-fixed Style issues with stat/subStat Components (#67) 2022-06-23 17:30:52 +02:00
Artemis-the-gr8
d225b1e235 Finished toggle for TranslatableComponents (#57), rewrote non-translated stat/block/item/entity names and added more debug logging 2022-06-23 15:45:54 +02:00
Artemis-the-gr8
3e968232c6 Improved loading-speed for loading offlinePlayers (#63), fixed ban-list-filtering taking a long time (#61), started implementing MyLogger for more advanced debugging (#62) 2022-06-23 12:14:57 +02:00
Artemis-the-gr8
523fd589fb Removed "unknown" from list of entities (#58), added config options to keep the rainbow formatting and support for disabling translatable text (#56, #57) 2022-06-22 14:14:02 +02:00
Artemis-the-gr8
304f4219c2 Everything is translatable now! (#54, #43) 2022-06-21 21:02:55 +02:00
Artemis-the-gr8
f1cda8a7dd Set up translatableComponents for all items, blocks, entities and custom statNames, and started working on killed/killed_by solution (#54, #43) 2022-06-21 17:35:46 +02:00
Artemis-the-gr8
effe7e5523 Experimented with NameSpacedKeys for entity/block/item/stat-names, got TranslatableComponents to work for everything except statNames 2022-06-21 10:49:07 +02:00
Artemis-the-gr8
1bf8acf6ee Made "/stat help" also display the usage explanation 2022-06-20 16:54:15 +02:00
Artemis-the-gr8
b316d6f3a5 Release v1.3! 2022-06-17 12:40:34 +02:00
Artemis-the-gr8
5790c697a3 More color experimentations 2022-06-16 22:51:04 +02:00
Artemis-the-gr8
f26a9d24b1 Started implementing more subtle rainbow decorations 2022-06-16 16:40:25 +02:00
Artemis-the-gr8
fc57f33e17 Started implementing more subtle rainbow decorations 2022-06-16 12:56:11 +02:00
Artemis-the-gr8
022fb7a519 Improved annotations and method descriptions, fixed some formatting bugs, added time-limiter for festive formatting, improved OfflinePlayerHandler's player-counting method, and set API version to 1.13 to increase compatibility (#50, #47, #40) 2022-06-15 15:32:56 +02:00
Artemis-the-gr8
7ef2094e79 Improved annotations and method names, experimented with MessageFactory related reload settings, looked into ways to improve config updates, and implemented ConfigUpdater (#48) 2022-06-15 01:08:00 +02:00
Artemis-the-gr8
8b34457f8b Added darker logo versions 2022-06-14 12:28:27 +02:00
Artemis-the-gr8
6674fc5395 Updated the logo, updated Adventure, and started implementing festive formatting 2022-06-14 12:09:59 +02:00
Artemis-the-gr8
cd960443af Updated a screenshot 2022-06-08 22:00:52 +02:00
Artemis-the-gr8
1484ebb912 Release v1.2.1! Set hover-text to false by default for 1.19-R01-SNAPSHOT and true for other versions 2022-06-08 21:05:24 +02:00
Artemis-the-gr8
bf3feda8cc Reworked usage-message to account for lack of hover text 2022-06-08 17:21:42 +02:00
Artemis-the-gr8
28da2e95cb Small config change 2022-06-08 01:39:39 +02:00
Artemis-the-gr8
aa4c53b5ba Release v1.2! 2022-06-08 01:35:08 +02:00
Artemis-the-gr8
e2aa7374a3 Renamed CommandOption to Query, reworked StatRequest to work with the new Query-enum, and minor bug-fixes 2022-06-07 16:03:55 +02:00
Artemis-the-gr8
6f43c03b8c Finished overhaul of MessageFactory and ConfigHandler, and added custom enum for CommandOptions 2022-06-07 01:06:55 +02:00
Artemis-the-gr8
8233fde53f Started reworking ConfigHandler and MessageFactory to account for the new category (server-top) 2022-06-06 17:16:34 +02:00
Artemis-the-gr8
772127426b Pinned down the ConcurrentModificationException, reworked some of the error throwing-and-catching (#44), and implemented total-for-server feature (#42) 2022-06-06 02:15:19 +02:00
Artemis-the-gr8
5d0333b823 Caught the ConcurrentModificationException and added a bunch of logging-statements for testing 2022-06-04 22:03:57 +02:00
Artemis-the-gr8
2fed00fc57 Made code a lot faster and tried (unsuccessfully) to solve ConcurrentModificationException 2022-06-04 02:17:04 +02:00
Artemis-the-gr8
3c060848c8 Some minor changes and clean-up 2022-06-03 01:19:47 +02:00
Artemis-the-gr8
229da074f8 Started using the ForkJoinPool to increase performance (#14) 2022-06-02 21:29:01 +02:00
Artemis-the-gr8
896dcec82c Fixed last screenshot 2022-05-31 23:41:42 +02:00
Artemis-the-gr8
de55ed5c25 Added one more screenshot 2022-05-31 23:36:47 +02:00
Artemis-the-gr8
714aa04bd3 Added one more screenshot 2022-05-31 21:43:46 +02:00
Artemis-the-gr8
1f5e54900e Added a licence, wrote out README.md and added screenshots (#36, #37) 2022-05-31 21:37:57 +02:00
Artemis-the-gr8
1ef75ad451 Designed a logo and added a template for the README.md (#36) 2022-05-31 18:35:00 +02:00
Artemis-the-gr8
519a13f9aa Made /reload and loading the offline players in onEnable asynchronous, added some more feedback (#33, #23) 2022-05-31 01:03:58 +02:00
Artemis-the-gr8
29d775e959 Added feedback for missing/wrong arguments and minor bug-fixes (#23) 2022-05-30 16:24:13 +02:00
Artemis-the-gr8
8fb4154729 Polished up the help-message (#32) 2022-05-29 22:13:18 +02:00
Artemis-the-gr8
07668c8010 fixes/recommendations from moi 2022-05-29 19:16:38 +02:00
Artemis-the-gr8
aea640a947 Configure ChatColors and TextColors to work correctly with Components (#34) 2022-05-27 10:36:33 +02:00
Artemis-the-gr8
270dea4ab5 Started reworking OutputFormatter and ConfigHandler to work with adventure components instead 2022-05-26 02:58:53 +02:00
Artemis-the-gr8
dab141f4ca Finally got Adventure library to work 2022-05-25 17:29:51 +02:00
Artemis-the-gr8
bc0ec51f36 Added in a pretty help-display for Bukkit and found out the md_5 package import cannot work how I'm doing it (#32) 2022-05-25 14:17:56 +02:00
Artemis-the-gr8
0fb8fa0487 Made a pretty usage-display function (#32) 2022-05-24 21:54:39 +02:00
Artemis-the-gr8
ee82d07f3a Started working on a usage-display function (#32) 2022-05-24 15:27:32 +02:00
Artemis-the-gr8
23852f5864 Made EnumHandler static and ensured private lists function properly, implemented player-limit-functions (#30, #15) 2022-05-23 15:57:34 +02:00
Artemis-the-gr8
276c9c48ed Made EnumHandler static (#30) 2022-05-22 22:11:29 +02:00
Artemis-the-gr8
ec9115b706 Experimented with different methods to optimize performance/speed, prepared for release on our server (#15, #14) 2022-05-22 18:32:10 +02:00
Artemis-the-gr8
0873029450 Gave up on hex-color default idea and reverted back to normal chat colors 2022-05-19 20:43:27 +02:00
Artemis-the-gr8
cc588a79f9 Tried to make a default hex color for Spigot first-time-load and default white for Bukkit 2022-05-19 14:48:35 +02:00
Artemis-the-gr8
56eb0d8148 Made top-list-max-size configurable (#16) 2022-05-19 13:59:53 +02:00
Artemis-the-gr8
dc364a567e Made sure ChatColors work correctly for Bukkit and Spigot+ (#26), added more styling options and hex color support (#20) 2022-05-18 21:34:03 +02:00
Artemis-the-gr8
7a65f4ec57 Experimenting with a way to ensure compatibility with both Bukkit and Spigot ChatColors 2022-05-18 17:03:18 +02:00
Artemis-the-gr8
ef33e36c65 Successfully implemented multi-threading! (#24) 2022-05-18 00:10:14 +02:00
Artemis-the-gr8
9aea3a92a0 Merge remote-tracking branch 'origin/top-statistic' into top-statistic 2022-05-17 23:19:59 +02:00
Artemis-the-gr8
2709232e67 Started using multi-threading to improve performance (#24) 2022-05-17 23:19:38 +02:00
Artemis-the-gr8
42bdca42df Github testing 2022-05-16 17:21:13 +02:00
Artemis-the-gr8
a9dca1db83 Done with top stats formatting (#22, #9, #1) 2022-05-15 17:33:31 +02:00
Artemis-the-gr8
3db21f5970 Further experimenting with indentation 2022-05-13 13:10:32 +02:00
Artemis-the-gr8
dad332b961 Worked on formatting, started implementing method to get stats below each other at same indentation 2022-05-12 17:11:52 +02:00
Artemis-the-gr8
af23f05af4 Implemented a lot of error throwing and catching, and hopefully made an efficient method to get top stats for all types (#1) 2022-05-11 17:23:37 +02:00
Artemis-the-gr8
e21d44e119 Started working on top statistic (#1) 2022-05-11 13:40:08 +02:00
Artemis-the-gr8
17a7d10a4c Drastically improved performance by storing player+playerobject in HashMap in onEnable 2022-05-09 22:15:07 +02:00
Artemis-the-gr8
eb334c074c Testing ways to improve performance 2022-05-09 21:00:39 +02:00
Artemis-the-gr8
3a973bb762 Made output colors configurable (#8), also mostly fixed (#10, #1, #5) 2022-05-09 17:37:07 +02:00
Artemis-the-gr8
f06714e0ef Gave OfflinePlayerHandler a private list of all offlinePlayers, and added a JoinListener to update the list whenever a new player joins, fixed formatted message (#10) 2022-05-09 13:48:46 +02:00
Artemis-the-gr8
727078f464 Finished making stat command modular (#5) 2022-05-07 17:07:56 +02:00
Artemis-the-gr8
7b93153d83 Moved things around 2022-05-06 19:59:54 +02:00
Artemis-the-gr8
d2b6b9a0ca Improved tabCompleter to deal with player case, added OutputFormatter, started dividing responsibilities with StatManager 2022-05-06 13:05:58 +02:00