Can someone please code this logging plugin for me?

Discussion in 'Archived: Plugin Requests' started by hipp013, Jun 7, 2012.

  1. Offline

    hipp013

    I am requesting a log plugin. Not just any log plugin.

    Name idea: BlockAnnouncer
    Category: Anti-Grief
    Requirements:
    I don't need it to log blocks into a .log file. I just want a plugin that, when I turn it on, it says in the chat/command line what block was broken by who.

    Example:
    Let's say someone named example123 is exploring the world. I turn on this plugin.

    "<plugin name> activated!" it says in my chat bar.

    Let's say example123 decided to grief someone's house. He breaks 1 glass, and then 2 wood.

    The plugin announces to the world:
    "example123 has broken 1 GLASS!"
    "example123 has broken 1 WOOD!"
    "example123 has broken 1 WOOD!"

    I can choose what blocks are announced. In the config, it could be like:
    #Should this plugin announce this block being broken?
    STONE: true
    GRASS: false
    DIRT: false
    etc.

    [either yes:no or true:false]

    Also, you could add the function to announce placed blocks. But I don't exactly need that. It would be great to have, but you don't have to add it in.
    Maybe also you could add this type of out-loud logging for chests and commands, too?
    Thanks in advance! I hope it isn't too much to handle.

    Command Ideas:

    /ba on - Turns on
    /ba off - Turns off
    /ba add [block id] - enables announcing when block is broken/placed
    /ba remove [block id] - disables announcing when block is broken/placed
     
  2. Offline

    XanderCrews01

    Why not use the currently available logging plugins? Logblock, Guardian, Hawkeye?
     
    afistofirony likes this.
  3. Offline

    np98765

    I agree with XanderCrews01 . There are many block logging plugins already existing.

    There aren't that many that are really close to what you are saying, though. This would be rendered useless for any decent sized server, because there would be constant chat spam. Every time someone breaks a block, uses a command, or opens a chest... Wow. Spam much?

    Anyways, I see that you are trying to figure out if someone is griefing or not. If you get an existing block logging plugin, you can let them grief, and roll it back in about 3-4 seconds. If you get a vanishing plugin, you can turn invisible and watch them. You can get a spectating plugin to remotely have Moderators view them without teleporting.

    There are many, many, many ways to stop griefing that do not involve announcing every single thing that a player does.
     
  4. Offline

    Mitsugaru

    I'm fairly certain you can implement this using WorldGuard's blacklist feature...
     
  5. Offline

    hipp013

    They do not give me the feature of announcing what blocks are destroyed. I use LogBlock, though.

    1. I'm not stopping griefing in general. My server runs off two machines: one for the city portion, one for the Hunger Games portion of my server. To switch between the two, I change the IP the port forwards to, to the IP of the machine I want it to run off of. My Mac for the Hunger Games portion (more RAM), my Dell for the city. Anyway, I want it for the Hunger Games portion on my Mac, and in the arena is a set of rules of block-breaking the player must follow, or he will be kicked/banned. I need a plugin that announces when someone breaks a block I set as off-limits to break. WorldGuard doesn't let me set every block except for a couple blocks they can break.

    2. I have CreeperHeal and Spectate. So those plugins you mentioned: I have them. But thanks for the suggestion. :)

    I'd do that, but there isn't a way I can set every block but a few off-limits. I'll try anyway.
     
  6. Offline

    np98765

    Can't you use '*'? I'm pretty sure thats the global symbol for... denoting global. Then you can use '-2' or something to remove the ability to break grass blocks.

    I'm not sure, I've never tried to protect all blocks but a few.
     
  7. Offline

    hipp013

    I actually learned that you can reverse Blacklist as a whitelist, where only those blocks are allowed. So thanks!
     
  8. Offline

    XanderCrews01

    Are you looking for something that can compare the number of blocks a user breaks that are not his?
    For example:
    User A built a sweet castle.
    User B joins the server.
    User B finds sweet castle.
    User B griefs sweet castle.
    Admin gets message "User B has broken blocks that are not his!"

    Something like that?

    If so, check this out.

    Logs player behavior to a file and to screen (block breaks/placement) to see if a player is destroying a large number of blocks that do not belong to him/her. It hooks into logblock so it is not using a significantly more ram.
     
  9. Offline

    hipp013

    You're on the right track. I want to know exactly what blocks were broken. And I'm not able to protect the blocks directly, because there's no way to protect every block except for a small amount. I also want it to announce the griefing to the world, not just Admins.
     

Share This Page