Commit Graph

108 Commits

Author SHA1 Message Date
mlus
08e32a675e line 155 make method return so curios data won't save at the first time 2025-10-14 16:00:21 +08:00
mlus
cfa9387598 heartbeat 2025-10-14 13:45:47 +08:00
mlus
a5041917a4 chat sync reconnect system 2025-10-14 13:09:43 +08:00
mlus
9055e9d342
Merge pull request #117 from mlus-asuka/1.20.1-dev
may fix #111
2025-09-16 22:12:55 +08:00
mlus
befa36a303 may fix #111 2025-09-16 22:11:25 +08:00
mlus
7754186d12
Merge pull request #116 from mlus-asuka/1.20.1-dev
clear curios before restore?
2025-09-10 16:11:02 +08:00
mlus
c28a312f3c clear curios before restore? 2025-09-10 16:05:54 +08:00
EoD
acfef0ff7e make all config variables final
the classes never change, even if the config is modified. Only the
values we read with get() inside the classes change.
2025-07-31 23:58:12 +00:00
EoD
36847cc025 add new data_version column to server_info table 2025-07-30 23:25:58 +00:00
EoD
4fe13bd24d extract addColumnIfNotExists into separate method 2025-07-29 20:36:33 +00:00
EoD
7f06aa7511 reformat insert into server_info for readability
Use the new format capabilities on SQL queries to make the insert more
readable.
2025-07-29 20:30:35 +00:00
EoD
e1ac7adb11 allow format strings within SQL queries
This makes SQL queries more readable in some cases
2025-07-29 20:30:35 +00:00
EoD
8f77a96544 clarify executeUpdate variants with and without db 2025-07-29 20:30:35 +00:00
mlus
7a3363592e
Merge pull request #99 from EoD/make-queryresult-autoclosable
make QueryResult AutoClosable
2025-07-29 18:35:47 +08:00
mlus
cd13b282e2
Merge pull request #98 from EoD/remove-duplicate-update
remove duplicate UPDATE server_info
2025-07-29 18:33:54 +08:00
EoD
ad76e0e311 make QueryResult AutoClosable
This allows QueryResults to be used within a try() block without
explicitely closing them.
2025-07-28 22:12:47 +00:00
EoD
0e96107416 remove duplicate UPDATE server_info
the UPDATE is already happening in in the INSERT statement above
2025-07-28 22:06:45 +00:00
EoD
54cbb9c9a8 log the advancement's data type before altering
it seems that sometimes this is triggered on an existing database. This
should help identifying what is happening in these cases.
2025-07-28 21:56:24 +00:00
mlus
2ec7fec89e
Merge pull request #93 from EoD/fix-string-to-map
fix string to map generation with base64 encoding
2025-07-12 13:14:19 +08:00
mlus
0d1a26e348
Merge pull request #91 from EoD/remove-unnecessary-import-1.20.1
[1.20.1] remove unnecessary deserializeString import
2025-07-11 12:37:33 +08:00
EoD
a70605a8b6 unify item creation in curios and normal inventory
this also allows creation of placeholders within curios containers
2025-07-10 22:33:15 +00:00
EoD
53bdfe2309 simplify and exit early in stringToGenericMap 2025-07-10 22:07:55 +00:00
EoD
228b835c2a unify both stringToMap functions 2025-07-10 22:07:55 +00:00
EoD
de324a23be fix string to map generation with base64 encoding
The new base64 encoding uses "=" characters as part of its encoding.
The previous code split those and trimmed them afterwards, making the
base64 not consistent with the rest of the code that assumed "=" are
still present, like "B64:e30=".
2025-07-10 22:07:03 +00:00
EoD
4ae1954b29 remove unnecessary deserializeString import 2025-07-10 19:26:23 +00:00
EoD
a1e1616eac properly upgrade items with newer MC versions 2025-07-06 16:02:08 +00:00
mlus
d29234109b
Merge pull request #85 from EoD/organize-imports-1.20.1
[1.20.1] optimize all imports
2025-06-18 12:28:35 +08:00
EoD
1193a17010 optimize all imports 2025-06-17 23:53:10 +00:00
EoD
51200c28b3 use same save logic in 1.20.1 and 1.20.4 2025-06-17 21:20:21 +00:00
mlus
2d891db071
Merge pull request #79 from mlus-asuka/1.20.1-dev
Fix error when no player in server
2025-06-06 13:02:22 +08:00
mlus
d766febb11 Fix error when no player in server 2025-06-06 12:59:52 +08:00
mlus
8f2b6d84b1
Merge branch '1.20.1' into 1.20.1-dev 2025-06-05 03:30:19 +08:00
mlus
a774688d45 Full tested ChatSync Feature 2025-06-05 03:28:24 +08:00
EoD
d83bad5a33 fix XP being lost or duplicated
The current calculation did not work for larger amounts of levels
and either removed or added levels unintentionally.
2025-05-17 19:32:20 +00:00
EoD
6ac6f297af encode unknown items using Paper
This allows using PlayerSync with different minecraft versions and
even different sets of mods.

All unknown items are replaced by Paper with its original NBT data
encoded into the paper item.
2025-05-04 16:48:57 +00:00
mlus
ba879dabdb
Merge pull request #63 from EoD/disable-chat-sync-by-default
disable chat sync by default
2025-05-04 20:29:22 +08:00
mlus
39b69424e8 so it is 2.0.0 release 2025-05-04 18:40:39 +08:00
EoD
14ea54fcf3 disable chat sync by default 2025-05-03 21:50:17 +00:00
mlus
a9c4df2a61
Merge pull request #58 from EoD/migrate-to-moddevgradle
Migrate to ModDevGradle legacy to embed JDCB driver
2025-05-04 00:05:26 +08:00
mlus
162df73189
Merge pull request #57 from EoD/fix-advancements-on-brand-new-server
fix advancement restore on brand new servers
2025-05-03 11:17:18 +08:00
mlus
19559bf9e2
Merge pull request #55 from EoD/fix-chat-config-being-ignored
fix chat sync always being enabled
2025-05-03 11:15:59 +08:00
EoD
ce0e173a9e register JDBC driver to work around Forge bug 2025-05-02 22:40:39 +00:00
EoD
284a1caf44 remove NotNull annotations 2025-05-02 22:38:36 +00:00
EoD
ba33d5271b fix advancement restore on brand new servers
On a brand new server, there is no advancements directory throwing an
IOException if we try to write a file to it.
2025-05-02 21:19:34 +00:00
EoD
5a3e157879 fix chat sync always being enabled
reading CHAT_SYNC immediately within FMLCommonSetupEvent can lead to
timing issues that the default value instead of the real config value is
being returned.

Moving them within event.enqueueWork() fixes the timing issue.
2025-05-02 20:32:29 +00:00
EoD
0cbca7cfd8 add logging for chat server 2025-05-02 20:32:29 +00:00
EoD
a1d1737d04 fix advancement sync for new players 2025-05-02 19:16:58 +00:00
EoD
44eb3321b4 make advancement sync optional 2025-05-02 17:40:26 +00:00
EoD
7ece814357 fix advancement json restore
Previously, the json was written too late and never reloaded.
This commit moves the advancement restoration from the PlayerLoggedInEvent
to the earlier onDatapackSyncEvent.
At the same time, it forces a reload of the json files, making sure the
client is informed about the update advancements.
2025-05-01 17:05:03 +00:00
EoD
37d0eb2931 fix storing advancement json on dedicated servers 2025-05-01 17:05:03 +00:00