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

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

  1. Offline

    ImJustPro

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    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.
  2. Offline

    ImJustPro

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    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

    Code:
    2011-11-12 09:36:50 [SEVERE] Error occurred while disabling BigBrother v1.12.0 (Is it up to date?): null
    java.lang.NullPointerException
            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)
    

    This post has been edited 1 time. It was last edited by ImJustPro Nov 12, 2011.
  3. Offline

    jasvecht

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    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.
  4. Offline

    VodkaDK

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    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 :)
  5. Offline

    md_5

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    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
  6. Offline

    BioRage

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    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.
  7. Offline

    md_5

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Please read:

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

    DiddiZ

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Yeah semi. Improved idea:
    consif section in mysql bridge:
    Code:
    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.
  9. Offline

    md_5

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Exactly that.
  10. Offline

    VodkaDK

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    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.
  11. Offline

    deimos161

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    sorry if this has been asked and aneswrd, is this plugin live now?
  12. Offline

    Ps2maniac9

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    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)
  13. Offline

    Slayer537

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    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.
  14. Offline

    md_5

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Yeah thats a broken feature of LogBlock. Take a look at this if you want:
    http://forums.bukkit.org/threads/ad...ased-on-time-and-paypal-donations-1337.45317/

  15. Offline

    Slayer537

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
  16. Offline

    DiddiZ

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    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 ...
  17. Offline

    md_5

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I could swear my db fields are blank for all times.
  18. Offline

    DiddiZ

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    You have to enable it in config.
  19. Offline

    Colm

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    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.
  20. Offline

    DiddiZ

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    logging.hiddenPlayers in LB config.
  21. Offline

    md_5

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    No. Worldedit has to handle the latter, although you can log when someone uses a Worldedit command.
  22. Offline

    Khubajsn

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    If you are still searching for MySQL (or other database) wrapper, I suggest you Dibi.
    http://dibiphp.com/
  23. Offline

    xKoKSii

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Its there an Beta? of Guardian?
  24. Online

    HmmmQuestionMark

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    No, wait until around Christmas time for a release.

    This post has been edited 1 time. It was last edited by HmmmQuestionMark Nov 15, 2011.
  25. Offline

    Slayer537

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I just checked config.yml and do not see any options for enabling it. There's also no mention of it in the wiki: https://github.com/DiddiZ/LogBlock/wiki/Configuration

    For the time being I don't see this as being an issue, as I was able to find an alternative solution, and I'm assuming that Guardian will have something similar that will allow this capability.
  26. Offline

    DiddiZ

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    logging.logPlayerInfo in main config.

    Guardian will implement this likely a bit different, more like logging all joins and leaves and the online time has to be calculated afterwards.
  27. Offline

    Chrisknyfe

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Can we get one of the developers to verify this? Or, if they already posted this tidbit, could you quote it?
  28. Offline

    DiddiZ

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I guess we stated that somewhere
  29. Offline

    Slayer537

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I have that set as "true" but it still doesn't work (just tested this again). I believe "true" is the default setting.

    That would be the best solution, as it would give people the capability to calculate if the user is online, how long they've been online for, total time played, etc.. Very useful!
  30. Offline

    brord

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    If you make it like that, the online time will get screwed on a crash from the server.
    So you would have 2 log-ins behind rach other.
    Maybe a config for auto-update onlinetime repeeat in xxx minutes

Share This Page