Add serialization support to kits (#3248)

Co-authored-by: MD <1917406+mdcfe@users.noreply.github.com>

This PR makes use of Paper's item serialization to serialize items into base64 allowing for all items to be properly stored without needing to manual write in special cases for every complex item. There is a config option to disable using this new serialization and use the legacy ItemDB serializer since the new serializer removes the ability to manually edit/read kits.

Defaults to not enabled

Note: The new serializer places an @ sign in front of items serialized by the new format in order to quickly determine what is serialized by the new serializer and also to retain backward compatibility with the old serializer.

Att #3114
Att #2867
Att #1694
Att #31
Att #1283
This commit is contained in:
Josh Roy 2021-06-26 16:03:27 -04:00 committed by GitHub
parent 736ecae5ff
commit 64eb39a417
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 88 additions and 3 deletions

View file

@ -1640,6 +1640,11 @@ public class Settings implements net.ess3.api.ISettings {
return config.getBoolean("pastebin-createkit", false);
}
@Override
public boolean isUseBetterKits() {
return config.getBoolean("use-nbt-serialization-in-createkit", false);
}
@Override
public boolean isAllowBulkBuySell() {
return config.getBoolean("allow-bulk-buy-sell", false);