ChestQuery

ChestQuery – Search all the chests!

This plugin utilizes the fact that LWC logs almost every chest on the map to create a powerful tool for detecting items which are disallowed or might be used to grief. It allows you to search through the chests registered with LWC and find a specific item, or even clear that item from all registered chests.

Features:

  • Hook into the LWC database and search chests for a specific item
  • Search chests using /cq search [item name or ID]
  • Purge specific items from chests using /cq clear [item name or ID]

Changelog:

Version 0.1

  • Initial Release!

To-do:

  • Add support for Lockette
  • Change all dependencies into soft dependencies

Known Bugs

  • None yet!

I would appreciate it if you submitted any bugs you found in the comments, along with a stack trace (error report) if possible.

Source Code

Note: The latest version has been compiled against Bukkit #1608 and tested with CB #2488 (1.4.5-R0.2).

You must login to post a comment. Don't have an account? Register to get one!

  • 9 comments
  • Avatar of maxiz22 maxiz22 May 21, 2013 at 04:56 UTC - 0 likes

    BFAK:maxiz22,90772137,96a6135d1a517d9be47e4e73be4b6220fce32944821e2fb0d8ca59944d193cd5

  • Avatar of rangewonk rangewonk May 16, 2013 at 00:30 UTC - 0 likes

    I would love this plugin, but sadly don't have LWC or any chest protection on my server. Is there any way I can use this or can you make one to do this without using LWC ?

    http://i41.tinypic.com/8xo64l.jpg

  • Avatar of MaximRoncace MaximRoncace Apr 10, 2013 at 22:24 UTC - 0 likes

    @ninosfl: Go

    I'll see what I can do. ;)

    EDIT: It works fine for me. What happens when you try to use it?

    Last edited Apr 10, 2013 by MaximRoncace

    Mah Server Mah Plugins

  • Avatar of MaximRoncace MaximRoncace Apr 10, 2013 at 22:23 UTC - 0 likes

    @Kazi42: Go

    @MelonCraftServer: Go

    Sorry, but I don't think I'll be able to add new features until the summer. I neglect my other, larger plugins as it is, so this one is a bit low-priority.

  • Avatar of MaximRoncace MaximRoncace Apr 10, 2013 at 22:21 UTC - 0 likes

    @Brainiacguy: Go

    This is a shot in the dark, as Eclipse is loading as I type this, but this is likely caused by a chest being removed, but not its lock.

  • Avatar of ninosfl ninosfl Apr 07, 2013 at 18:02 UTC - 0 likes

    not working on 1.5.1 :( can you update it?

  • Avatar of MelonCraftServer MelonCraftServer Apr 03, 2013 at 22:15 UTC - 0 likes

    This works great! But can it be possible to leave a certain amount or only clear if it reaches a certain threshold?

    http://i1227.photobucket.com/albums/ee422/BioSmasher/67342_zpseb8f53e7-1.gif

    MelonCraft - Best server out there. Factions, Creative, Hunger Games, Walls, Zombies, CTF, SkyGrid, Skyblock, PvP, Hardcore, And just about everything else there is.

    http://melonmc.com

  • Avatar of Kazi42 Kazi42 Mar 18, 2013 at 00:14 UTC - 0 likes

    can you make a command that searches for all chests locked by a certain player?

  • Avatar of Brainiacguy Brainiacguy Feb 19, 2013 at 02:45 UTC - 1 like
    02:44:52  [INFO] BrainiacGuy issued server command: /cq search diamond
    02:44:53  [SEVERE] java.lang.NullPointerException
    02:44:53  [SEVERE] 	at org.bukkit.craftbukkit.v1_4_R1.inventory.CraftInventory.getSize(CraftInventory.java:39)
    02:44:53  [SEVERE] 	at org.bukkit.craftbukkit.v1_4_R1.inventory.CraftInventory.getContents(CraftInventory.java:52)
    02:44:53  [SEVERE] 	at org.bukkit.craftbukkit.v1_4_R1.inventory.CraftInventory.contains(CraftInventory.java:83)
    02:44:53  [SEVERE] 	at org.bukkit.craftbukkit.v1_4_R1.inventory.CraftInventory.contains(CraftInventory.java:93)
    02:44:53  [SEVERE] 	at me.angrynerd.ChestQuery.ChestQuery.onCommand(ChestQuery.java:109)
    02:44:53  [SEVERE] 	at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44)
    02:44:53  [SEVERE] 	at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:186)
    02:44:53  [SEVERE] 	at org.bukkit.craftbukkit.v1_4_R1.CraftServer.dispatchCommand(CraftServer.java:514)
    02:44:53  [SEVERE] 	at net.minecraft.server.v1_4_R1.PlayerConnection.handleCommand(PlayerConnection.java:979)
    02:44:53  [SEVERE] 	at net.minecraft.server.v1_4_R1.PlayerConnection.chat(PlayerConnection.java:897)
    02:44:53  [SEVERE] 	at net.minecraft.server.v1_4_R1.PlayerConnection.a(PlayerConnection.java:852)
    02:44:53  [SEVERE] 	at net.minecraft.server.v1_4_R1.Packet3Chat.handle(Packet3Chat.java:44)
    02:44:53  [SEVERE] 	at net.minecraft.server.v1_4_R1.NetworkManager.b(NetworkManager.java:290)
    02:44:53  [SEVERE] 	at net.minecraft.server.v1_4_R1.PlayerConnection.d(PlayerConnection.java:112)
    02:44:53  [SEVERE] 	at net.minecraft.server.v1_4_R1.ServerConnection.b(SourceFile:39)
    02:44:53  [SEVERE] 	at net.minecraft.server.v1_4_R1.DedicatedServerConnection.b(SourceFile:30)
    02:44:53  [SEVERE] 	at net.minecraft.server.v1_4_R1.MinecraftServer.r(MinecraftServer.java:598)
    02:44:53  [SEVERE] 	at net.minecraft.server.v1_4_R1.DedicatedServer.r(DedicatedServer.java:224)
    02:44:53  [SEVERE] 	at net.minecraft.server.v1_4_R1.MinecraftServer.q(MinecraftServer.java:494)
    02:44:53  [SEVERE] 	at net.minecraft.server.v1_4_R1.MinecraftServer.run(MinecraftServer.java:427)
    02:44:53  [SEVERE] 	at net.minecraft.server.v1_4_R1.ThreadServerApplication.run(SourceFile:849)
    

    This happened when trying to search

    SafeHaven 198.8.93.103

  • 9 comments

Facts

Date created
Nov 22, 2012
Category
Last update
Nov 22, 2012
Development stage
Release
License
GNU General Public License version 3 (GPLv3)
Curse link
ChestQuery
Downloads
125
Recent file

Authors