Commit Graph

132 Commits

Author SHA1 Message Date
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