mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-07-10 15:54:20 +00:00
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:
parent
736ecae5ff
commit
64eb39a417
10 changed files with 88 additions and 3 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue