[ADMN/SEC/WEB] HawkEye [BukkitDev]

Discussion in 'Archived: Plugin Releases' started by oliverw92, Aug 15, 2011.

  1. Offline

    oliverw92

    sethgandy, phimt, matan7890 and 7 others like this.
  2. Offline

    Bronski

    I'm using Chrome. When I click in the "Keywords" field, I get:

    (Optional) List of keywords separated by commas

    ... and a similar tooltip when I click in "Exclude Filter." If that allows you to use the in-game filters like "r:20" and such, a handy reference list there is what I'm basically saying would be nice to have. If keywords means something else, then maybe a more clear explanation. Thanks :D
     
  3. Offline

    oliverw92

    Is that not enough info?
     
  4. Offline

    Bronski

    I guess I don't understand what I type in there matches against. Is it the 'data' column in the database?
     
  5. Offline

    but2002

    @oliverw92 Sometimes someone giving themselves the tool will kick them from the server, sometimes it says they have the tool and when they use it nothing comes up in chat, and sometimes it works properly. :\
     
  6. Offline

    xsolar66

    More detailed - When the server starts, you can give yourself /hawk tool, and it works fine.

    When you leave the server, and re-join, the tool still acts like a tool (doesnt destroy or place), however no message appears in chat.

    On restarting the server, it works, until someone reconnects and tries to use the tool.
     
  7. Offline

    SilencShadoW

    YAY thank u very much :) Can u allow teleports too? i got a teleport room and portal stick and so on :S ...
     
  8. Offline

    oliverw92

    It is a filter like the f: thing in-game. Say you wanted to see whos been swearing - you could put a swear word in there

    Thanks for the report I think I have an idea.

    No, teleport events will just spam it up way too much.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 18, 2016
  9. Offline

    SilencShadoW

    ur sure? hmm ok thx anyway
     
  10. Offline

    oliverw92

    Yes, I tested it on my server
     
  11. Offline

    pherce

    Your assumption is incorrect. Currently on my server we average 40 people at night and running a plugin like this and having it write to a flat file is WAY worse than the measly 59mb of memory mysql is taking up. Once you get mysql up and running and you see how fast a 1,000 radius search is... you'll never go back to flat file.

    @oliverw92 Thanks for the new anti-grief too. I put your quick rollback claim to the test with a massive tnt ball and I was impressed. Preview is amazing as well.
     
  12. Offline

    NotYetRated

    Woah this is awesome. Going to start toying around with it tonight!
     
  13. Offline

    Revenger

    I cant get the old datalog to import.

    Code:
    03:45:55 [INFO] [HawkEye] Starting HawkEye initiation process...
    03:45:55 [INFO] [HawkEye] No config.yml detected, creating default file
    03:45:55 [INFO] [HawkEye] Using Permissions for user permissions
    03:45:55 [WARNING] [HawkEye] DataLog found, disabling it. Please remove DataLog.jar!
    03:45:55 [INFO] [HawkEye] Importing DataLog configuration
    Code:
    Error! Table 'bukkit.hawk_players' doesn't exist
    And in mysql I have 2 tables datalog and hawkeye and not the bukkit.hawk_players one.

    Which is the bukkit database hawk_players I do have however dl_players.

    So it didn't update the database it seems.

    I followed the update from datalog to what it said.

     
  14. Offline

    Worlther

    I get this error:

    Code:
    2011-08-18 19:57:49 [SEVERE] Could not pass event CUSTOM_EVENT to HawkEye
    java.lang.NullPointerException
        at uk.co.oliwali.HawkEye.entry.DataEntry.setInfo(DataEntry.java:189)
        at uk.co.oliwali.HawkEye.entry.DataEntry.setInfo(DataEntry.java:178)
        at uk.co.oliwali.HawkEye.entry.DataEntry.setInfo(DataEntry.java:175)
        at uk.co.oliwali.HawkEye.entry.ContainerEntry.<init>(ContainerEntry.java:27)
        at uk.co.oliwali.HawkEye.listeners.MonitorInventoryListener.onInventoryClose(MonitorInventoryListener.java:33)
        at org.getspout.spoutapi.event.inventory.InventoryListener.onCustomEvent(InventoryListener.java:32)
        at org.bukkit.plugin.java.JavaPluginLoader$88.execute(JavaPluginLoader.java:862)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:338)
        at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:169)
        at net.minecraft.server.Packet101CloseWindow.a(SourceFile:16)
        at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:89)
        at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:435)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:454)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:363)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
     
  15. Offline

    SilencShadoW

    Did u fixed the log delete after /hawk undo?
     
  16. Offline

    GmK

    I tend to get this error:

    Code:
    2011-08-18 21:34:27 [SEVERE] Exception in thread "Thread-13316"
    2011-08-18 21:34:27 [SEVERE] java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
    2011-08-18 21:34:27 [SEVERE] at java.util.ArrayList.rangeCheck(ArrayList.java:604)
    2011-08-18 21:34:27 [SEVERE] at uk.co.oliwali.HawkEye.entry.ContainerEntry.getStringData(ContainerEntry.java:31)
    2011-08-18 21:34:27 [SEVERE] at java.util.ArrayList.get(ArrayList.java:382)
    2011-08-18 21:34:27 [SEVERE] at uk.co.oliwali.HawkEye.util.InventoryUtil.createChangeString(InventoryUtil.java:102)
    2011-08-18 21:34:27 [SEVERE] at uk.co.oliwali.HawkEye.DisplayManager.displayPage(DisplayManager.java:47)
    2011-08-18 21:34:27 [SEVERE] at uk.co.oliwali.HawkEye.callbacks.SearchCallback.execute(SearchCallback.java:27)
    2011-08-18 21:34:27 [SEVERE] at uk.co.oliwali.HawkEye.database.SearchQuery.run(SearchQuery.java:186)
    
    Any idea what thats about?
     
  17. Offline

    68x

    Hi there again ... Finally got my BB logs to converted properly (simple typo in converting query), the problem I am facing right now is using the /hawkeye tool command, I have a log (ID: 17) at hand and whenever I try to use the tool on a block I just edited it doesn't work. The problem is that the data is being logged because I can use /hawkeye search p:68x r:10 and my edits popup. I have no clue what is wrong ...
     
  18. Offline

    pherce

    @oliverw92 We have the same problem but2002 has. Random people lose the ability to query via the log tool and searching. They get the message "Hawk tool enabled! Left click..." but no results appear (no exceptions either). Seems to happen after reloads and does not effect every person with Hawk access.

    Running 1060 with your latest release.
     
  19. Offline

    ACallander

    I'm having that issue.. what is the typo?
     
  20. Offline

    Apachekiller

    We will? lol
     
  21. Offline

    ACallander

    Okay so I run the script and it wants me to create tables for each hawkeye table (hawkeye, hawk_players, etc...) Do I have to manually input or what can I add to the script that will allow it to automatically add those tables?

    Code:
    -- Block break
    INSERT INTO `hawkeye` (date, player_id, action, world_id, x, y, z, data, plugin)
    SELECT FROM_UNIXTIME(`bbdata`.date), `hawk_players`.player_id, 0, `hawk_worlds`.world_id, `bbdata`.x,  `bbdata`.y,  `bbdata`.z, `bbdata`.type, 'HawkEye'
    FROM `bbdata`, `hawk_players`, `hawk_worlds`, `bbusers`, `bbworlds`
    WHERE `bbdata`.action = 1
    AND `hawk_players`.player = `bbusers`.name
    AND `bbusers`.id = `bbdata`.player
    AND `hawk_worlds`.world = `bbworlds`.name
    AND `bbworlds`.id = `bbdata`.world
    Code:
    Error Code: 1054. Unknown column 'hawk_players.player_id' in 'field list'
    My table "hawkeye" has the column player_id so I don't understand what is wrong.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 18, 2016
  22. Offline

    but2002

    I noticed that there isn't a "maximum" number of days for records to be kept. We don't have an infinate amount of disk space so could we get an option added to keep records for a finite amount of time?
     
  23. Offline

    GmK

    Uhm...

    Code:
    cleanse-age: '0'       #Max-age of records in the database in the format '5w8d2h9m4s. Set to '0' to turn this feature off.
     
  24. Offline

    but2002

    I didn't have that in the default config.
    Edit: NVM, it's buried in a craptonne of un-related stuff. I thought it would have beein the MySQL section.
    Edit2: NVMNVM, I guess it's sort of related. My bad!
     
  25. Offline

    sharkale

  26. Offline

    Raqn

    Would you ever use a H2 database for flat file?

    I cannot get MySQL working on my server at all despite hours of trying to get HawkEye working. I had this problem with logblock and I am afraid I have no idea how to completely start anew, google hasnt helped and neither has uninstalling re-installing. It would just be nice to have a flat-file alternative
     
  27. Offline

    zcleaver

    Lags my server a ton... I switched to Logblock and it works fine... Please fix this and I will use your's again.
     
  28. Offline

    Geoff Winans

    This plugin seems to be missing a lot of stuff. Possibly just too coarse of logging? It doesn't seem to always catch entities attached to other blocks.

    If I punch out a bunch of dirt with snow on top, the dirt comes back but the snow does not.

    =====

    Situation:
    Place a fence and a torch on top.
    Wait 30 seconds.
    Break fence (and the torch pops off).

    The fence comes back, the torch does not.

    Also, I didn't dig too deeply into the code, but are you queuing database writes?

    If not, you should. Not doing so will be the #1 contributor to this plugin causing server lag.

    MySQL can handle what's referred to as a "bulk write":

    INSERT INTO `some_table` VALUES (field1, field2, field3), (field1, field2, field3), (field1, field2, field3);

    =====

    Your schema is pretty sound, so you're good there.
     
  29. Offline

    GyD

    Sometimes when I do a /hawk command ( search, preview, tool, … ) nothing is append.
    For the /hawk preview, if i write again the command, it say i've already used it. No error in the logs :/
     
  30. Offline

    Raqn

    Disregard this. Got it working and its amazing. Seriously, I am looking forward to this plugin when its more... refined.
     
  31. Offline

    Sayshal

    This could replace Big Brother, and Logblock (Even if he didnt stop work on BB)
     

Share This Page