Recent content by tartur

  • After careful consideration and due to limited usage, we’ve made the decision to discontinue the PaperMC forums. Moving forward, we recommend using Hangar for plugin uploads, and for all other community discussions and support, please join us on Discord.
  1. tartur

    Solved (De)serializing ItemStack as byte arrays goes wrong with MongoDB connection

    I saved this problem using Base64 encoding as follows: @Override public Document save() { final Inventory inventory = this.player.getInventory(); return new Document() .append("_id", this.player.getUniqueId().toString()) .append("contents"...
  2. tartur

    Solved (De)serializing ItemStack as byte arrays goes wrong with MongoDB connection

    Hi, I'm currently working on a Folia 1.21.4 project in which I work with a MongoDB connection that I use to store player's serialized inventories. Here are the methods I'm using to convert ItemStack to MongoDB Document instances and vice-versa: @Override public Document save() { final...