Commit Graph

98 Commits

Author SHA1 Message Date
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
mlus
d873711a40
Merge pull request #70 from EoD/fix-xp-sync
fix XP being lost or duplicated
2025-05-18 12:18:07 +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
319fe678f3 remove unused override in the language files 2025-05-17 19:21:25 +00:00
mlus
d465a724f5 language file fix 2025-05-15 18:03:40 +08: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
033c2b8348 use jarJar to embed the JDBC driver
This does not cause conflicts with other mods that do the same and it
reduces the dependency on the "jdbc mods" that are out there.
2025-05-02 22:40:39 +00:00
EoD
8869e26f48 migrate from ForgeGradle to ModDevGradle legacy 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
EoD
94433229b7 read level-name for servers from WorldData 2025-05-01 17:05:02 +00:00
EoD
63ff76353d add docker compose file for MySQL database 2025-05-01 16:58:37 +00:00
mlus
24933718b5
Merge pull request #49 from EoD/add-issue-tracker
add issue tracker to mods.toml
2025-05-02 00:37:23 +08:00
mlus
c1778a956c fix error symbol 2025-05-02 00:35:47 +08:00
EoD
39239fbb64 add issue tracker to mods.toml 2025-05-01 16:34:23 +00:00
mlus
b6f76a6af2
Merge pull request #39 from EoD/add-database-compat-flag
add configuration for legacy serialization
2025-05-02 00:28:27 +08:00
mlus
4b7a5dfc1c
Merge pull request #38 from EoD/fix-sophisticated-table-creation
fix database setup without sophisticated backpack
2025-05-02 00:25:57 +08:00
mlus
08e73d00da
Merge pull request #37 from EoD/fix-sophisticated-backpack
fix hidden NoClassDefFoundError
2025-05-02 00:25:03 +08:00
mlus
1a0742828b
Merge pull request #43 from EoD/fix-armor-dupe
fix armor duping
2025-05-02 00:23:02 +08:00
EoD
32856ccd67 fix hidden NoClassDefFoundError
net.p3pp3rf1y.sophisticatedbackpacks throws a NoClassDefFoundError when
sophisticated backpacks is not installed.
This exception never reaches the logs for unknown reasons.

Checking explicitly for ModList.get().isLoaded() ensures that the mod is
loaded.

Fixes regression of 439c7ee5bb
2025-05-01 16:16:42 +00:00
EoD
a2f7d13877 closes connection on sophisticated backpack 2025-05-01 16:15:54 +00:00
EoD
e8abf6a360 fix database setup without sophisticated backpack
Fixes SQLException:
java.sql.SQLSyntaxErrorException: Table 'playersync.backpack_data' doesn't exist

Fixes regression of 9ee7f9a95a
2025-05-01 16:15:54 +00:00
EoD
0fb6bb81e1 fix armor dupe bug
The continue "skipped" the armor entries in the database instead of
writing an explicit "air" item into the slot.

When restoring, only existing entries are being restored, all other
items are left untouched. Allowing to dupe items in armor slots.
2025-05-01 16:14:46 +00:00
EoD
2331485970 make sure the MySQL dependency is installed 2025-05-01 16:09:57 +00:00
mlus
92e95a94a4
Merge pull request #36 from EoD/trace-logs
add trace logs for all SQL queries
2025-05-01 21:04:11 +08:00
mlus
d38383a22d
Merge pull request #35 from EoD/update-gradlew
bump Gradle to Forge 47.4.0 and update mod config
2025-05-01 21:03:43 +08:00
EoD
44a3e9ca8c add configuration for legacy serialization 2025-04-25 23:31:43 +00:00
EoD
a510b091db add trace logs for all SQL queries
Can be enabled by starting minecraft with
-Dforge.logging.console.level=trace
2025-04-25 20:40:16 +00:00
EoD
795ca6cedf fix clients to require PlayerSync to be installed 2025-04-25 20:36:40 +00:00