[INACTIVE][FUN/ADMIN] FoundDiamonds 1.6 - Alerts for finding Ores! (Anti-Xray Mod too!) [860]

Discussion in 'Inactive/Unsupported Plugins' started by itsatacoshop247, Mar 27, 2011.

  1. Offline


    NEWS: OH HAI THUR. I am really not going to update this, but someone made new versions of this:

    FoundDiamonds - PvP inspired/Anti-Xray
    Version: v1.6

    This plugin sends a server wide alert when someone finds diamonds. It is then disabled for 30 seconds s0 that
    there won't be chat spam when someone finds a vein of diamonds.
    Also, theres a 10% everyone else will get something when someone find diamonds too. 5% to get 1-5 of something, and another 5% to get 6-10 of something. The default is 1-5 iron ignots, and 6-10 Coal, but it is changeable in the config!
    I just made this as my first plugin to use on my own server, to hopefully make people want to PvP someone who finds
    diamonds, so its not very advanced :p

    Use '/settrap' to create a diamond vein at your feet (need FD.admin permssion or be in ops.txt)
    Just make sure to put this in a spot where someone would obviously have to use Xray to find it, and when they do find it, It will log it, display a message, and kick the player (Optional)(I'll add and option Ban later)

    Heres a quick video:

    Video of the /settrap usage

    * Server Wide Message
    * Logging when diamonds found!
    * Gives good reason to kill
    * Permissions! add - 'FD.admin' too see all ore breaks. (or less, configurable)
    * Configurable message, colored by type of Ore
    * Ability to set traps designed to catch X-ray Users

    Download Jar- <Edit by Moderator: Redacted mediafire url>
    Another DL if the mediafire doesnt work for you
    If you dont want the /settrap command, <Edit by Moderator: Redacted mediafire url>

    Source Code - https://github.com/itsatacoshop247/FoundDiamonds

    Config Settings:
    Set the ones with 'true' to 'false' to disable them.
    diamond=true //determines whether diamond alerts are shown
    showmmessage=true //determines whether any messages are shown at all
    redstone=true //determines whether redstone alerts are shown
    kickontrapbreak=true //kick the player when they break a trap? (cant ban yet, sorry)
    thirtysecondwait=true  //determines whether the plugin waits 30seconds to show another maessage
    gold=true //determines whether gold alerts are shown
    item1=263 //declare the item to give
    lupuslazuli=true //determines whether lapis alerts are shown
    item2=265 //declare the item to give
    randomitems=true //decide whether the random items feature is active.
    iron=true //determines whether iron alerts are shown
    Broadcast_Message=@Player@ just found @BlockName@! //change what is said when someone finds an ore
    chanceitem1=5//chance to get item one (out of 100%)
    chanceitem2=5//chance to get item two (out of 100%)
    redstone\ admin=true //all of the ones with 'admin's change whether someone with
    gold\ admin=true //the permission 'FD.admin' sees all breaks of this block
    lupuslazuli\ admin=truee //be warned, all admin set to true can be very annoying in chat
    iron\ admin=true
    diamond\ admin=true
    logging=true //do you want it to log when someone find diamonds?
    Version 1.6
    * Traps!
    * Chance to get the 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

    * Suggest things!

    If you looking for more Anti-Cheat options, check out <font color="rgb(16, 97, 179)">this plugin</font> by Evenprime!
    Last edited by a moderator: Dec 14, 2016
  2. Offline

    Pink Floyd

    Would love to see this amazing plugin updated. Keep up the great work.
  3. Offline


    Is there a way to switch the colors for lapis and diamond announcements? That's always bothered me.
  4. Offline


    -Switched colors for lapis and diamond (changed lapis to dark blue, thoughts?)
    -Improved readability of configuration file
    -Added a 3rd random item to the config file (defaults to slime balls)
    -Changed random items to show item names, not ID numbers
    -Rewrote the code for getting random items + amounts
    -Improved error messages for exceptions
    -Fixed some spelling errors
    -Changed 30 second wait to 20 seconds.

    Broken: Permissions. I don't think they're working.

    Compiled for CB 1317
  5. Offline


    Uh oh...

    16:40:12 [SEVERE] Could not load 'plugins\FoundDiamonds.jar' in folder 'plugins'
    java.util.zip.ZipException: error in opening zip file
            at java.util.zip.ZipFile.open(Native Method)
            at java.util.zip.ZipFile.<init>(Unknown Source)
            at java.util.zip.ZipFile.<init>(Unknown Source)
            at java.util.jar.JarFile.<init>(Unknown Source)
            at java.util.jar.JarFile.<init>(Unknown Source)
            at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.j
            at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.
            at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager
            at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:136)
            at org.bukkit.craftbukkit.CraftServer.<init>(CraftServer.java:112)
            at net.minecraft.server.ServerConfigurationManager.<init>(ServerConfigur
            at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:136)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:348)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
  6. Offline


    It's not supposed to be a zip file :)
    Check the dist/ folder for the jar file.

    Edit: Forums are acting strangely and not letting me quote correctly.
  7. Offline


    I'm using the jar, not the zip. I right clicked where it said raw and saved FoundDiamonds.jar.
    That's why I'm not sure why I got this error.
  8. Offline


    Strange. Try this instead:

    If that doesn't work, I'll have to look into it when I get home :(
  9. Offline


    The good news is that it starts now. However, I don't see any messages when someone breaks a block.

    Edit: Nevermind, I didn't set the broadcast options to true in the config file.
  10. Offline

    Costan Balgobin

    When i set the trap all of my players can see it...
  11. Offline


  12. Offline


    That jar works great on 1185 but its telling players a pointless message "you do not have permission" when they break a block , You interested in keeping this plug going ?
  13. Offline


    Yeah someone needs to :p

    Permissions should be fixed in that one. For the record also, the source didn't have /settrap so mine doesn't either. I'm contemplating adding it though.
  14. Offline


    PFFF I never cared for the traps just notifications for ore has been enough for me , this of course doesnt catch every xrayer but its brought about 100 or so to my attention over the past few months ! Its just one of those plugins that should have been a part of the minecraft_server.jar .
    Thanks for the link man :) ill toss that updated jar in , is it 1185 ? (doesnt seem to matter with this plug)
  15. Offline


    Np. That was compiled against 1337 so if you update you shouldn't have any issues.
  16. Offline


    haha i use worldguard for my premium users land so i can update for a while WG is always so incredibly slow ,
    On a side note i tried the new one and my players get spammed with the permissions message for every ore , ive had to pull the plug out of commision again :( ... Are you looking for another project sir ? lol
  17. Offline


    The plugin doesn't contain any messages about permissions anymore.

    Edit: Scratch that I found it. I think it's bukkit sending those messages...
  18. Offline


    hey i caught you online any idea of how to get rid of those ?
    also would you be interested in revamping another simple but awesome plug which has been abandoned ?
  19. Offline



    If you turn the AdminMSG feature off the plugin doesn't do it. I can't figure out who is sending that message though, because it's not FoundDiamonds.
  20. Offline


    ill see if that kills it, the plug i mentioned that you may want to take a peek at is portable torches , theres a few plugs that arent working anymore which i use to reward my premium users if your interested in this sort of thing i could work out an exchange for your efforts :)
  21. Offline


    Oops. I found the issue :) Re-download. Fixed.

    Edit: Just use the same dropbox link above.
    Edit2: Added /settrap & ability to ban on trap break. Some things still need to be fixed, but I've been coding all day and I need some sleep. Same dropbox link.

    Fixed /settrap implementation by now logging ALL trap blocks.
    Fixed kick messages for /settrap.
    Added if player has permission FD.admin - They are immune to trap blocks and can remove them.

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


    I really like this plugin but I don't like the fact that it gives other players in the game some iron if you find diamonds for example, and the config isn't that easy to understand and its very messy, I think if you edited the config layout it could be an amazing plugin. =)
  23. Offline



    set it to false

    FoundDiamonds v1.8.1 CB 1337 (to match the server version :) )


    -Attempted to further clean up configuration file and make it more easily readable.
    -Changed /settrap diamond block generation to more closely mimic real diamond generation.
    -Made plugin print current version on startup
    -Cleaned up code
    -Satisfied compiler warnings about inefficient logger usage

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


    problem fixed :)
  25. Offline


    found a bug i set redstone messages to false and "sometimes" it still says the messages for redstone
  26. Offline



    I can't get this working correctly, all i want is for people with FD.admin to see gold and diamond messages. I do not want everyplayer seeing the messages, this is what i currently have set up - is something wrong?

    #===[FoundDiamonds] Configuration===
    #Fri Oct 28 21:27:15 GMT+01:00 2011
    BroadcastMessage=@Player@ just found @BlockName@\!
  27. Offline


    There's your problem. You don't want it to "broadcast". :p
  28. Offline


    Inactive. Moved.
  29. Offline


    By the OP, yes, but I updated this to the latest RB.

    Like someone else already said, if you want only admin messages, then completely disable the broadcasts for ores, and enable only the admin messages.

    That's strange. I'll look into it and see if I can re-create the bug.
  30. Offline


    It's recommended (required?) that people start a new thread when they take over projects from others, such that they can edit the thread title and OP to keep all important information there uptodate.

    So I suggest if you want to keep updating this, you do that. Because now that it is marked as inactive, it won't show up at plugins.bukkit.org in the plugin search anymore.
    SeeD419 likes this.
  31. Offline


    Ah I see, will do that. Thanks :)

Share This Page