InventorySQL
![]() ![]() |
|
---|
I n v e n t o r y S Q L
I n v e n t o r y S Q L
Player inventory saved into a Database
Features
Copy users' inventory in a configurable database, allowing it to be displayed on a website and use it for Server-to-Server Inventories
InventorySQL is designed to be as customizable as possible and Server Owners and Developers can choose how they'd like to save their data. Future versions will feature an automatic conversion tool.
Disclaimer
Metrics
This plugin utilises Hidendra's plugin metrics system, which means that the following information is collected and sent to mcstats.org:
- A unique identifier
- The server's version of Java
- Whether the server is in offline or online mode
- The plugin's version
- The server's version
- The OS version/name and architecture
- The core count for the CPU
- The number of players online
- The Metrics version Opting out of this service can be done by editing plugins/Plugin Metrics/config.yml and changing opt-out to true or turning enable-metrics to false in InventorySQLs Configuration.
Autoupdater
This Plugin uses Updater. It will automatically search for Updates. If you'd like to disable this feature you can turn it off in the Configuration by setting auto-update to false.
For Serverowners
- Addons
- Installation
- Configuration
- Localisation
- Frequently Asked Questions (FAQ)
- For Developers (API)
- Special Thanks
Permissions
InventorySQL.*: description: legacy-styled Permission for anything children: InventorySQL.reload: true InventorySQL.save.*: true InventorySQL.reload: description: Allows you to reload Language or Configuration default: op InventorySQL.save.*: description: legacy-styled Permission for anything related to saving children: InventorySQL.save.other: true InventorySQL.save.self: true InventorySQL.save.other: description: Allows you to save other players default: op InventorySQL.save.self: description: Allows you to save yourself default: true
InventorySQL.switch.self -> switching for yourself (No default yet) InventorySQL.switch.other -> switching for others (No default yet)
Commands
<Optional> [Required]
- /invSQL reload config : reloads config
- /invSQL reload language : reloads language file
- /invSQL save <player> : saves yourself or the given player
- /switch [server] <player> : moves yourself or the given player to the given Server
Links
License
Version 3.0 is now under the zlib/libpng License, Versions before 3.0 are still licensed under Apache License 2.0
Contact
You can find me in IRC: #invsql on irc.esper.net Please do not ask me for any Messenger just because you would like to be in my list.
If you like InventorySQL, please consider donating to the project via paypal, using the link on the top-right of the BukkitDev page :)
@manfie
Is the newest version works on 1.6.4?
@OpiMinecraftFan
Hamachi does not prevent you from using it. You just need to configure it correctly.
@obscurehero
I'm not really sure how to apply those data correctly, but i'll have a look.
what if server has hamachi? does this still works in webhost?
@manfie
Check out http://aadnk.github.io/ProtocolLib/Javadoc/
Specifically - com.comphenix.protocol.wrappers.nbt.io
Helpful?
@Mortalsinn
Could you tell me how to reproduce this errror?
I have three servers linked up via Bungee Cord and it seems the inventory is not updated and saved when switching servers via the hub server - it works but sometimes it doesn't and I get this error
http://pastebin.com/sgSCecP3
Can you tell me what that means?
@Mike2033
I don't have much examples yet, so i don't think it would help much.
@JustInTime3371
I think MCPC+ or other Bukkit/Forge Server mods should fix the Serialisation for mod items. [I have no idea how to implement a cross Version without hard linking to MCPC]
@manfie
I don't know what NBT data is, but I know that certain items that have for example a charge do not get stored correctly. When you load it on another server they are empty. I don't know if you can fix this but if you could it would be awesome
@manfie
manfie, might be interested in sharing your web code in Github with us since editing a source is taking more time than rewriting it with a package as help that already works.
Thanks
@obscurehero
I did not investigate in the NBT Data issue.
@manfie
Except for NBT data?
@JustInTime3371
Yes it should work.
Does this work with modded servers (ftb)?
@Nentify
It still uses bukkit internal methods for read and write. So please open a ticket.
@manfie
"tk.manf.InventorySQL.datahandling.serializer.SimpleSerializer" doesn't appear to be saving NBT data.
@Nentify
SimpleSerializer saves the same way bukkit saves, so nbt should be saved and loaded too.
Is it possible to get it to work with NBT data? It seems to be lost when inventories are saved.
@manfie
It works! Thanks a lot! :)
@Nentify
It's loading just fine! Next Version (Waiting approval) Snapshot 4 should fix it.
@manfie
http://pastebin.com/PHt18atL