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

    Sixael

    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.

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

    Commands:
    /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>
    /cdrestore
    <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):
    "changedat.load"
    <font color="rgb(136, 136, 136)">-needed for cdload and cdrestore command.</font>
    "changedat.save"
    <font color="rgb(136, 136, 136)">-needed for cdsave command.</font>
    "changedat.scan"
    <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.

    Changelog:
    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

    Sixael

    Check on 1.4 would be awesome!
     
  3. Offline

    Swadon

    Hello, nice plugin !

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

    Than you for helping me.


    Swadon.
     
  4. Offline

    kerbe

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

    IMF_lykosen11

    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

    Sixael

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

    Crisssss

    Code:
    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(ClassLoader.java:632)
            at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
            at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:14
    1)
            at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
            at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
            at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
            at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.
    java:36)
            at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.
    java:24)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
            at java.lang.Class.forName0(Native Method)
            at java.lang.Class.forName(Class.java:247)
            at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.j
    ava:170)
            at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.
    java:215)
            at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager
    .java:136)
            at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:136)
            at org.bukkit.craftbukkit.CraftServer.<init>(CraftServer.java:112)
            at net.minecraft.server.ServerConfigurationManager.<init>(ServerConfigur
    ationManager.java:52)
            at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:136)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:348)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    Nothing more to say :p
     
  8. Offline

    Sixael

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

    Edit: Should work now. :)
     
  9. Offline

    solidsnake916

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

    Sixael

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

    solidsnake916

  12. Offline

    Lexington

    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

    Sixael

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

    mario00037

    Update please. :'(
     
  15. Offline

    Sixael

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

    jasonrobin

    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