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

    BoorMachine

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

    SeeD419

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

    This post has been edited 2 times. It was last edited by SeeD419 Apr 11, 2012.
  5. Offline

    BoorMachine

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

    This post has been edited 1 time. It was last edited by BoorMachine Apr 13, 2012.
  6. Offline

    SeeD419

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    I'll look into the issue with the traps.

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

    tangy777

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

    Deluxe_Flame

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

    This post has been edited 1 time. It was last edited by Deluxe_Flame Apr 22, 2012.
  9. Offline

    Felipey

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    How do you make it so ONLY Admins can see ore notifications
  10. Offline

    xMyNameIsKyLe

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    everyone on the server can see the message but OPs cannot will someone please tell me how to fix this :S
  11. Offline

    BMXEDWIN

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

    bobcat4848

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Well this dosnt work if you are oped and have permissionsex
  13. Offline

    Aitchy

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

    Hockey9785

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    How come ops cant see the messages?
    EDIT: Never mind in permissions for owner i just did - -ignore.broadcasts and now works perfecty

    This post has been edited 1 time. It was last edited by Hockey9785 May 13, 2012.
  15. Offline

    cuddylier

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Why does the plugin say it cannot load?
  16. Offline

    SeeD419

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Can you post the error here so I can take a look at it?
  17. Offline

    SeeD419

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

    This post has been edited 5 times. It was last edited by SeeD419 May 15, 2012.
  18. Offline

    mrciku

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    I'm discontinuing my FoundBoxx. I linked it to your plugin, you can take my farmrate system if you want to. It does seem very well that you have a better and more configurable system than mine.

    EDIT: Oh I forgot to link to the github, it's also at the bottom of my plugin thread. https://github.com/mrciku/FoundBoxx
    EDIT 2: And I do recommend you to do threadings for your ore counter :) It saves lag in the main thread.

    This post has been edited 3 times. It was last edited by mrciku May 16, 2012.
  19. Offline

    ScrimCraft

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Cool plugin! :D
  20. Offline

    austin101

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Seem to be having trouble with this plugin working after I started configuring it:

    Here is my config http://pastebin.com/kdsALS5v

    It does not alert admins, and does not log diamonds to the file.
    Using CB
    Version 1.2.5-R2.0


    Any help is appreciated ;)

    This post has been edited 2 times. It was last edited by austin101 May 20, 2012.
  21. Offline

    Serios

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

    Fluxty

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    I think it would be awesome if this plugin could disable users from mining diamond, gold, and iron at the 0 light level (toggle-able for server owners that have good faith that their users are just playing on 100% brightness).

    This post has been edited 1 time. It was last edited by Fluxty May 29, 2012.
  23. Offline

    owenftw

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Awesome plugin! Caught ALOT of x-raying since I added this.
    SeeD419 likes this.
  24. Offline

    Alesana

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Very useful plugin! Can you add the x, y, z coordination of the ore (or the player when he find it) into the log please? This will will be more acurate to see if the players is using x-ray.
  25. Offline

    ManHands178

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    How do i make it to where only admins or ops can see the fd messeges
  26. Offline

    Thomas211

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

    This post has been edited 1 time. It was last edited by Thomas211 Jun 20, 2012.
  27. Offline

    monir

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    How can i see placed blocks such as diamond ores? in the config it says # If you'd like to announce these placed blocks, feel free to delete this file.
    But it still dont work and after restart the config comes back.
  28. Offline

    BoorMachine

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    are you still working on this?
  29. Offline

    CamelZombie

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    1. [SEVERE] Could not pass event BlockBreakEvent to FoundDiamonds
    2. org.bukkit.event.EventException
    3. at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:304)
    4. at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
    5. at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:460)
    6. at net.minecraft.server.ItemInWorldManager.breakBlock(ItemInWorldManager.java:220)
    7. at net.minecraft.server.ItemInWorldManager.a(ItemInWorldManager.java:175)
    8. at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:540)
    9. at net.minecraft.server.Packet14BlockDig.handle(SourceFile:43)
    10. at net.minecraft.server.NetworkManager.b(NetworkManager.java:229)
    11. at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:113)
    12. at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:78)
    13. at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:567)
    14. at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:459)
    15. at net.minecraft.server.ThreadServerApplication.run(SourceFile:492)
    16. Caused by: java.lang.NullPointerException
    17. at org.seed419.FoundDiamonds.BlockBreakListener.isValidWorld(BlockBreakListener.java:636)
    18. at org.seed419.FoundDiamonds.BlockBreakListener.materialNeedsHandled(BlockBreakListener.java:113)
    19. at org.seed419.FoundDiamonds.BlockBreakListener.onBlockBreak(BlockBreakListener.java:91)
    20. at sun.reflect.GeneratedMethodAccessor71.invoke(Unknown Source)
    21. at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    22. at java.lang.reflect.Method.invoke(Unknown Source)
    23. at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:302)
      Help please! I have no idea what goes on in game. Everything is fine but this keeps on appearing in the console.
  30. Offline

    ukballer1012

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    If you are owner and op you can't receive the messages. Please fix this.
  31. Offline

    SeeD419

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    You have to stop the server, delete that file, and then start the server. Restarting won't work.

    Looks like older code. Try updating please. It's a harmless error though.

    Good catch, I found that bug a couple days ago. I will release a new version shortly with that fixed.

    This post has been edited 1 time. It was last edited by SeeD419 Jul 18, 2012.
  32. Offline

    dejan1k

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    When someone mine diamond or any other ore, i dont get the message that they mine it! I also dont get
    the buff....
    Only when i make myself a builder, i gain the message + the buff....
    This is annoying so i cant see when some1 mines coal/iron/diamond or anything else...

    Help pls, Thx

Share This Page