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


    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:

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

    Old Outdated Changelog:
    Show Spoiler

    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.
    • Implemented a "Clean Log" option to log ALL announcements cleanly to a text log file.

    • 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 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
    • Changed /settrap id# to /settrap itemname (IE, /settrap dirt, /settrap gold_ore)
    • Fixed client side NPE crash
    • 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.
    • 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 :)
    • 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.
    • Added *.* to recognized permissions.
    • Actually fixed redstone this time :)
    • 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
  2. Offline


    Use FD.admin (it worked for the other guy)

    Although I could probably add *.* to the code now that I think about it...

    Updated to recognize *.* and also a real fix for redstone broadcasts and admin messages.

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


    Someone's continuing this? Just when I thought I would have to find another plugin for my new server! <3
  4. Offline


    Odd when i have Op and or FD.admin i can break trap blocks and set them but i don't get admin messages
    PermissionsBukkit 1.2 with SuperpermsBridge 1.2
  5. Offline


    The way traps are implemented now, that makes sense. Traps have separate messages than normal blocks. If a non-FD.admin/OP breaks a trap block, the server will send a broadcast to everyone, and could kick/ban depending on your configuration. If an admin breaks a trap, it just says "Trap block removed".

    I could probably hack in some admin messages if you'd like though. Also, be sure to update the plugin, I've updated a couple times today with new stuff :D
    544nick101 likes this.
  6. Offline


    Well if you would like to "hack in some admin messages" i would be happy :D

    Oh and i have a idea for the ban to work with mcbans like a global ban or something :). This would probable be very hard to do so if you don't want to that's fine

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


    I tried looking around at the MC bans wiki, but their page on the API isn't very clear. I'm sure its easy to implement, I just can't find the damn API documents.
  8. Offline


    I love the idea of this plugin, would it be possible to add options for trapping all types of blocks?
  9. Offline


    SeeD, all you need to do for this is add another argument for /settrap so it becomes '/settrap #' where # is the ID number of a block. Then check if that is an actual ID number, and if it is, then set the trap blocks to that number. This won't affect location saving.

    (Sent from my Droid)
  10. Offline


    I have the random items enabled and I made a new random item so we have 4 random ones. My friends have not received any items for mining. Any help? My properties file is below.
    #===[FoundDiamonds] Configuration===
    #Thu Nov 10 16:06:35 CST 2011
    BroadcastMessage=@Player@ has found @BlockName@\!
  11. Offline


    You can't add a new RandomItem :D Maybe a future option. Try deleting the extra random item and make sure the correct permissions are given.
  12. Offline


    Added. Make sure you enter an item that actually exists though, or you'll get kicked. Not sure how to fix that yet..

    Added. Set TrapBlockAdminAlerts=true for the admin messages in the new version.
  13. Offline


    Okay well i got rid of four and reloaded. Still nothing. IS the chance fairly low and does the ore have to be natural?
  14. Offline


    It is fairly low, to prevent users from getting rewards too often.

    The ore does not have to be natural though, so you can spawn some to test it (might take a bit though).
  15. Offline


    hi :) i love this plugin for helping me find xrayers. is there anyway to implement a toggle for different worlds?
    for example my server uses multiverse2 and at least one of these worlds is creative. Could you possibly make it so i can turn off founddiamonds for this or several worlds?
  16. Offline


    I'll look into this.
  17. Offline


    Just what my server needs! i hate the darn xray people i put them in jail and they keep doing the same thing! they are about to be put in jail much longer :D
  18. Offline


    Okay ive been messing with this for too long i love this plugin but it hasnt functioned correctly for a while now.
    Admin messages are not working whatsoever the only time admin messages work is when an admin breaks ore , The plugin then spams every player with [player] has found ore (admin/msg)

    How is this working backwards ? LOLWTF

    #===[FoundDiamonds] Configuration===
    #Mon Nov 21 18:25:23 CST 2011
    BroadcastMessage=@Player@ has just found @BlockName@\!
  19. Offline


    for the ban on trap break, can a feature be added that we can specify the amount of blocks before ban? (example, 4 blocks that are trapped, if 4 are broken, player then gets banned?)

    And about my earlier comment (where i mentioned trap all kinds of blocks), could their be something like wand options similar to world edit? id like to make a skyscraper trap where the whole building and everything in it is a trap (multiple blocks being selected)
  20. Offline


    I too am having this exact issue on 1.0 If you come up with a solution please let me know, i have them logging to a file currently until this gets figured out. Please if anyone has any input let us know. Thanks.
  21. Offline


    Admin messages broadcast to players with *.*, FD.Admin, or OPS if selected in the config, (as yours is)

    I'm looking at the code and I don't see how it could possibly work backwards.

                    if((player.hasPermission("FD.admin") || player.hasPermission("*.*")) || (FoundDiamondsLoadSettings.opstxt && player.isOp())){
                    p.sendMessage(ChatColor.DARK_RED + player.getName() + " just found Diamonds(AdminMsg)");
  22. Offline


    thanks boss hopefully you can get that fixed up :)
    for now its broadcasting to everyone which is spammy but it gets the message out there that a plugin IS watching their ore intake .
  23. Offline


    Fixed! Redownload!

    Edit: Also thank you both for your bug reports. Let me know how the latest version works for you.
  24. Offline


    Could you add Multiworld support? I have a creative, survival, survival island and 2 adventure maps, so it would be nice to know where they found an ore and if possible even disable it for some worlds.
  25. Offline


    This plugin is one of my favs but I'm looking for more customization. Is it possible to change the format of the messages in terms of "x ore" and maybe the colors? The Lapis color is kind of annoying. I'd like to be able to change the text color and maybe have the usernames a different color, for example:

    User1 just found Diamonds!
    User2 just found Gold!
    User3 just found Iron!
    User4 just found Lapis!

    That's pretty much how I'd like it to look. ;)
  26. Offline


    Yes, looking into this.

    I'm entertaining the idea, but red looks a bit strange if redstone comes do you feel about having the username white instead? White seems to look okay, and there's no white blocks.

    I also agree about lapis, but it really is the closest color to lapis. As far as the names, you're looking for just "Diamonds" instead of "diamond ore" ?
  27. Offline


    How bout (White Text for the name)544nick101 Found Some Diamonds
    And admin message [Admin-Msg] 544nick101 Found Some Diamonds
  28. Offline


    I give my admins - FD.admin and they cant se any notifiation it have always worked before i use pex is it becouse of that or?

  29. Offline


    Thanks for this plugin!
  30. Offline


    The default color doesn't really matter to me as long as everything is configurable. ;) White sounds good but I'd like to change it around a few times and see what works the best for my server. Maybe the ability to tie it in with chat plugins and have group specific colors for the usernames? I might be reaching for that one, not sure how hard it would be but it's an interesting idea.

    That's exactly what I was talking about in regards to "diamond ore" being switched to "Diamonds" and so forth. Maybe in the config have custom text like "diamondore=Diamonds" etc. :cool:
  31. Offline


Share This Page