Accessing an offline player's inventory?

Discussion in 'Plugin Development' started by ChrisixStudios, Feb 5, 2013.

Thread Status:
Not open for further replies.
  1. Offline

    ChrisixStudios

    Is it possible to access a offline players inventory without the use of craftbukkit.jar?

    I need this to make a plugin for my dad that can convert money into emeralds.
     
  2. Offline

    KeybordPiano459

  3. Offline

    ChrisixStudios

  4. Offline

    Technius

    You could read the player's NBT file. That's a lot more complicated, though. You'll have to ask Bukkit to add support for OfflinePlayer inventory access.
     
  5. Offline

    Drkmaster83

  6. Offline

    caseif

    I once saw a library on the Bukkit forums designed to make this type of thing easier. I think it was called something along the lines of BetterOfflinePlayer.
     
  7. Offline

    ChrisixStudios

    I've looked at that and it needed the craftbukkit.jar
     
  8. Offline

    caseif

    You're right; I probably should have mentioned that in my post. I was just letting you know of a tool which might make it a bit easier for you, but I don't think it's possible to accomplish what you want to without using NMS code.
     
Thread Status:
Not open for further replies.

Share This Page