Inactive [ADMN/SEC] FoundDiamonds 3.6 - Broadcasts broken blocks & Cheat detection [1.3.2]

Discussion in 'Inactive/Unsupported Plugins' started by SeeD419, Nov 1, 2011.

     
  1. Offline

    SeeD419

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    [IMG]
    Diamond rewards/Anti-Cheat
    Original concept by itsatacoshop247

    FoundDiamonds aims to improve the fun of mining by broadcasting when players find certain blocks (configurable) and give out rewards when players find diamonds! It comes bundled with anti-cheat features such as light-level monitoring to deter fullbright hackers and x-ray users from running amok. FoundDiamonds supports admin message functions, logging to file, and even trap blocks that can kick or ban a user if broken. Check out the video below if this sounds like something you'd be interested in.

    Download at:
    Bukkitdev
    Source

    Demonstration Video
    (An older version, but the concept is the same)


    Old Outdated Changelog:

    Version 3.3.1-Beta

    * Fixed an old total block counting bug that I accidentally re-introduced.
    * Fixed a bug with admin messages firing on blocks players placed.
    * Fixed admin messages sending message to the person who broke the block.

    Version 3.3-Beta

    * Implemented versatile lists that can be edited to whatever blocks and colors you want!
    * Made fd log all player commands to the console, including failed command attempts (for this plugin only)
    * Fixed a terrible admin message bug that I never saw before. Revamped the way these works to prevent bugs.
    * Moved prefix to broadcast message as @prefix@ instead of having a separate option for it in the config.
    * Fixed color bug when using nicknames in broadcast (now looks way better)
    * Fixed a bug with random items not even working
    * Added 3 new spells! :O
    * Made potion messages more descriptive, and even configurable.
    * Fixed bugs with menus and made other improvements to them.
    * Traps can now be set without using '_' characters, and just spaces (/fd trap gold ore)
    * Refactored tons of code. The source code is actually not so much of a mess anymore. Performance improvements as well.
    * Improved block counting! Diagonal blocks no longer fool the plugin!
    * Merged a pull request by snoepje0 who implemented a depth option for trap blocks. (Thanks again)
    Version 3.2.7

    * Removed an old pointless option from config.
    * Cancelled block break event on trap breaks.
    * Fixed exploit using traps to get diamonds by stopping trap blocks from dropping anything.
    * Fixed a few minor bugs with light level admin messages
    * Added light level logging to file.
    * Added permission 'fd.ignorelightlevel' to completely ignore a player's light level when mining. Not included in fd.*!
    * Improved logging a lot.
    * Renamed logs.txt to log.txt. Why was it plural?
    * Added a few more debug messages
    * Made CleanLog.txt lowercase for lazy linux users like myself :p

    Version 3.2.6

    * Added some debugging info for admin messages.
    * Added lightlevel as a configurable percentage
    * Removed coal ore from light level monitoring (Reason: It denies noobs trying to mine coal with no torches yet. Irony fail. Also the chance of someone cheating for only coal ore is unlikely.)
    * Added lightlevel admin messages and debug
    * Fixed potential bug with trap blocks being set in the void or above max world height.
    * Improved trap block logging quite a bit. Added world, improved readability.
    * Did some testing for weird trap block situations to ensure they would function.

    Version 3.2.5

    * Fixed multi-world spell issue.

    Version 3.2.4
    • Added debug mode. To enable do /fd toggle debug. Outputs information to the console about why broadcasts are canceled.
    Version 3.2.3

    * Made **adding** worlds case sensitive! This will prevent confusion in the future and allow 'World' and 'world' to coexist in the config.
    * Fixed ANOTHER multi-world issue DX I tested it this time!
    * Added a new config option under Logging: Trap Breaks. Defaults to true. Not sure why I had diamonds and trap breaks under the same configuration option. Chances are that even if you don't log ALL diamond ore breaks - you definitely want to know if someone breaks a trap!

    Version 3.2.2

    * Fixed bug where we weren't respecting the world list for spells and announcements from other worlds.
    * Attempted fix for world issue for some.
    * Cleaned up certain areas of code that were sorta messy.

    Version 3.2.1

    * Removed a debug message

    Version 3.2
    • Added option to 'Use Classic Ore Colors' in broadcasts because custom color formatting overrides them. Defaults to true. If you don't like the ore names being colored to their type, set this to false.
    • Cleaned up some sketchy file handling methods
    • Impelemented 'ignore.broadcasts' permission for players who don't like broadcasts :(
    • Made admin messages conform to the custom color codes in the config.
    • Made admin messages send a message to the console!
    • Fixed a terrible bug that could have prevented broadcasts when using admin messages :/
    Version 3.1.9
    • mcMMO spam fixed!
    • Now supports custom color formatting!
    • Improved clean log.
    • Added redstone admin messages.
    • Set plugin to add ALL worlds on first run and enable most everything (should help new users with issues)
    • Improved world menu a bit
    • Added more functionality to the config, toggle, and set menus + fixed a few bugs.
    Version 3.1.8.2
    • Implemented a "Clean Log" option to log ALL announcements cleanly to a text log file.
    Version 3.1.8.1

    • Added an option to disable the [FD] prefix on broadcasts.
    Version 3.1.8
    • Fixed issue of jump potion basically killing players
    • Tried to add support for custom color formatting although it only works in spoutcraft...
    • Fixed bug with fd reload not reloading worlds
    • Implemented the rest of the /fd world menu to add/remove worlds from in game.
    • All console-relevant commands now work at the console.
    • Organized code
    Version 3.1.7
    • Added ability to fd reload from the console
    Version 3.1.6
    • Added an award where spells are casted on players for finding diamonds.
    • Drastically improved admin messages
    • Added admin messages for gold, iron, and lapis.
    • Fixed a rare block detection bug.
    • Re-arranged a lot of code.
    • Added /fd world which as of now only lists enabled worlds (permission is fd.world for future features)
    • Figured out that copydefaults only copies new items so no need to delete old config anymore
    Version 3.1.5
    • Fixed a bug with toggling coal
    • Improved /fd config menu's readability
    • Improved /fd toggle menu's readability
    • Added usenicks to the toggle menu
    • Added obsidian as a broadcast-able block
    • Fixed bug where placed blocks from players would be announced
    Version 3.1.4
    • Permissions overhaul! Be sure to update your permissions!!!
    • Tested plugin with PEX. Works great.
    • Fixed a rare NPE.
    • Fixed OPs in the config not completely working like it should have.
    Version 3.1.3
    • Removed a debug message :/
    Version 3.1.2
    • May have fixed issue with config not saving for some.
    • Improved /fd config menu
    • Fixed issue where on diamond break other blocks were counted in the total
    • Added a config option to change the percentage of time awards are given
    • Added coal ore as a broadcastable ore
    Version 3.1.1
    • Fixed a NPE
    Version 3.1
    • Implemented new YAML Configuration file. (Much easier to read IMO)
    • Added a main menu accessible with /fd or /founddiamonds that prints all commands.
    • Added submenus to toggle admin messages, update the config, reload the config, view the config, or set traps.
    • Re-implemented admin messages in a way that makes sense.
    • Admin messages toggle on/off with /fd admin
    • Further reduced I/O
    • Consolidated configurations into a single file.
    Version 3.0
    • Completely rewrote entire plugin.
    • Fixed numerous performance issues.
    • Tweaked plugin to get best possible performance.
    • Added disable on creative mode to config
    • Added disable total darkness mining to config
    • Added total ores found to broadcast message
    • Removed admin messages.
    • Further improved configuration readability
    Version 2.2
    • Updated to the new method for registering events.
    Version 2.1
    • Added support for multiple worlds! Simply remove any world in worlds.txt you don't want FoundDiamonds enabled in.
    Version 2.0
    • Fixed a terrible permissions issue.
    • Made admin messages a bit more pretty and intuitive.
    • Added Mossy Cobblestone as a broadcast-able block
    Version 1.8.1.6
    • Changed /settrap id# to /settrap itemname (IE, /settrap dirt, /settrap gold_ore)
    • Fixed client side NPE crash
    Version 1.8.1.5
    • Added /settrap # which creates a trap based on the item id a user enters.
    • Added configuration option for admin messages for trap blocks. IE, if another admin breaks a trap block - all admins will get a message.
    Version 1.8.1.4
    • Added a configurable option to the config, WaitTimeBetweenBroadcasts, to configure your own wait time between server broadcasts. As always, you can still disable this entirely, but now you can make them more or less frequent. Time is entered in SECONDS :)
    Version 1.8.1.3
    • Added a configurable option to the config, TreatOPSAsFD.Admin which treats any player in Ops.txt as a player with FD.Admin (if you don't have permissions). This is configurable, so you can choose to ignore Ops.txt and rely only on permissions. This defaults to TRUE.
    Version 1.8.1.2
    • Added *.* to recognized permissions.
    • Actually fixed redstone this time :)
    Version 1.8.1.1
    • Fixed redstone broadcast & admin messages
    • Fixed issues creating files (how on earth did that even happen?)
    Version 1.8.1
    • Made configuration file easier to understand
    • Improved /settrap diamond vein generation
    • Plugin now prints current version on start-up
    Version 1.8
    • Re-implemented /settrap
    • Fixed /settrap to log all diamond blocks it generates, not just one
    • If player has FD.admin permission, they are now immune to trap blocks
    • Added ability to ban on trap break
    Version 1.7.5
    • Switched colors for lapis and diamond (looks more accurate)
    • Added a 3rd random item for awards (defaults to slimeballs)
    • Changed random items to show item names, not ID numbers
    • Rewrote the code for getting random items + amounts
    • Improved error messages, and fixed more spelling errors
    • Changed 30 second wait to 20 seconds
    Version 1.7
    • Continuation of itsatacoshop247's plugin
    • Fixed a few spelling errors and recompiled for latest RB
    Original Changelog from itsatacoshop247
    Version 1.6
    • Traps!
    • Chance to get random items!
    Version 1.5
    • Logging added finally!
    • Option to turn logging on/off
    Version 1.3
    • Works better with Permissions, defaults to OP list if no Permissions
    • Configurable message
    • Beta 1.4 Compatible
    Version 1.2
    • Permissions!
    • 'FD.admin' to see all block breaks
    Version 1.1
    • Added more to config
    • Added ores, options for each to be on/off
    • Turn server message on/off
    • random item give on/off
    Version 1
    • Release

    This post has been edited 111 times. It was last edited by SeeD419 Aug 24, 2012.
  2.  
  3. Offline

    Austin

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    The plugin is void with the brightness setting in MC.
  4. Offline

    SeeD419

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Yes, because clearly the only feature that this plugin has is to disable mining in the dark, right?

    You either:
    A) Didn't read the OP at all.
    or
    B) Have very poor reading comprehension.
  5. Offline

    Draconette

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    plugin works great, but i have this small isue, in over all smal problem, but still, maybe someone else have the same.

    When diamond is found if it is with other mineral, in one wein, for example with iron or gold, it gives messege that other ores are like diaimonds, so if it happens so insted of 4 daimonds it shows 14, and other 10 minerals is showed as diamonds.
  6. Offline

    SeeD419

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    I can confirm this bug. I'll work on getting this fixed, thanks.
  7. Offline

    Draconette

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME

    your the best! :)
  8. Offline

    SeeD419

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    v 3.1.2

    See OP for changes / bug fixes.

    If you want to take advantage of coal broadcasts and being able to change the percentage of the time awards are given - delete your config and generate a new one. If you don't, don't worry about it :)
  9. Offline

    ColeBergmann

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Please add PEX support.
    Thanks for listening to my suggestions :D
  10. Offline

    Draconette

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME

    Works as charm.... 5 stars!
  11. Offline

    SeeD419

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Hmm...I'm using PEX here for the first time, and it appears to work just fine.

    Can someone else confirm this?
  12. Offline

    Nerrion

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Is there a way to disable the broadcast, but NOT for admins?

    I want the Admins to recieve the messages, but I don't want the normal messages to display in the normal chat.
  13. Offline

    SeeD419

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Sure, that's the purpose of the admin messages. Except right now it only supports diamond ore.

    Set your config up something like this:

    Code:
      Broadcasts:
        Diamond Ore: false
        Gold Ore: false
        Lapis Ore: false
        Redstone Ore: false
        Iron Ore: false
        Coal Ore: false
        Mossy Cobblestone: false
     
      Admin Messages:
        Diamond Ore: true
    Are you requiring that other blocks be announced to admins? If so, which ones would you like?
  14. Offline

    CursedDude

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    It doesn't broadcast when you find diamonds but it works to broadcast anything else.

    Please help, this is my conf. file:


    Code:
    Found Diamonds Configuration:
      Main:
        Disable in creative mode: true
        Disable ore mining in total darkness: true
        Treat OPS as FD Admin: true
      Traps:
        Kick players on trap break: true
        Ban players on trap break: false
        Admin alerts on all trap breaks: false
        Kick message: You broke a FoundDiamonds trap block.
      Awards:
        Random awards for finding diamonds: false
        Random Item 1: 265
        Random Item 2: 263
        Random Item 3: 341
      Broadcasts:
        Diamond Ore: true
        Gold Ore: true
        Lapis Ore: false
        Redstone Ore: false
        Iron Ore: false
        Mossy Cobblestone: false
        Message: '@Player@ just found @Number@ @BlockName@!'
        Use player nicknames: true
      Logging:
        Log all diamond ore breaks: false
      Enabled Worlds:
      - world
      Admin Messages:
        Diamond Ore: true
    
  15. Offline

    SeeD419

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Your conf file looks solid. I tested that configuration and it works fine for me, so I'm not sure.

    Try deleting your FoundDiamonds config.yml and letting it regenerate a new one.
  16. Offline

    Nerrion

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Thank you so much, I got it working perfect now!

    By the way, if I use bPermissions and I make myself Admin using that permission plugin, will I still get the message, or is it OP only?

    This post has been edited 1 time. It was last edited by Nerrion Mar 9, 2012.
  17. Offline

    Nerrion

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Ouch. I add PEX to my server, and now FoundDiamond stopped working! Think you can fix it?

    Edit: Hm, everything is working smooth again, nevermind!

    This post has been edited 1 time. It was last edited by Nerrion Mar 9, 2012.
  18. Offline

    CursedDude

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    I tried to do this but it diden't work, My server is 1.2, latest update.

    I'd really apreciate some help
  19. Offline

    SeeD419

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    What FoundDiamonds version are you using? The lastest?

    I've never tested with bPermissions. I'll put that on my TODO list.
  20. Offline

    Nerrion

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Good, I love how you respond to everyone's messages!

    I can confirm FoundDiamond WORKS with PermissionsEX (PEX)!
  21. Offline

    Vert77

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    1.2.3-R0.1 please?
  22. Offline

    SeeD419

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    There's a 1.2.3-R0.1 build on bukkitdev. It's 3.1.1., but I don't think anything major changed in the api....you should be able to run the latest version with no problems on 1.2.3-R0.1
  23. Offline

    Vert77

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Thanks, I'm tring to upgrade to 1.2.3-R0.1 server from 1.1 and i've been working on it for a while (I have like 27 plugins) soo ya. Thanks for the help.

    This post has been edited 1 time. It was last edited by Vert77 Mar 11, 2012.
  24. Offline

    KevinEssence

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    I love this plugin just wish there was a no transparent text pack plugin.. even thought it detects them it doesn't stop until ya ban :s
  25. Offline

    PReP

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Hi there.

    Nice work with this plugin, we mainly use it as a positive cred-thing, showing everyone when someone finds resources when working our mines :)

    I am wondering if you might make a clean-text log option?

    Right now i grep the "just found" lines from the server log, and display them at our page as stats,
    like this: http://prep.mine.nu/~prep/crap/minecraft/info/found_ores.txt

    But as you can see, the colour-codes makes it a bit messy.

    I could do some filtering myself, but it would be nice to have all ores cleanly (non colour-coded) logged into a text-file :)

    I might implement a "Total Gold/Diamond/XXX found by (PLAYER): 221" type of page later,
    with bash-scripting - but that could also be a nice addition to your plugin if you feel like implementing it sometime.

    Keep up the good work in any case :)

    /PReP (http://prep.mine.nu)
  26. Offline

    ColeBergmann

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    I tried adding FD.Admin to mod and they do not receive messages when I break diamond ore, but I receive messages.
  27. Offline

    SeeD419

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Permissions had a complete overhaul lately.

    Check the FoundDiamonds bukkitdev for the new permissions.
  28. Offline

    ColeBergmann

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Ok awesome.
    Thanks a lot :D
  29. Offline

    SeeD419

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    I upload a dev build here featuring a new award, potions. Instead of items players are awarded with spells. Also features admin messages for gold, iron, and lapis. A lot of changes I still need to test.

    <link removed>

    I'll do some more testing on this tomorrow and if all goes well, it will be the next release - or something close to it.

    This post has been edited 2 times. It was last edited by SeeD419 Mar 12, 2012.
  30. Offline

    SeeD419

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    v3.1.6
    Waaaay better admin messages.
    Spells as an award instead of items (we had fun testing this)
    More stuff! See the changelog for all changes.
  31. Offline

    Kata

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    I need help, I'm really new to this Bukkit thing. I managed to set up the server and get some plugins working.

    Sadly, this one isn't one of them. :( Messages don't appear at all. I downloaded the jar file and stuck it in the plugins, I do not need permissions as it's a small server. When I go in creative mode, I set a diamond block, then switch back to survival, mine it and nada. No message.

    What am I doing wrong? I know it's probably my side, just don't get how.
  32. Offline

    SeeD419

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    It knows that you placed the block :)

    It's set up so that they have to be natural blocks to prevent people from spamming.

Share This Page