-
Notifications
You must be signed in to change notification settings - Fork 81
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Per world inventory data import #433
base: main
Are you sure you want to change the base?
Conversation
5b7c514
to
97490d0
Compare
Test Build: |
Got some early feedback on the current state of this pull request:
In case the line numbers don't line up, I did do a |
Well this is quite a bit more important now that PerWorldInventory's repository has been archived with no explanation, and it was never even updated to 1.17, which tells me that it's a dead plugin. |
I was able to progress more with this patch: diff --git a/src/main/java/com/onarandombox/multiverseinventories/dataimport/perworldinventory/PwiImportHelper.java b/src/main/java/com/onarandombox/multiverseinventories/dataimport/perworldinventory/PwiImportHelper.java
index fa76d5c..2c606ac 100644
--- a/src/main/java/com/onarandombox/multiverseinventories/dataimport/perworldinventory/PwiImportHelper.java
+++ b/src/main/java/com/onarandombox/multiverseinventories/dataimport/perworldinventory/PwiImportHelper.java
@@ -173,6 +173,7 @@ class PwiImportHelper {
PlayerProfile pwiPlayerProfile;
try {
JSONObject jsonObject = (JSONObject) PARSER.parse(new FileInputStream(pwiPlayerDataFile));
+ jsonObject.put("==", "me.ebonjaeger.perworldinventory.data.PlayerProfile");
pwiPlayerProfile = (PlayerProfile) SerializationHelper.deserialize(jsonObject);
} catch (Exception e) {
e.printStackTrace(); Here's my build with that patch: Multiverse-Inventories-4.2.3-SNAPSHOT.zip I get this output now:
|
This is a feature I would be very interested in, perworldinventory-kt no longer seems active :/ |
Is there any progress yet? I could use it too. |
i made #523 to adress your concerns, the error you posted is because you did not run "/pwi migrate" before running "/mvinv import".
All you did here was trick pwi into thinking your stuff was already migrated, this is bad. 👎🏼 |
Add support for PerWorldInventory data import! Fixes #410. Will need #432 to be merged first.