[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

    embty

    A player reported a weird tnt explosion in his base I went to check it out so I wrote down /ha here to see what exactly happened, but couldnt find any tnt placement nor explosion tracking ;/ I tried /ha search r:5 a:block-place didnt get who it was at all only cobble placements but no tnt at all. whats the parameter for explosions? or tnt placement? I had to use another logging plugin to figure out what happened :( any ideas?
    PS: it didnt even log the blocks destroyed by the explosions HA acts like it didnt happen, using bukkit 1060 and yes I made sure explosion logging is set to true.
    Edit: using the other logging plugin I was able to track down tnt placement on time 13:35:00 but while checking the same area with HA on exactly the same timing it didnt show any tnt placement.

    Hope im not bothering, Im planing on using this plugin and want to help :>
     
  3. Offline

    GmK

    @oliverw92

    Weirdest thing:

    I /spawn and do /hawk tool and can use the tool normally (placing/breaking to get info). I then /tp to a user that has problems - when I try to use the tool there, it e.g. places the log - and it just stays placed like any block. No matter how often I /hawk tool enable and disable it.

    I then /spawn again, or /tp to someone else - and immediately the tool works again normally.

    How can that be!? Does it only work in spots that actually have sth. changed? Why doesnt it like some areas? :/
     
  4. Offline

    oliverw92

    Explosions log under the 'explosion' action. The *SHOULD* show up in a /ha here. If you want to see who placed tnt you can do /ha search a:block-place f:46 r:5.

    If you do /hawk search a:explosion what happens?

    I have absolutely no idea :confused: That is seriously odd. 1.0.4 should be out in a bit so hopefully it will work ok in that.

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

    M1sT3rM4n

    I am having problems using general commands on the server.

    I gave myself correct permissions 'hawkeye.*' and when I tried to use the commands it said "Sorry Dave, we can't let you do that."
     
  6. Offline

    oliverw92

    What Permissions plugin? Because my plugin doesn't ever say 'Sorry Dave, we cant let you do that'
     
  7. Offline

    M1sT3rM4n

    I am using Permission 3.1.6. It also says v1.0.3 disabled after checking for updates.
     
  8. Offline

    embty

    Ok tried using /ha search a:block-place f:46 :r5 on the same spot "no results found" even thought theres cobble on the same timing of tnt placement "found tnt placement with lb" when i do /ha search a:explosion I get alot of environment explosions all around the map. So i tried /ha search a:explosion r:5 but no results found but on the same time of explosion HA logged all cobble or block placement < other than tnt not sure if its only tnt thought > Also could a:explosion say what caused the explosion tnt/creeper? i only found environmets explosions is that only creepers?

    Edited above::" PS: it didnt even log the blocks destroyed by the explosions HA acts like it didnt happen, using bukkit 1060 and yes I made sure explosion logging is set to true.
    Edit: using the other logging plugin I was able to track down tnt placement on time 13:35:00 but while checking the same area with HA on exactly the same timing it didnt show any tnt placement.

    Hope im not bothering, Im planing on using this plugin and want to help :>"
     
  9. Offline

    oliverw92

    Show me your console output when your server starts. It doesn't disable for no reason.

    I just checked this out in the build I am planning to release and it works fine. All I can say is I hope this new build works for you when I release it in a bit
     
  10. Offline

    embty

    Ok cool hope it works :>
     
  11. Offline

    tom

    Error! Unable to open/write to log.txt!


    When i try to search via the web interface.
     
  12. Offline

    oliverw92

    Make sure log.txt has read/write permissions. If not, turn logQueries to 'false in config.php
     
  13. Offline

    M1sT3rM4n

    Code:
    2011-08-20 19:12:25 [INFO] Starting minecraft server version Beta 1.7.3
    2011-08-20 19:12:25 [INFO] Loading properties
    2011-08-20 19:12:25 [INFO] Starting Minecraft server on *:25565
    2011-08-20 19:12:25 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-980-g4ed23b1-b1060jnks (MC: 1.7.3)
    2011-08-20 19:12:27 [INFO] [Permissions] (Yeti) was initialized.
    2011-08-20 19:12:27 [INFO] Schedualing task.
    2011-08-20 19:12:27 [INFO] uCreate version 2.0.4 is enabled!
    2011-08-20 19:12:27 [INFO] [Permissions] version [3.1.6] (Yeti)  loaded
    2011-08-20 19:12:27 [INFO] Preparing level "world"
    2011-08-20 19:12:28 [INFO] Preparing start region for level 0 (Seed: -2263935267217372397)
    2011-08-20 19:12:29 [INFO] Preparing spawn area: 44%
    2011-08-20 19:12:29 [INFO] VisitorLimiter version 1.0 is enabled!
    2011-08-20 19:12:29 [INFO] MCMACOMPAT r15A
    2011-08-20 19:12:29 [INFO] McMyAdmin Compatibility Plugin version r15A started.
    2011-08-20 19:12:29 [INFO] Spout 1.0.2.134 has been initialized
    2011-08-20 19:12:29 [INFO] CommandBook 1.5.2 enabled.
    2011-08-20 19:12:29 [INFO] CommandBook: Maximum wrapper compatibility is enabled. Some features have been disabled to be compatible with poorly written server wrappers.
    2011-08-20 19:12:29 [INFO] CommandBook: 13 banned name(s) loaded.
    2011-08-20 19:12:30 [INFO] CommandBook: 1 kit(s) loaded.
    2011-08-20 19:12:30 [INFO] CommandBook: Permissions plugin detected! Using Permissions plugin for permissions.
    2011-08-20 19:12:30 [INFO] RocketBoots v0.3.6 enabled!
    2011-08-20 19:12:30 [INFO] [SetRank] Booting...
    2011-08-20 19:12:30 [INFO] [SetRank] Permissions system detected!
    2011-08-20 19:12:30 [INFO] [SetRank] Done!
    2011-08-20 19:12:30 [INFO] [AutoMessage] version [1.5] loaded
    2011-08-20 19:12:30 [INFO] WorldEdit 4.6 enabled.
    2011-08-20 19:12:30 [INFO] WorldEdit: Permissions plugin detected! Using Permissions plugin for permissions.
    2011-08-20 19:12:30 [INFO] [Permissions] SQL Interface enabled!
    2011-08-20 19:12:30 [INFO] [MinecraftViewer] v1.0d Plugin Enabled.
    2011-08-20 19:12:30 [INFO] [MinecraftViewer] Query running on 0.0.0.0:25565
    2011-08-20 19:12:30 [INFO] [iChat] Found Permissions (v3.1.6)
    2011-08-20 19:12:30 [INFO] iChat (v2.3.3-p3) enabled
    2011-08-20 19:12:30 [INFO] [OKSpamSecurity] Attempting to enable OKSpamSecurity v1.0.2 by Kalman Olah...
    2011-08-20 19:12:30 [INFO] [OKSpamSecurity] Initiating auto-update...
    2011-08-20 19:12:31 [INFO] [OKSpamSecurity] You already have the latest version of OKSpamSecurity.
    2011-08-20 19:12:31 [INFO] [OKSpamSecurity] Successfully hooked into Permissions plugin.
    2011-08-20 19:12:31 [INFO] [OKSpamSecurity] Attempting to load configuration file...
    2011-08-20 19:12:31 [INFO] [OKSpamSecurity] Configuration file successfully loaded.
    2011-08-20 19:12:31 [INFO] [OKSpamSecurity] OKSpamSecurity v1.0.2 enabled successfully.
    2011-08-20 19:12:31 [INFO] [MagicCarpet] MagicCarpet version 1.5.6 is enabled!
    2011-08-20 19:12:31 [INFO] [MagicCarpet] Take yourself wonder by wonder, using /magiccarpet or /mc.
    2011-08-20 19:12:31 [INFO] [MagicCarpet] Using Permissions.
    2011-08-20 19:12:31 [INFO] [HawkEye] Starting HawkEye initiation process...
    2011-08-20 19:12:31 [INFO] [HawkEye] No config.yml detected, creating default file
    2011-08-20 19:12:31 [INFO] [HawkEye] Using Permissions for user permissions
    2011-08-20 19:12:31 [INFO] [HawkEye] Performing update check...
    2011-08-20 19:12:32 [INFO] [HawkEye] No updates available for HawkEye
    2011-08-20 19:12:33 [SEVERE] [HawkEye] Error whilst attempting to get connection: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
    
    The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
    2011-08-20 19:12:33 [SEVERE] [HawkEye] Error initiating HawkEye database connection, disabling plugin
    2011-08-20 19:12:33 [INFO] [HawkEye] Version 1.0.3 disabled!
    2011-08-20 19:12:33 [INFO] Server permissions file permissions.yml is empty, ignoring it
    2011-08-20 19:12:33 [INFO] Done (0.544s)! For help, type "help" or "?"
    
    Think it may be tied to me trying to set up the website for Hawkeye. Can you give us a tutorial? I already saw the config.php setups, but after I've done so the website says "error no tables created with the name hawkeye.player" when I search.
     
  14. Offline

    oliverw92

    Look at the errors - of course your commands aren't going to work, it can't connect to the database.
    • Where is your MySQL database hosted
    • Where is your minecraft server hosted
    • Show me your config.yml
     
  15. Offline

    tom

    Works :)

    Some sort of login to see this would be nice, dont want regular players browsing through IP;s

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

    embty

    are u concidering making tnt explosions different from creepers explosions on the next release? instead of environment explosions only :D
     
  17. Offline

    oliverw92

    Again, look in config.php. Enter a password in the 'password' field.

    Not in 1.0.4, no. I will be overhauling explosions probably for v1.1.0
     
  18. Offline

    embty

    Sorry for tourbling you but using werollback doesnt rollback chest contents?
     
  19. Offline

    oliverw92

  20. Offline

    Pheenixm

    I did, it still isn't working
    here's the error log from apache
    Code:
    [Sat Aug 20 11:57:41 2011] [error] [client 72.145.174.225] PHP Fatal error:  Call to undefined function mysql_connect() in /var/www/hawkeye/config.php on line 44
    [Sat Aug 20 11:57:41 2011] [error] [client 72.145.174.225] File does not exist: /var/www/favicon.ico, referer: http://lovettlions.minecraft.cm/hawkeye/index.php
    [Sat Aug 20 11:57:42 2011] [error] [client 72.145.174.225] PHP Fatal error:  Call to undefined function mysql_connect() in /var/www/hawkeye/config.php on line 44
    [Sat Aug 20 11:57:42 2011] [error] [client 72.145.174.225] File does not exist: /var/www/favicon.ico, referer: http://lovettlions.minecraft.cm/hawkeye/index.php
    
    and here's my config.php
    PHP:
    <?php
        
    ///////////////////////////////////////////////////
        //         HawkEye Interface Config File         //
        //                 by oliverw92                  //
        ///////////////////////////////////////////////////
        //     Edit the config array below with your     //
        //     details. Make sure all strings are        //
        //     escaped. If you can't work this out,      //
        //     ask in the thread on bukkit.org.          //
        ///////////////////////////////////////////////////
        
    $config = array(
                        
    //Enter your MySQL database information
                        //Do not change 'dbTable'
                        
    "dbHost"  => "sql.minecraft.cm:33306",
                        
    "dbDbase" => "lovett",
                        
    "dbUser"  => "rob",
                        
    "dbPass"  => "passwordwithheld",
                        
    "dbTable" => "hawkeye",
                        
    "dbPlayerTable" => "hawk_players",
                        
    "dbWorldTable" => "hawk_worlds",

                        
    //Set this to the password you want people to have to use to access the interface
                        //Leave blank for no password
                        
    "password" => "passwordwithheld",

                        
    //Default radius to search for if user supplies a location
                        
    "radius" => 30,

                        
    //Limit the maximum number of results that can be returned. Do not use quotes
                        //Set to 0 for no limit
                        
    "maxResults" => 0,

                        
    //Language pack - default is english.php
                        //You can create your own based off the english.php file,
                        //then change the name below to your language file name
                        
    "langFile" => "english.php",

                        
    //Log queries to log.txt
                        //Useful to keep track of who is querying what
                        
    "logQueries" => true,

                        );

        
    $con mysql_connect($config["dbHost"], $config["dbUser"], $config["dbPass"]);
        if (!
    $con)
            return 
    error("Could not connect to MySQL Database!");
        if (!
    mysql_select_db($config["dbDbase"], $con))
            return 
    error(mysql_error());

        
    mysql_query("SET NAMES UTF8");

        function 
    handleError($errno$errstr$errfile$errline, array $errcontext) {
            
    // error was suppressed with the @-operator
            
    if (=== error_reporting()) return false;
            throw new 
    ErrorException($errstr0$errno$errfile$errline);
        }

    ?>
     
  21. Offline

    phaed

  22. Offline

    Zokudu

    Code:
    20.08 11:34:22 [Server] INFO [HawkEye] close interact
    20.08 11:34:11 [Server] INFO [HawkEye] open
    20.08 11:34:11 [Server] INFO [HawkEye] close interact
    20.08 11:34:09 [Server] INFO [HawkEye] open
    20.08 11:34:09 [Server] INFO [HawkEye] close interact
    20.08 11:33:50 [Server] INFO [HawkEye] open
    20.08 11:33:50 [Server] INFO [HawkEye] close interact
    20.08 11:33:48 [Server] INFO [HawkEye] open
    Same here since updating to 1.0.4
     
  23. Offline

    oliverw92

    Read the error messages properly - 'call to undefined function - mysql_connect' - you haven't got the MySQL php library installed.

    I hate github sometimes... I uploaded the wrong version, deleted, then uploaded the right version, yet the file still hasn't propagated right -.- Give it a bit and the correct version with no debug messages should be in.

    And darn it I thought I fixed the displaying issue...

    For now use this link to download, until github removes the cache of the download: http://dl.dropbox.com/u/24279633/HawkEye v1.0.4.zip

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

    GmK

  25. Offline

    Minor_Miner

    On my server, hawkeye shows up in /plugins, but it's in red, and you can't use any commands.
    It appears that it's not enabled when the server starts up.
    Any help would be helpful! :p
     
  26. Offline

    embty

    You need to setup mysql db in the config file for it to start working.
     
  27. Offline

    SilencShadoW

    Very nice thank you, the rollback now works right. Now i got a new bug .. i cant rollback a container-transaction .... just say
    "attempting to rollback 1 results" (my test lab :p)
    "rollback complete. 0 edits performed"
    "undo this rollback using /hawk undo"

    if i /hawk undo
    "no results found to undo"

    And i got some ideas too.
    - Can you link doublechest together?
    - Can you please please reverse the History log? so that the newest are on bot of the chat? would be more easy.
    - other colors, i already sayed.


    Code:
    2011-08-20 20:10:19 [INFO] [HawkEye] open
    2011-08-20 20:10:22 [INFO] [HawkEye] close interact
    2011-08-20 20:10:22 [INFO] [HawkEye] open
    2011-08-20 20:10:24 [INFO] [HawkEye] close interact
    2011-08-20 20:10:24 [INFO] [HawkEye] open
    2011-08-20 20:10:27 [INFO] [HawkEye] close interact
    2011-08-20 20:10:27 [INFO] [HawkEye] open
    is there a way to stop this in the log? maybe with true/false .. or jut complete?

    worldedits "//" (super pickaxe) ... is there a way to check this with grief too? ok its senseless because admins not grief ... but if u want to rollback a action that u done under "//" ....

    regards
     
  28. Offline

    Sayshal

    please remove the variable 'p:'

    sooo annoying. dunno why, please?
    /hk rollback environment r:5
    WAY better :p
     
    Jobsti likes this.
  29. Offline

    h0us3cat

    rollback what? everything in r:5? :'(
    no thx
     
  30. Offline

    Sayshal

    read it again, instead of p:environment its just environment.
     
  31. Offline

    Jobsti

    Heyho @oliverw92

    Thanks for the Update, but same error with the Webinterface (I'm now on a other PC, but same Opera Version.)
    All files replaced with the new, exept the config.php
     

Share This Page