Inactive [ADMN] ChangeDat v1.4.1b - Change players inventory while they're offline (and online) [1337]

Discussion in 'Inactive/Unsupported Plugins' started by Sixael, Jul 10, 2011.

  1. Offline


    ChangeDat - Modify players inventory in-game while they're on- and offline
    Version 1.4.1b - Download in attachment (external below description)

    Well, another plugin I needed for my server and might be useful for anyone...
    Easy to use: just load the players inventory, change it, save it, done.

    This plugin allows ops and players with permissions to modify the inventory of offline players.
    <Edit by Moderator: Redacted mediafire url>

    /cdload <targetname>
    <font color="rgb(136, 136, 136)">-loads the inventory of the target.</font>
    /cdsave <targetname>
    <font color="rgb(136, 136, 136)">-saves the inventory of the target.</font>
    <font color="rgb(136, 136, 136)">-restores the users inventory after using cdload.</font>
    /cdscan <itemid>
    <font color="rgb(136, 136, 136)">-scans all player.dats for the item.</font>

    Permissions (default by OP):
    <font color="rgb(136, 136, 136)">-needed for cdload and cdrestore command.</font>
    <font color="rgb(136, 136, 136)">-needed for cdsave command.</font>
    <font color="rgb(136, 136, 136)">-needed for cdscan command.</font>

    For Programmers:
    If you wish to use this for your own plugin, there are currently two methods that can be used from outside:
    loadOfflineInventory(File file) and saveOfflineInventory(File file, ItemStack[][] inventory).
    The first method loads the Inventory by the players dat file, the parameter of course is this file. The method returns an ItemStack[][].
    ItemStack[0] = items (An ItemStack Array with 36 fields), ItemStack[1] = armor (An ItemStack Array with 4 fields).
    The second one saves the inventory, the first parameter is again a ItemStack[][], the structure of this object is the same as you get returned by the load method. The second parameter is the file you want to save the inventory in.

    Next releases:
    Change this plugin into a full ingame dat editor (this will take a lot of time).
    Automatic deletion of old dat files (if needed).
    Spout support.

    v1.4.1b: compiled with java 6 again.
    v1.4.1: fixed cdscan command, changed to PermissionsBukkit.
    v1.4: fixed loading items without damage data, can now be used as API.

    earlier builds:

    Show Spoiler
    v1.3: added support for online players.
    v1.2.5: added new permissions nodes.
    v1.2.4: removed world parameter.
    v1.2.3: removed messy code and stuff.
    v1.2.2: added case sensitivity again.
    v1.2.1: renamed command (cdclose is now cdrestore), added automatic restoring of the inventory when disconnecting or reloading the server, removed case sensitivity.
    v1.2: added new command (cdscan).
    v1.1: added new command (cdclose).
    v1.0: release.

    Attached Files:

    Last edited by a moderator: Nov 27, 2016
  2. Offline


    Check on 1.4 would be awesome!
  3. Offline


    Hello, nice plugin !

    But I get this error when I use /cdscan command :
    CB Build : #1000

    Than you for helping me.

  4. Offline


    I have same problem with /cdscan. Would be nice to get that fixed. Error is same as above.
  5. Offline


    add so you can modify e players inventory when they are online, open them like a chest! ive seen that and it would be perfect!
  6. Offline


    New version is up, cdscan finally fixed. ;)
  7. Offline


    14:33:54 [SEVERE] Could not load 'plugins/ChangeDat.jar' in folder 'plugins':
    java.lang.UnsupportedClassVersionError: bukkit/Sixael/ChangeDat/ChangeDat : Unsu
    pported major.minor version 51.0
            at java.lang.ClassLoader.defineClass1(Native Method)
            at java.lang.ClassLoader.defineClassCond(
            at java.lang.ClassLoader.defineClass(
            at Method)
            at java.lang.ClassLoader.loadClass(
            at java.lang.ClassLoader.loadClass(
            at java.lang.Class.forName0(Native Method)
            at java.lang.Class.forName(
            at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.
            at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager
            at org.bukkit.craftbukkit.CraftServer.loadPlugins(
            at org.bukkit.craftbukkit.CraftServer.<init>(
            at net.minecraft.server.ServerConfigurationManager.<init>(ServerConfigur
            at net.minecraft.server.MinecraftServer.init(
    Nothing more to say :p
  8. Offline


    Ohhhh wait, I guess I used Java 7 to compile it, one moment please. :p

    Edit: Should work now. :)
  9. Offline


    can i suggest a feature to control their health, hunger, gamemode, and player posititon as well?
  10. Offline


    you mean editing it while they're offline?
  11. Offline


  12. Offline


    Sixael , can You help me with a nasty problem ?
    My server corrupts some players .dat on save. Can you tell me what is wrong with some exemplary file and maybe how to fix it ?
    Affected player stuck on downloading terrain in some cases , and the rest have 1fps and literraly can't move.

    Edit : It seems player.dat is ok , the problem comes from player position , i could "repair" player with manually changing position in .dat file.

    Can You add position editor to this plugin ?
  13. Offline


    K, it's on my list. ;)
  14. Offline


    Update please. :'(
  15. Offline


    I'm done with written exams by the end of march, after being sober again I'll start to work on it. ;)
  16. Offline


    Hi I am looking for a plugin that changes the mode of the player when they are ofline.

    I sometimes give people Gamemode so they can build big things fast.

    Unfortunatly if they log of in gamemode then i cant remove the gamemode setting intill I see them online again.

    Dose your plugin allow me to change players settings when they are ofline. ?

    If no, do you know of a plugin that would allow me to do this.

    All the best J & R

Share This Page