Commit Graph

271 Commits

Author SHA1 Message Date
Artemis-the-gr8
db3f94cc80 Merge branch 'main' into database
# Conflicts:
#	dependency-reduced-pom.xml
#	pom.xml
2023-10-31 11:22:12 +01:00
Artemis-the-gr8
919d44f38b Updated to v2.1 for release 2023-10-26 11:36:28 +02:00
Artemis-the-gr8
eabf4286a5 More testing with putting stat data from files into the database 2023-09-08 13:16:10 +02:00
Artemis-the-gr8
8018834c62 Implemented small library to read json from stat files, tested inserting data from file into database 2023-08-24 13:34:44 +02:00
Artemis-the-gr8
d0c9ff83b9 Started experimenting with stat files, figured out how to get to the stats folder 2023-07-17 13:18:44 +02:00
Artemis-the-gr8
c48f913f8a Added blocks, items and entities to language.yml to prepare for more manual translation options and renamed FileHandler to YamlFileHandler 2023-06-19 13:39:43 +02:00
Artemis-the-gr8
62c13f67d9 Renamed method in LanguageKeyHandler for consistency, did some testing for database stuff 2023-06-14 13:17:10 +02:00
Artemis-the-gr8
0434bc644c Added method to insert players into database 2023-06-06 14:29:01 +02:00
Artemis-the-gr8
279020153c Shutdown ExecutorService after it's finished in OfflinePlayerHandler and made async method for initial database setup 2023-05-08 13:19:59 +02:00
Artemis-the-gr8
748498b99f Added logic to fill database with statistics and substatistics 2023-04-06 13:28:57 +02:00
Artemis-the-gr8
9d2c22bff6 Added Closable interface to deal with classes that need closing during onDisable, wrote register methods for Closable and Reloadable, and wrote logic to reload the datasource PlayerStats uses during /reload 2023-03-31 15:57:01 +02:00
Artemis-the-gr8
0057b2c530 Added Reloadable interface to more easily keep track of classes that need something on reload 2023-03-31 12:41:43 +02:00
Artemis-the-gr8
3591a879d9 Started working on database implementation, moved item/entity-related logic out of TabCompleter and into EnumHandler to better divide responsibilities 2023-03-28 15:16:37 +02:00
Artemis-the-gr8
fa0667f26a Updated documentation 2023-02-26 12:40:48 +01:00
Artemis-the-gr8
18bf8a56a7 Added method to API to check whether a player is on the exclude-list 2023-02-25 14:32:36 +01:00
Artemis-the-gr8
18ac4ecf00 Updated version number in plugin.yml, and made API #getVersion read the value from the plugin description and return the major version number only 2023-02-23 13:49:23 +01:00
Artemis-the-gr8
4a67dfef10 Moved some logic out of StatRequest to keep API and core separated 2023-02-10 12:53:04 +01:00
Artemis-the-gr8
e8cf9ade47 Added feedback for /stat commands with excluded player targets (#88), fixed bug (#128) 2023-02-06 15:50:02 +01:00
Artemis-the-gr8
3dd43d3a8d Finished clean-up after merging the updated main branch into v2.0 2023-02-06 12:26:03 +01:00
Artemis-the-gr8
6298bf075c Merged locale-bugfix into v2.0 2023-02-06 12:16:34 +01:00
Artemis-the-gr8
991ab06f9f Merge branch 'main' into v2.0
# Conflicts:
#	src/main/java/com/artemis/the/gr8/playerstats/commands/TabCompleter.java
#	src/main/java/com/artemis/the/gr8/playerstats/commands/cmdutils/TabCompleteHelper.java
#	src/main/java/com/artemis/the/gr8/playerstats/core/msg/msgutils/LanguageKeyHandler.java
#	src/main/java/com/artemis/the/gr8/playerstats/msg/msgutils/StringUtils.java
2023-02-06 12:10:16 +01:00
Artemis-the-gr8
4e945ad0b5 Changed all #toLowerCase and #toUpperCase methods to use English Locale instead of default 2023-02-01 15:12:33 +01:00
Artemis-the-gr8
bf35582b13 Added way to get excluded player with corresponding config setting (#128, #129) 2022-12-06 20:29:04 +01:00
Artemis-the-gr8
a6e15828c1 Changed accent color for exclude-info-msg and removed unnecessary plugincolor 2022-12-05 15:43:49 +01:00
Artemis-the-gr8
89c2a0f85f Small formatting fix 2022-11-25 14:14:53 +01:00
Artemis-the-gr8
520f83bb60 Added output for /statexclude list command, and feedback for add/remove (#88) 2022-11-23 17:37:19 +01:00
Artemis-the-gr8
11185468ff Removed test command (#127) 2022-11-09 16:41:56 +01:00
Artemis-the-gr8
9b62828c04 Refined and completed the new decorations 2022-11-09 13:11:41 +01:00
Artemis-the-gr8
a12521e529 Added more festive decorations and wrote test method to see and compare them in-game 2022-11-03 16:35:45 +01:00
Artemis-the-gr8
7a48e59049 Added formatDefaultNumber to StatNumberFormatter for API 2022-11-02 13:33:31 +01:00
Artemis-the-gr8
c4b963a057 Separated internal code from api code to improve future maintainability 2022-11-01 14:18:25 +01:00
Artemis-the-gr8
fc1ac7c07e Improved rainbow theme 2022-10-29 13:45:39 +02:00
Artemis-the-gr8
a43a4e5d16 Added Halloween decorations 2022-10-29 13:16:59 +02:00
Artemis-the-gr8
2d5e9d4515 Removed unnecessary name colors in PluginColor 2022-10-28 12:11:36 +02:00
Artemis-the-gr8
260fad2d4a Made sharerName have a random rainbow gradient in rainbow mode 2022-10-28 12:00:26 +02:00
Artemis-the-gr8
d5c1c44841 Wrote exclude info message and added more rainbow easter eggs 2022-10-27 18:09:34 +02:00
Artemis-the-gr8
c7a6160cc8 Started working on feedback (#88, #51) 2022-10-26 21:20:22 +02:00
Artemis-the-gr8
f69367cb31 The exclude function now works completely, the only thing left is give fancier feedback (#88) 2022-10-26 12:59:10 +02:00
Artemis-the-gr8
da49c46539 Worked on transforming playerNames into UUIDs and vice versa for the ExcludeCommand (#88) 2022-10-23 17:37:38 +02:00
Artemis-the-gr8
e158b4480d Made ConfigHandler, LanguageKeyHandler, OfflinePlayerHandler and EnumHandler into singletons, merged RequestProcessor into RequestManager and wrote TabComplete logic (#88) 2022-10-21 17:34:08 +02:00
Artemis-the-gr8
6c9e8b2b9d Fixed StringUtils bug (#125) 2022-10-21 12:37:53 +02:00
Artemis-the-gr8
fc759da100 Added TabCompleter for ExcludeCommand, moved command initializing to its own method in Main, and fixed bug where commandsender wasn't set for internal StatRequests (#88) 2022-10-20 15:58:30 +02:00
Artemis-the-gr8
51a9140a9a Added ExcludeCommand and added methods for excluding players/checking exclude status in OfflinePlayerHandler (#88) 2022-10-19 13:17:02 +02:00
Artemis-the-gr8
ca63eca1a0 Gathered the request-rewrite and pre-work for excluding players into new branch for v2.0 2022-10-18 14:41:55 +02:00
Artemis-the-gr8
eca25980e5 Moved implementation of the API interface to the Main class 2022-10-16 15:39:28 +02:00
Artemis-the-gr8
abf85b3948 Separated request-generating from request-executing to keep all execute-logic within the statistic package (#114) 2022-10-16 15:23:13 +02:00
Artemis-the-gr8
03efe136b0 Moved all arg-analyzing to StatCommand and got rid of InternalStatRequest (#114) 2022-10-15 17:34:52 +02:00
Artemis-the-gr8
b1c015e156 Started to move arg-processing to StatCommand after testing (feedback is no longer working with the increased StatRequest conditions of what settings are accepted) 2022-10-14 16:40:39 +02:00
Artemis-the-gr8
d16e6db036 Separated responsibility of OutputManager and ShareManager and made the RequestProcessor handle the StatRequest executing (#114) 2022-10-12 16:23:06 +02:00
Artemis-the-gr8
31713007f5 Reworked InternalStatRequest and the other classes dealing with StatRequests (#114) 2022-10-11 13:08:11 +02:00