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

    [​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:
    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.
    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
     
  2. Offline

    NeNiuM

    humm i've got 2 main worlds :MyWorld and OtherWorld.

    Is the name really important ? I mean whatever the name i wrote it correctly in the command.

    Maybe it's an incompatibility with another plugin...

    EDIT : Seems again a problem in the validating process of the world. What are your validation criteria ? Maybe i have some chunks problem and a worldguard regen will help...
     
  3. Offline

    SeeD419

    Well on first run the plugin gets all worlds that aren't named "world_nether" or "world_the_end" and adds them to the world list. Not sure how you could have bypassed that. You could try deleting the FoundDiamonds folder and letting it regenerate while I search for a solution to fix this from happening again.
     
  4. Offline

    NeNiuM

    Ok i'll try that, thanks for your support.

    EDIT : I reboot my server & delete my FoundDiamonds folder.

    When up, added the main worlds to fd, and now we can see coal messages. I'll check if all the broadcasts are working.
     
  5. Offline

    SeeD419

    Great! I just uploaded a new version (takes bukkitdev awhile to approve it though) which has some new fixes for multiworld and possibly a fix so that this bug never happens again.
     
  6. Offline

    NeNiuM

    Ok thanks.

    But the problem doesn't seem to be resolved, i can see breadcasts for coal but for lapis ores, i got the same error...

    Let me reboot the server and edit the configuration to check.

    EDIT : Ok, it works for coal & lapis, i guess it's fully working now.

    Don't know what happened, editing directly the config file wasn't a good idea, but in game, using the fd commands, it works like a charm. I'll do some testing and give you a feedback.

    Thanks for all.
     
  7. Offline

    SeeD419

    Glad to hear it's fixed, and yes the in-game commands are mostly because the config is a yml file. YML is very picky! One incorrect dash, tab, space, apostrophe, and nothing works! :p

    Let me know if anything else comes up. I'm working on making the process of getting everything set up a lot easier.
     
  8. Offline

    NeNiuM

    Haha i'm using notepad++ and the correct encoding .. I guess it was my server that can't force the update of the yml file.

    I'll give your more information if there's ! Thanks ! :)
     
  9. Offline

    SeeD419

    Anyone with issues - I've implemented a new debug mode which can be accessed via /fd toggle debug

    It prints any reason a block was not broadcasted to the console!

    Please update to the latest version and post any bugs you find or suggestions you have. Thanks :)
     
  10. Offline

    Tomskied

    Hey great plugin although on the last two releases I've been struggling with it. My admin broadcasts aren't sending to my players that have the node fd.messages, they don't have '*' or op, and the only way I can get get any messages is with public broadcast, which works perfectly. Ive tried debug also, and it works for public broadcasts, but nothing at all is shown for the admin broadcasts? :?

    Edit: Not sure if I made it clear, but I have checked your troubleshooting guide.
     
  11. Offline

    SeeD419

    The debug mode was slapped together pretty quick, and I didn't have a chance to include admin messages.

    I'll do some testing with the admin messages and add some debug messages for the next release.
     
  12. Offline

    Tomskied

    Ok thanks SeeD :)
     
  13. Offline

    chopstick121

    why cant it show me how much ore i found but my friend can see how much ore i found
     
  14. Offline

    SeeD419

    You likely are an admin and have the '*' permission which is giving you 'ignore.broadcasts'.

    Either get rid of the '*' or give the admin group -ignore.broadcasts.
     
  15. Offline

    Vragensteller

    For some reason only the players can see the messages that someone found ores, but I (the operator) can't see those messages. Why is that?

    EDIT: It seems I was to quick with this question. I found the answer in the post above mine. Thanks, SeeD419. :)
     
  16. Offline

    ahorner

    If anyone else is having this problem, I solved it by deleting my FoundDiamonds folder and letting the plugin rebuild it. I think this was a problem from updating from an older version. Great plugin by the way :D
     
  17. Offline

    SeeD419

    Yeah :/ Sometimes in order to make the plugin better I have to break old things.

    When in doubt, delete the folder! :p Also thank you and glad to hear it's working!
     
  18. Offline

    BoorMachine

    great plugin, im using the trap to make a honeypot at spawn :D.
    Also protect the blocks using worldguard to prevent people from getting the ore.

    Could it be possible to have custom trap blocks?​
     
  19. Offline

    SeeD419

    You can have custom trap blocks! Try /fd trap gold_ore or /fd trap dirt

    Also it should cancel the event and prevent them from getting the ore :p If it doesn't I will fix that...I'll look after I post this.

    Edit: It actually doesn't O.O The next version will cancel them from getting the ores!

    Edit 2: Updated! Latest version cancels the break event for randoms, and also prevents any drops from trap blocks!
     
  20. Offline

    BoorMachine

    Could there also be persistant traps? its looks like when someone mined the trap, the trap gets removed from the config so when someone else tries to mine it, they dont get kicked since i have it placed in an protected area.

    Code:
      Admin Messages:
        Mossy Cobblestone: true
    
    also could this be added to let my admin know when someone finds an mobspawner and an possible texturepack-xray.
     
  21. Offline

    SeeD419

    I'll look into the issue with the traps.

    As for the second suggestion - this will be possible in the next version!
     
  22. Offline

    tangy777

    sorry that this has nothing to do with this plugin, but does anyone know of a plugin that you can teleport offline player??? so the next time that offline player logs on he will be in a certain area? Please reply to this message if you have heard of one of these plugins... Im going to try to post this message on a few popular plugins so i can get this plugin... i need this plugin desparately so please reply to this message and give me a link to the plugin if you find one! Thank you so much for spending the time to read this :p Thanks!​
     
  23. Offline

    Deluxe_Flame

    Is it possible to have the announcements for finding diamond on the Main Lands be displayed in the other realms/dimensions such as the Nether as well?
    let everyone on the server know?
     
  24. Offline

    Felipey

    How do you make it so ONLY Admins can see ore notifications
     
  25. Offline

    xMyNameIsKyLe

    everyone on the server can see the message but OPs cannot will someone please tell me how to fix this :S
     
  26. Offline

    BMXEDWIN

    for all they they have problems with this plugin

    if you had changed the config this addin won´t work

    you musst need the original config than work this app perfect

    i hope this will be changed

    sorry im german not so god english
     
  27. Offline

    bobcat4848

    Well this dosnt work if you are oped and have permissionsex
     
  28. Offline

    Aitchy

    plug in is working got latest cb and latest fd build, but light level not stoppin gmining or giving messages to admin,
    set to true with 10% as default I have given admin the perms for messages
    But still people can mine in the complete dark
    And help i would be thankfull
     
  29. Offline

    Hockey9785

    How come ops cant see the messages?
    EDIT: Never mind in permissions for owner i just did - -ignore.broadcasts and now works perfecty
     
  30. Why does the plugin say it cannot load?
     
  31. Offline

    SeeD419

    Can you post the error here so I can take a look at it?

    Of course, just do "/fd world add world_nether"

    Any worlds under "/fd world list" will show broadcasts.

    That's been changed in the new version. Many people were having problems with it, because it was a negative permission. It's now just 'fd.broadcast'. Any group that has 'fd.broadcast' will see the messages - so instead of giving negative permissions you just give permission :)

    Try the new beta version. There were a lot of bugs with light-monitoring and admin messages in the older versions.

    It works for me and I'm using permissionsex and opped :)

    Use admin messages. "/fd admin add diamond ore" That would send admin messages for diamond ore for anyone with the permission "fd.admin"

    Yeah, there were bugs in the old version :S

    Try the beta?

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

Share This Page