[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


    Is it 'yum install mysql-server'?
  2. Offline


    Perhaps before blaming it on the OS, you should look at your self and think "maybe I am doing this wrong".

    I got it working on a VPS with CentOS 5.4, a Dedi with CentOS 5.7 and also with CentOS 6.0 for a short while.

    Use yum install php-mysql.

    Not Mysql-server.

    Thats likely what you are doing incorrectly. You'll want to run it as an Apache-PHP module.

    If that doesn't work for you, install a decent panel such as WebMin and take a look at your settings.

    Post in the Bukkit Help if you really can't duke it out - This isn't hard to get working at all.
  3. Offline


    Number one, I'm pretty sure it was you who tried to crash my server. You failed, FYI, and instead scrolled a victory message for like 10 minutes.

    Number two, it's mysql, it's not rocket science dude.
    HmmmQuestionMark likes this.
  4. Offline


    I think it's more like
    yum install mysql mysql-server mysql-devel
  5. Offline


    Just wondering. It's been over a month now. So when is the ETA of this plugin? Kind of looking to update my server past 1185 and well BB no longer works.
  6. Offline


    Please read first:
  7. Offline


    Make sure things like this dont happen:

  8. Offline


    You can change that in the config. 98% of all problems occur when you dont look in the config.

    Try the updated version that works for me

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


    I use LogBlock on my servers and it is an excellent plugin so I'm glad to see this new plugin being made blending the best from all three of the block change logging plugins together.

    I do have a request though. If you are going to use MySQL can you make it create its own database and tables once we fill in our MySQL credentials? That would be a lot easier than having to enter all the stuff ourselves and I think would also stop a whole bunch of support questions that will arise after release.

    Thanks for reading :)
  10. Offline


    Creating tables, sure. Database is difficult, as it also needs to grant rights to the new database and that can be only done by root user, or a user with similar rights.
    And using root as user for Guardian is not what security looks like :D
  11. Offline


    Ummm Doesn't Hawkeye set root as the default user in the config @oliverw92
  12. Offline


    I don't grief, it's for selfish assholes that have nothing better to do. Is your server cracked? Because I have alot of people who try to frame.

    I tried this, and still didn't work. :( Here is my console message, and it's funny because I'm starting the server, and it says error while disabling plugin.. I am also using craftbukkit b1337

    2011-11-12 09:36:50 [SEVERE] Error occurred while disabling BigBrother v1.12.0 (Is it up to date?): null
            at me.taylorkelly.bigbrother.datasource.BBDB.shutdown(BBDB.java:130)
            at me.taylorkelly.bigbrother.BigBrother.onDisable(BigBrother.java:78)
            at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:176)
            at org.bukkit.plugin.java.JavaPluginLoader.disablePlugin(JavaPluginLoader.java:978)
            at org.bukkit.plugin.SimplePluginManager.disablePlugin(SimplePluginManager.java:296)
            at me.taylorkelly.bigbrother.BigBrother.onEnable(BigBrother.java:129)
            at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:174)
            at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:957)
            at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:280)
            at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:171)
            at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:154)
            at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:297)
            at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:284)
            at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:152)
    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
    Last edited by a moderator: May 19, 2016
  13. Offline


    That's not really what you'd call a "cracking" or "hacking" of a server is it now... It's just a kid pretty much DDoSing it using chat messages :D So old, so easy to block.

    How odd... I strongly suggest you use another MySQL-using plugin and find out if it is your server or not first. BigBrother is quite buggy in my experience and that error is pretty odd.

    Most plugins such as I believe HawkEye clearly state they could not connect to the database should it fail.
  14. Offline


    If all we need to do is create the database and it did everything else that would be great. I would agree with you that it isn't a good idea to use Root for stuff. But at the same time I think a lot of people here only use MySQL for this specific plugin so I don't really see the issue with the plugin at-least attempting to create a database if root is used, just warn the user in the configuration file that it isn't recommended and allow them to take the risk.

    Just my thoughts on it :)
  15. Offline


    What I was thinking.
    User puts in root password.
    We login as root. Create user Guardian, grant Guardian all to guardian with 16 character or whatever random password. Update the config with that user, create all tables. Security problem semi fixed
  16. Offline


    Hope you don't mind me asking, but how far is this plugin into dev?

    Should it be on a main server? Just curious, it's been a WIP in a while, so I think it's pretty solid, would like some responses!

    Thank you.
  17. Offline


    Please read:

    @oliverw92 Can you please say something about this on the 1st post.
  18. Offline


    Yeah semi. Improved idea:
    consif section in mysql bridge:
    host: ssdad
    ip: 12234
    database: ''
    user: ''
    password: ''
    rootpw: '123'
    If database and user are empty, but root pw is set, it will create the database/user, set pw/user/database in config and delete rootpw from it.

    This should be the most secure way.
  19. Offline


    Exactly that.
  20. Offline


    That would be great guys. I hope you implement that, it would make using this plugin so much easier on people like myself with lots of different servers to manage.
  21. Offline


    sorry if this has been asked and aneswrd, is this plugin live now?
  22. Offline


    I use logblock and it doesnt do it so if this doesnt already pair up creeper explosions with who causes them (it would also be nice to do the same thing with tnt but with some work you can find out who did the tnt, much harder with creepers)
  23. Offline


    I have a website corresponding to my server and am in the process of writing some javascript that will link the database to the site, so that dynamic content can be displayed. I'm very new to all of this, just installed MySQL today.. The main purpose would be so that I could have the following information displayed: Online users, time the user was online, and a table holding all of the users with their total time played. If I feel really ambitious I might try to make a way so that you could chat to users on the world via the website.

    I just installed LogBlock today, set it up and started getting some data out of it. One thing that I noticed is that the table their table "users_online" does not work. I have people logged in, yet the table doesn't show it. So, keeping Guardian's future features in mind, from the join and quit actions I could easily make a query to determine if the user is online. It would be nice, though, if there was a total time played column as well, so that I could periodically clear out old data from the database if need be. Maybe this could be added into the gd_players table? I know this is something that LogBlock already does.

    As a side note, once Guardian is released and I rework my code to support it, I'd be happy to share it with anyone else who would be interested.
  24. Offline


    Yeah thats a broken feature of LogBlock. Take a look at this if you want:

  25. Offline


  26. Offline


    Yeah, a join/left table is something really interesting, and way better then my implementation. In that moment I just didn't want to add an extra table.

    Online time is updated when the player leaves.
    Broken? Not at all ...
  27. Offline


    I could swear my db fields are blank for all times.
  28. Offline


    You have to enable it in config.
  29. Offline


    I have some ideas i don't know if they are in HawkEye or LogBlock as i use BigBrother for now until Guardian. Could you add excluded players so it won't log them? also could you add so it logs world edit? but its all your choice. I can't wait till christmas time.
  30. Offline


    logging.hiddenPlayers in LB config.
Thread Status:
Not open for further replies.

Share This Page