[WIP] Guardian - the final replacement for BB, LogBlock and HawkEye

Discussion in 'WIP and Development Status' started by oliverw92, Aug 27, 2011.

Thread Status:
Not open for further replies.
  1. Offline


    It's been a while, and bukkit has had to reinvent parts of itself many times now since the original concept of merging these grief logging plugins, is major development still being put into this plugin? I noticed a recent post saying that the actual log and storage is complete, and also available to download if I wanted to start tracking users now. But are the search, rollback, and other misc. features still in development, or have they been scrapped?
  2. Offline


    not sure if this has been suggested yet, but I have trouble with LB's SQL DB stuff, I know I have it enabled and in the right spot but the server just doesn't read it at all, so why not make it easier to use so that it doesn't need to access the DB through a connection and have it able to write to a DB in the same folder as the yml files for ease of access, I mean it would make my life easier, and I wouldn't have to go crazy trying to find SQL errors, for this plugin only when all my other SQL plugins work perfectly fine...
  3. Offline


    You should look into WorldEdit's snapshots feature. You can select their house and "//restore" just that area to your last backup very easily once you see how it works (provided you have frequent backups).

    WorldGuard's blacklist feature can send warnings real-time to admins that are online about bucket (or pretty much any) usage by non-admins. If that's what you mean (and have WG).

    And suddenly I'm a shill for SK's plugins :p
  4. Offline


    can't wait for this plugin!
  5. Offline


    There are different types of SQL servers, make sure you're using the right one (PostgreSQL vs. MySQL for example)
    The reason these plugins require a SQL server is because a file based database (ALA SQLite) is completely impractical for logging. After even a day of moderate usage, the log file becomes so big that for the SQLite plugin to do a search, it will take ages and can even lock the server up. Those kind of file-based databases are horrible for the massive database that these logging plugins produce.
  6. Offline

    Celtic Minstrel

    That seems to imply that MySQL and PostgreSQL don't use files... obviously they have to store the stuff somewhere on the filesystem. I suppose the difference is that MySQK/PostgreSQL would have some of the data cached in memory and write to the file less often, or something.
  7. Offline


    I didn't mean to imply that. MySQL does cache the most frequent data I do beleive but not enough to really matter. The way MySQL handles its data is far better than with SQLite, which causes SQLite to perform extremely sluggish when dealing with databases that grow this huge. Also for each query the -ENTIRE- SQLite database gets locked so nothing else can query it until each operation is done. This with reading/writing possibly hundreds of events per second will create an extremely slow database and a backlog of queued queries. That, and the read speed of SQLite with a database this large is very slow.
  8. Offline


    *Waits patiently for a release*
    *Screams out HOLY F&$K this is going to be great!*
  9. Offline


    A long way back someone mentioned they could compile a build for me to test, is that still possible.
  10. Offline


    MyPictures likes this.
  11. Offline


    Thanks a bunch, and its all good :)

    Getting this though, is there anything else I need to get this running?

    INFO [Guardian] Unloading Guardian v${project.build.number}.
    22.02 15:40:22 [Server] SEVERE [Guardian] Fatal error detected! version ${project.build.number} disabled
    22.02 15:40:22 [Server] INFO The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
    22.02 15:40:22 [Server] SEVERE [Guardian] Communications link failure
    22.02 15:40:22 [Server] INFO [Guardian] Download finished
    22.02 15:40:21 [Server] INFO [Guardian] Downloading guardian-mysql-dev-SNAPSHOT.jar (17kb) ...
    22.02 15:40:21 [Server] WARNING [Guardian] Attempting to download the MySQL bridge for you
    22.02 15:40:21 [Server] SEVERE [Guardian] Could not find a valid bridge! Please check it is installed and present in config.yml
    22.02 15:40:20 [Server] INFO [Guardian] Loading Guardian v${project.build.number}.
  12. Offline


    will i have to use MySQL server ? (i have NO idea how, why, or what that is).

    And Bigbrother worked fine without MySQL server, so im hoping that the one you guys are making is also without MySQL server....

    Nope...not the first versions...they used H2 or what ever its called..... I used BigBrother until they started using MySQL - and since i dont know anything about MySQL - i then stopped using BB....

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
    Last edited by a moderator: Jul 14, 2016
  13. Offline


    Download link?

    21:42:33 [SEVERE] Error occurred while enabling Guardian v${project.build.number} (Is it up to date?): org/guardian/listeners/ToolListener
    java.lang.NoClassDefFoundError: org/guardian/listeners/ToolListener
        at org.guardian.Guardian.onEnable(Guardian.java:93)
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:230)
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:1057)
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:379)
        at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:191)
        at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:174)
        at net.minecraft.server.MinecraftServer.t(MinecraftServer.java:357)
        at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:344)
        at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:175)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:408)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:465)
    Caused by: java.lang.ClassNotFoundException: org.guardian.listeners.ToolListener
        at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
        at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:41)
        at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:29)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
        ... 11 more
  14. Offline


    I had this error, too. I don't know why, eventually you have to install mysql.

    Looks like a class is missing in the jar. Please download it again.
  15. Offline


    Thanks, now where do i download the SQL for the server?

    Now I'm getting:
    23.02 12:28:09 [Server] INFO    ... 11 more
    23.02 12:28:09 [Server] INFO    at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
    23.02 12:28:09 [Server] INFO    at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
    23.02 12:28:09 [Server] INFO    at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:29)
    23.02 12:28:09 [Server] INFO    at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:41)
    23.02 12:28:09 [Server] INFO    at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
    23.02 12:28:09 [Server] INFO    at java.security.AccessController.doPrivileged(Native Method)
    23.02 12:28:09 [Server] INFO    at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
    23.02 12:28:09 [Server] INFO Caused by: java.lang.ClassNotFoundException: org.guardian.listeners.ToolListener
    23.02 12:28:09 [Server] INFO    at net.minecraft.server.ThreadServerApplication.run(SourceFile:465)
    23.02 12:28:09 [Server] INFO    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:408)
    23.02 12:28:09 [Server] INFO    at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:175)
    23.02 12:28:09 [Server] INFO    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:344)
    23.02 12:28:09 [Server] INFO    at net.minecraft.server.MinecraftServer.t(MinecraftServer.java:357)
    23.02 12:28:09 [Server] INFO    at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:182)
    23.02 12:28:09 [Server] INFO    at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:199)
    23.02 12:28:09 [Server] INFO    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:380)
    23.02 12:28:09 [Server] INFO    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:1057)
    23.02 12:28:09 [Server] INFO    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:230)
    23.02 12:28:09 [Server] INFO    at org.guardian.Guardian.onEnable(Guardian.java:93)
    23.02 12:28:09 [Server] INFO java.lang.NoClassDefFoundError: org/guardian/listeners/ToolListener
    23.02 12:28:09 [Server] SEVERE Error occurred while enabling Guardian v${project.build.number} (Is it up to date?): org/guardian/listeners/ToolListener
    23.02 12:28:09 [Server] INFO [Guardian] Loading Guardian v${project.build.number}
  16. Offline


    havent finished porting listeners to the new system.
  17. Offline

    Celtic Minstrel

    You'll probably be able to use h2 for this.
  18. Offline


    MySQL is very simple to set up, configure, and use. It doesn't take much and I recommend you use it. The performance difference compared to H2 or SQLite is staggering.
  19. Offline

    Celtic Minstrel

    However, if I'm not mistaken, some web hosts might not give you that option, right?
  20. Offline


    If you are still looking for people: Heya, I am ok in php but I would love to help at a Web Interface. I am very experienced in Javascript HTML and CSS. It would be good to make the interface realtime. I would be willing to do some work on this.

    An idea, I believe Java supports websockets, so you could make the plugin work as a server and directly serve the content. Websockets would also allow for realtime updates. PHP could still be used as fallback for websockets and for an API
  21. Offline


    Something needs to come out :) With guardian builds not running, hawkeye down, and LB outdated a lot managing a server sucks right now lol
  22. Offline


    What's wrong with LogBlock? I'm using it live... right now...
  23. Offline


    no matter the SQL settings it will not connect to anything. Guardian was able to at least create DB's although not work.

    this is what I get in game

    "No database connected, Check your MySQL user/pw and database, Start/restart your MySQL server." using same credentials as Hawkeye, mcmmo, ownblockx
  24. Offline


    Works for me...
  25. Offline


    can you send me your config.yml granted minus the password etc maybe mine is messed up nothing i do works. Or you can come in on my join.me and look at it
  26. Offline


  27. Offline


    thx for the paste, it seems whenever I leave the password blank and save config and restart server is defaults the password to pass for the SQL how can I stop this? Make it read only?
  28. Offline


    pass: "" maybe?
    Cyris69 likes this.
  29. Offline


    I freaking LOVE YOU!!! I use ' ' but it worked!
    Sayshal likes this.
  30. Offline


    Wait, so the listener is broken, when you get it fixed, possible to send me a build link?
Thread Status:
Not open for further replies.

Share This Page