[INACTIVE][MECH/SEC] Cleaner v1.8 (Inventory Hitman) [714]

Discussion in 'Inactive/Unsupported Plugins' started by Nijikokun, Jan 10, 2011.

     
  1. Offline

    Nijikokun

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Cleaner
    SiteDownload 1.8 (621+ & Permissions)Donate

    Cleaner is a plugin to help you maintain users inventories. Why? Everyone likes to be a little dangerous. Now you can prevent it.

    Cleaner allows you to scan, preview, force removal of items, cleaning, forced cleaning, and more!

    Install:
    1. First, grab the Permissions plugin if you don't have it already.
      1. Modify your permissions file (plugins/Permissions/config.yml) with the permissions included in the README.txt included in this archive.
    2. Download & Extract all the files into your base directory of bukkit.
      • Configure your items.db
    3. Reload the server or Enable the plugin via console. Enjoy!
    Commands:
    • /wipe - Wipe all inventories of online players on the server.
      • /wipe -f - Wipe all inventories & quickbars of online players on the server.
    • /clean - Clean your inventory without harming the quickbar
      • /clean -f - Force clean the entire inventory.
      • /clean [player] - Clean another player without harming their quickbar
      • /clean [player] -f - Clean another player's entire inventory.
    • /scan [item] - Scans every online player to see if they have the item
      • /scan [item] -r - Removes 1 of every item from every player who has it.
      • /scan [item] -f - Removes every instance of item from every player who has it.
      • /scan [item] [amount] - Scans every online player to see if they have the item under amount
      • /scan [item] [amount] -r - Removes the amount of item from any player who has it.
      • /scan [item] [amount] -f - Removes every instance of item from every player who has it.
    • /scan [player] - Verbose scan of a players inventory (Possible client crash due to Notch Line length / color bug)
      • /scan [player] [args] - Does the same for a player as the item scanning.
    • /preview [player] - View a players inventory and store yours for later
    • /replace [player] - Replaces a players inventory with yours.
      • /replace [item] [with] - Globally replace an item with another in everyone's inventory.
      • /replace [player] [item] [with] - Replace an item with another item in a players inventory.
    • /revert - Restores your inventory after you are done viewing another players inventory
    Permissions Nodes:
    Code:
    [ PERMISSIONS ]
        - Cleaner contains the following Permissions:
    
            cleaner.clean
                cleaner.clean.force
                cleaner.clean.player
                    cleaner.clean.player.force
            cleaner.preview
                cleaner.preview.restore
            cleaner.replace
                cleaner.replace.items
                cleaner.replace.player
                    cleaner.replace.player.items
            cleaner.scan
                cleaner.scan.items
                cleaner.scan.remove
                    cleaner.scan.remove.force
                cleaner.scan.player
                    cleaner.scan.player.remove
                        cleaner.scan.player.remove.force
    
        - Some examples of how you could set this up:
            cleaner.clean
            cleaner.scan
            Would allow you to scan and clean but nothing else.
    
        - Advanced:
            cleaner.clean
            cleaner.clean.*
            cleaner.scan.player
            cleaner.scan.player.*
            Gives you access to everything under .clean & .scan.player
    
        - Easy for admins:
            cleaner.*
            Gives you access to everything.

    Changelog
    • 1.8
      • Updated to 621
      • Changed /restore to /revert
    • 1.7
      • Updated to support Permissions plugin.
    • 1.6
      • Contained fixes.
    • 1.5
      • Converted for Bukkit
    • 1.4
      • Added /wipe command.
      • Added partial username support to all commands.
    • 1.3
      • Contains various fixes / missing messages captured by testing.
    • 1.2
      • Added more verbose permissions to cleaner in Cleaner/permissions.settings for sub-commands / features
    • 1.1
      • Added /replace commands
      • Patched up the /clean [player] command now outputs a message with confirmation.
    • 1.0
      • Initial Release
    Item name control Database: (Whew long name, IncDB for short)[size=x-small]

    This is controlled by items.db inside of the Cleaner/ directory. This controls item name <- to -> id mapping.
    This is a single usage map (actually, never tested multiple) for custom item names inside the plugin.
    Currently all of the newer plugins that I've been releasing will be utilizing these (if needed).
    This contains the items.db and some example entries. Check it out, its pretty cool.[/size]
  2.  
  3. Offline

    RustyDagger

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    wow considered taking a brake your making plugins faster than i can read them

    Good work but pitty i cant use any cant wait it seems just about every thing my server needs it there ready to make the switch just need some kind of keep group in a zone kind of thing.
  4. Offline

    rmb938

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    How are you using groups in your permissions.settings file since there is no groups yet?
  5. Offline

    Runelynx

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    wow I can't wait to get my hands on this... so many times I've wanted to clear TNT out of inventories!!!
    Whoohooooooo
  6. Offline

    Nijikokun

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Player names. :<
  7. Offline

    rmb938

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Ah ok well the settings file still says groups.

    Edit: wipe and clean don't work with the newest craftbukkit I get this error:

    Code:
    java.lang.NullPointerException
            at org.bukkit.craftbukkit.CraftInventory.setItem(CraftInventory.java:45)
            at com.nijikokun.bukkit.Listener.Cleanse(Listener.java:47)
            at com.nijikokun.bukkit.Listener.onPlayerCommand(Listener.java:78)
            at org.bukkit.plugin.java.JavaPluginLoader.callEvent(JavaPluginLoader.java:101)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:195)
            at net.minecraft.server.NetServerHandler.c(NetServerHandler.java:531)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:512)
            at net.minecraft.server.Packet3Chat.a(SourceFile:24)
            at net.minecraft.server.NetworkManager.a(SourceFile:232)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:61)
            at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:68)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:245)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:184)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:490)
    2011-01-10 17:53:50 [INFO] rmb938 issued server command: wipe -f
    2011-01-10 17:53:50 [INFO] Unknown console command. Type "help" for help.
    
  8. Offline

    Nijikokun

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Ah, Well I'll try another method, removal isn't in there yet so I tried null let me see about some other things.
  9. Offline

    Rallerbabz

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Code:
    15-01-2011 13:44:52 org.bukkit.plugin.SimplePluginManager loadPlugins
    SEVERE: Could not load plugins\Cleaner.jar in plugins: null
    org.bukkit.plugin.InvalidPluginException
            at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.j
    ava:82)
            at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.
    java:115)
            at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager
    .java:80)
            at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:37)
            at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:153)
            at net.minecraft.server.MinecraftServer.c(MinecraftServer.java:140)
            at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:104)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:177)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:512)
    Caused by: java.lang.NoSuchMethodException: com.nijikokun.bukkit.Cleaner.<init>(
    org.bukkit.plugin.PluginLoader, org.bukkit.Server, org.bukkit.plugin.PluginDescr
    iptionFile, java.io.File, java.io.File, java.lang.ClassLoader)
            at java.lang.Class.getConstructor0(Unknown Source)
            at java.lang.Class.getConstructor(Unknown Source)
            at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.j
    ava:78)
            ... 8 more
  10. Offline

    Pawned

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    http://forums.bukkit.org/threads/plugin-constructor-changed-all-plugins-need-to-be-updated.530/
  11. Offline

    Rallerbabz

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
  12. Offline

    Nijikokun

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Just updated it.
  13. Offline

    Fewmets

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    updated version gives this error with build 48
    Code:
    15-Jan-2011 10:39:29 PM org.bukkit.plugin.SimplePluginManager loadPlugins
    SEVERE: Could not load plugins\Cleaner.jar in plugins: null
    org.bukkit.plugin.InvalidPluginException
            at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:82)
            at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:115)
            at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:80)
            at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:38)
            at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:153)
            at net.minecraft.server.MinecraftServer.c(MinecraftServer.java:140)
            at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:104)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:177)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:512)
    Caused by: java.lang.ClassNotFoundException: com.nijikokun.bukkit.Cleaner
            at java.net.URLClassLoader$1.run(Unknown Source)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.net.URLClassLoader.findClass(Unknown Source)
            at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:31)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            at java.lang.Class.forName0(Native Method)
            at java.lang.Class.forName(Unknown Source)
            at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:76)
            ... 8 more
  14. Offline

    Nijikokun

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    oh my bad its the yaml file, Re-uploaded
  15. Offline

    Atomix

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Ok, lots of errors, first of all, even if you set permissions to some players, everybody can still see all cleaner commands in /help and it doesn't give ''unknown command'' error when a new player executes a command.
    Secondly, its not compatible with general plugin, as it always gives msg ''command canceled''

    then there is this error:





    Code:
    SEVERE: Could not pass event PLAYER_COMMAND to Cleaner
    java.lang.NullPointerException
            at org.bukkit.craftbukkit.inventory.CraftInventory.setItem(CraftInventor
    y.java:64)
            at org.bukkit.craftbukkit.inventory.CraftInventory.clear(CraftInventory.
    java:251)
            at org.bukkit.craftbukkit.inventory.CraftInventory.remove(CraftInventory
    .java:232)
            at com.nijikokun.bukkit.Cleaner.Listener.Cleanse(Listener.java:48)
            at com.nijikokun.bukkit.Cleaner.Listener.onPlayerCommand(Listener.java:7
    9)
            at org.bukkit.plugin.java.JavaPluginLoader.callEvent(JavaPluginLoader.ja
    va:134)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:199)
            at net.minecraft.server.NetServerHandler.c(NetServerHandler.java:540)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:521)
            at net.minecraft.server.Packet3Chat.a(SourceFile:24)
            at net.minecraft.server.NetworkManager.a(SourceFile:232)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:63)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:104)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:261)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:197)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:512)




    Please make it compatible with userGroups plugin so we can allow cleaner commands only to admins,
    thank you.
  16. Offline

    Nijikokun

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    It's still broken due to bad code in bukkit when replacing an item. Scanning still works however. I'm waiting for permissions in bukkit rather than a plugin to support.
  17. Offline

    Racha

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Working, but not cleaning anything.
  18. Offline

    Fewmets

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    lol read Nijikokun's post directly above yours :p
  19. Offline

    SeeD419

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Well this will certainly be useful when released.
  20. Offline

    Nijikokun

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Works for 66+!
  21. Offline

    [Kor]Deer

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Code:
    2011. 1. 17 오후 8:44:57 org.bukkit.plugin.SimplePluginManager callEvent
    심각: Could not pass event PLAYER_COMMAND to Cleaner
    java.lang.NullPointerException
            at org.bukkit.craftbukkit.inventory.CraftInventory.setItem(CraftInventor
    y.java:64)
            at org.bukkit.craftbukkit.inventory.CraftInventory.clear(CraftInventory.
    java:251)
            at com.nijikokun.bukkit.Cleaner.Listener.Cleanse(Listener.java:48)
            at com.nijikokun.bukkit.Cleaner.Listener.onPlayerCommand(Listener.java:1
    30)
            at org.bukkit.plugin.java.JavaPluginLoader.callEvent(JavaPluginLoader.ja
    va:134)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:199)
            at net.minecraft.server.NetServerHandler.c(NetServerHandler.java:540)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:521)
            at net.minecraft.server.Packet3Chat.a(SourceFile:24)
            at net.minecraft.server.NetworkManager.a(SourceFile:232)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:63)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:104)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:261)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:197)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:512)
    
  22. Offline

    oliverw92

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    So this definitely won't work with the UserGroups plugin then?
  23. Offline

    fffizzz

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    I had tried the permissions file with and without the trailing ,

    however ALL users can use all commands from this plugin. Im using craftbukkit 66 and 1.5 of cleaner.

    Code:
    #Minecraft Properties File
    #Mon Jan 17 13:03:33 EST 2011
    can-clean-player-force=admins,
    can-replace-player=admins,
    can-clean-force=*
    can-preview=fffizzz,
    can-scan-force-remove=admins,
    can-scan-remove=admins,
    can-clean=fffizzz,
    can-replace-items=admins,
    can-scan=admins name,
    can-replace-player-items=admins,
    can-scan-items=admins,
    can-scan-player=*
    can-wipe=fffizzz,
    can-clean-player=admins,
    
    Im not using groups/users.txt since they arnt implememted yet and was using mysql for those before, is this the problem?
    file is located in the Cleaner folder which is located in the bin folder.

    thanks
  24. Offline

    KonoR

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    This plugin is quite useful, it is used on a server that I am admin on.

    We seem to have the griefers a lot, very useful for us
  25. Offline

    KiloWhiskey

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Wow, major fail on my part. Sorry. I didn't even check to see if it was adding the commands to the general.help file. Sorry about that. Great work, this is wonderful.

    It seems to work for me in craftbukkit 53 (except for /scan <player> which still crashes my client just like it did on the last hmod), but everyone on the server gets the command list in /help. I'm using groupusers.jar for permissions (as well as the inbuilt permissions file for access control) and it works to keep everyone from using it, but they all still have the /help info there. Anyway you can remove /help all together until there is a way to restrict it to the allowed users?
  26. Offline

    Nijikokun

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Updated with working permissions & updates to items.db formatting.
  27. Offline

    kablam

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    You are all kings and queens amongst men and women. Thank you for your time and effort!
  28. Offline

    Nijikokun

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Re-download, fix was re-uploaded.
  29. Offline

    saiek

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    confirmed crashing on current build when doing /scan [player]
  30. Offline

    saiek

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    when you do /preview [player] and then do /restore, you lose the armor your wearing. 70+ build, latest cleaner version
  31. Offline

    ChuckBartowski

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Crashes when replacing a players inventory on latest build. :/

Share This Page