[INFO/ADMN] FoundBoxx v1.8.4.3 - Ore finds announcer (anti-cheat, xray, fullbright) [CB 1.7.9-R0.1]

Discussion in 'Archived: Plugin Releases' started by mrciku, Oct 29, 2011.

  1. Offline

    mrciku

    FoundBoxx (29/5/14 1119HRS [+8GMT])

    [​IMG]
    Multi-threaded optimizations! Flat file (H2) support!
    Custom messages and blocks support!
    (Video version: v1.8.4.3)
    Show Spoiler
    (Video version: v1.4.1)
    If you would like to contribute without paying any money, try checking out the ads in my demonstration video and/or the description. Every click is gladly appreciated! Thanks!
    Description: Continuation of FoundDiamonds from scratch (Yes, even the MySQL, but 10% of it is from a tutorial). Announces ore finds. Easy to configure. Extra features​

    Features:
    • Announcing findings of the different ore by players
    • Able to set to use permissions (Look below)
    • Able to configure which ore to announce
    • Announces number of the same ore nearby
    • Announces light level (in percentage, for fullbright hackers)
    • Able to set only survival players to then announce
    • Saves all nearby ores into a list to prevent players from getting it announced again after 30 seconds unlike FoundDiamonds
    • List will be cleared on server restarts or entries removed on removing the blocks
    • Random item on mining diamonds
    • Able to set to disallow mining at light 0, to help in fullbright hackers
    • SQL and flat file (H2) support!
    • Using database you can also get a player's farmrate!
    • Customizable messages!
    • Auto-updater
    Configuration Defaults (plus comments):
    Code:
    Auto_Update_On_Plugin_Enable: true  #toggle the auto updater running on start because you don't trust me/are lazy. You can still use "/fb update".
    Notify_On_Updates: true #notify people with the foundboxx.cmd.update permission on updates available (not linked with auto update)
    Allow_Usage_Stats_Collection: true #allow MCStats data collection
    Survival_Only: true #only listens to players in survival mode (recommended: true)
    Use_Nickname: false #when announcing, use the players nick (display name). SQL logging is still original real name
    Use_Permissions: false #permissions enabled? If no permissions, op will do (PermissionBukkit, PEX, bPerms)
    Messages:
      Found_Notification: '%ply found %amt %blk(s) (Visibility: %vis%)' #block found notification (%ply = Player name; %amt = Amount of the block found; %blk = Block name; %vis = Visibility value)
      Must_Have_Light_To_Mine: Interacting in the dark is dangerous! Put some torches! #warning to display when mining in dark is disallowed and the person mines in the dark
    Count_Diagonal_Ores: false #should the plugin count diagonal ores
    EMERALDS: true #announce emeralds.
    DIAMONDS: true #announce diamonds
    GOLD: true #announce gold
    IRON: true #announce iron
    COAL: false #announce coal
    LAPIS: true #announce lapis
    REDSTONE: true #announce redstone
    Extra_Blocks_IDs: [] #also announce all ids inside the box separated with a comma (Format: [1, 2, 3])
    Percentage_Chance_To_Give_Randoms_Item: 0 #out of 100, chance to give a random item to everyone, leave 0 to disable.
    Max_Random_Items_To_Give: 3 #max number of the random item to give, 1 to this value
    Random_Item_To_Give: 365 #item id of the random item
    Must_Have_Light_To_Mine: false #disallow fullbrighters to mine in the dark at light 0 (still announces ore finds but without visibility)
    SQL_Enabled: false #false = Disable SQL and H2; true = Enable SQL; SQL = Enable SQL; H2 = Enable H2
    SQL: #ONLY REQUIRED TO CHANGE USING SQL (H2 ONLY USES PREFIX) IS ON
      URL: localhost #URL of SQL
      Port: 3306 #port of SQL
      Database: minecraft  #Database to use
      Prefix: fb  #prefix of all FB database (eg. "fb-log")
      User: [email protected] #username to log in SQL
      Pass: '' #password to log in SQL
      Days_To_Remove: 1 #how long can a log survive before it is able to get deleted on startup.
      Maximum_Queries: 5000 #how many queries that can be used (To MySQL literate people, it's the maximum LIMIT value)
      Maximum_Data_Queries_Per_Second: 10 #how many queries to be sent per second (to prevent overload)
    Commands:
    • /foundboxx OR /fb - Prints all commands
    Permission Nodes (case sensitive) [PermissionBukkit, PEX, bPerms]:
    • foundboxx.* - Everything below (Try to give this to only MAIN server admins)
    • foundboxx.admin - Use ALL /fb commands (Try to give this to only MAIN server admins)
    • foundboxx.notify - Get the notification
    • foundboxx.dark - Allows mining in dark all the time
    • foundboxx.cmd.reload - Allow /fb reload and /fb config (WARNING: GIVE TO ONLY TRUSTED PEOPLE [THEY CAN SEE MYSQL PASSWORD])
    • foundboxx.cmd.queue - Allow /fb queue
    • foundboxx.cmd.farmrate - Allow /fb farmrate
    • foundboxx.cmd.update - Allow /fb update
    • foundboxx.ignore.* - Ignore for all ore finds
    • foundboxx.ignore.emerald - Ignore emerald finds
    • foundboxx.ignore.diamond - Ignore diamond finds
    • foundboxx.ignore.gold - I don't need to say what this does
    • foundboxx.ignore.iron - I don't need to say what this does
    • foundboxx.ignore.lapis - I don't need to say what this does
    • foundboxx.ignore.redstone - I don't need to say what this does
    • foundboxx.ignore.coal - I don't need to say what this does
    • foundboxx.ignore.allextras - I don't need to say what this does
    Changelog:
    v1.8.4.3
    Added 2 new configuration settings:
    • Notify_On_Updates: true #notify people with the foundboxx.cmd.update permission on updates available (not linked with auto update)
    • Allow_Usage_Stats_Collection: false #allow MCStats data collection
    v1.8.4.2 (another small update, optional)
    - Included MCStats statistics support (hopefully it is working)
    v1.8.4.1 (small update, optional)
    - Just added a small update reminder to a player with the update permission when he/she joins (only will prompt if auto update setting is true)
    v1.8.4
    - Fixed a derp in checking if a block is untouched before when SQL is not enabled.
    - Changed configurations API to the simpler Bukkit getConfig() API.
    - Added a new option to toggle counting diagonal ores (normally hidden while mining underground) [Set to false as default to stop "cheating" using my plugin].
    v1.8.3
    - Changed auto updater to the CurseAPI system
    v1.8.2
    - Derp on the H2 database
    v1.8.1
    - Attempt to fix auto updater
    - Wrong version number
    v1.8.0
    - Project has been revived! Probably for a short term though.
    - Fixed all the errors for now and made compatible with the latest bukkit developer build.
    I will need some help on some things such as:
    - Any incompatible permissions plugin
    - Bugs
    Todo:
    - Improve threading.
    Show Spoiler
    v1.7.7
    - Added block places to SQL/H2 support. On server restarts if a player (in survival mode) had placed an ore on the ground, it will not announce anymore.
    v1.7.6
    - Added config to disable auto-update on startup
    - Optimized a little bit of the variables (Some were looping)
    - "Portabalized" the auto-updater
    - More restructuring of folders
    v1.7.5
    - Added threading for SQL/H2 startup
    - Added a double checker to check if the H2 library file is corrupted and re-downloads if it is
    - More rearrangement of code to folders
    v1.7.4
    - Extremely critical bug that causes huge stack overflow fixed.
    v1.7.3
    - Threading complete! Code more optimized yay!
    v1.7.2
    - Made auto-updater run on separate threads! Yippie! Doesn't slow down start up time and my first successful thread attempt!
    v1.7.1
    - Re-organized folders
    - Enhanced auto-updater (Even more efficient)
    - Added custom message to print configurations
    - Nicer print configurations
    - Starting on threads (Not in use yet)
    v1.7
    - Added custom messages support
    - Added custom blocks support (farmrates supported also)
    v1.6.2
    - Added 1.2 support by fixing events.
    v1.6.1.4
    - Fixed permissions for ops when permissions is disabled.
    v1.6.1.3
    - Removed WorldGuard support for the time being, until I get the API sorted.
    v1.6.1.2
    - Fixed NPE, silly me.
    v1.6.1.1
    - Finished auto-updating alittle bit more.
    - WorldGuard support!
    v1.6.1
    - Auto download updates on "/fb update"!
    v1.6.0.3
    - Hopefully fixed PEX related issues
    - Added ignore permissions
    - Tweaked disable mining in dark
    - Rearranged some if statements
    v1.6.0.2
    - Probably fixed SQL
    v1.6.0.1
    - Fixed H2 error.
    v1.6
    - Finally! FLAT FILE SUPPORT! FOR THOSE WHO WANT IT! SEE THE CONFIGURATION COMMENT ON SQL ON HOW TO USE IT! CREDITS THANKS TO xAuth FOR THE OPEN-SOURCE CODE. H2 library downloads on it's own with FB, no worries!
    v1.5.2.8
    - Tweaked SQL connections alittle bit, hoping to fix the error some people are facing.
    - Also tweaked abit of the plugin.yml permissions.
    v1.5.2.7
    - Probably fixed PEX support, check again please.
    v1.5.2.6
    - Removed the checks for "Disallow mining in dark" in Nether.
    - Removed the checks "Disallow mining in dark" when Y < 60, only check when block is at least 5 blocks below sea level (Sea level is 64 therefore, when Y is 59 and below).
    v1.5.2.5
    - Fixed reader error on start-up
    v1.5.2.4
    - Added more minor permissions for each command, foundboxx.admin still allows all other commands.
    v1.5.2.3
    - Fixed bPermissions support
    v1.5.2.2
    - Fixed NPE in the latest development builds of craftbukkit
    v1.5.2.1
    - Possibly fixed the error for ArrayList in SQL queue
    v1.5.2
    - Added "Use_Nick" configuration to announce using the players display name instead of MC name
    - Fixed added a configuration to change maximum data queries per second defaulted to 10 (was 3 and kinda not synchronized)
    v1.5.1.3
    - Added /foundboxx for those with plugins that override /fb
    - Modified help printing
    - Rearranged code for the sake of my eyes and brain
    v1.5.1.2
    - Code rearrangement
    - Disabled printing farmrates of disabled ores in configuration to remove ugly "0"s
    - Added the colouring of farmrate prints through my statistics (I still need to get statistics from red stone and coal, can you guys help me?)
    - Some minor bugfixes
    v1.5.1.1
    - Fixed the minimum farmrate checking days from 2 to 1.
    v1.5.1
    - Added "/fb farmrate (name) (days)" command to check farmrates and players!
    - Made SQL reload on "/fb reload".
    v1.5
    - Added MySQL support!
    v1.4.4.1
    - Fixed the stupid visibility notification not showing again.
    v1.4.4
    - Added PEX and bPerms support (UNTESTED ON 8/11/11!)
    v1.4.3
    - Fixed the need to turn on permissions for everyone to see [notify perm was defaulted to false when permissions is disabled] (SILLY ME!)
    v1.4.2.2
    - Code rearrangement
    - Changed the warning of the "Disallow mining in dark"
    - Added a few more things to plugin.yml
    v1.4.2.1
    - Fixed mining in the dark when disallowing it also does not announces the ore finding.
    - Optimized a very tiny bit of performance by moving some if functions around.
    v1.4.2
    - Fixed configuration printing for "Disallow mining in dark" value
    - Tweaked a little bit of the permissions
    v1.4.1
    - Workaround for the counter displaying too much (Hope it works)
    v1.4
    - Added redstone ore configuration
    - Added reload command (With permissions)
    - Fixed up the visibility notification
    - Some other bugfixes
    v.1.3.1
    - Fixed the counter from showing 1 less block
    v1.3
    - Shortened notification message
    - Added permissions
    - Added a must have light to mine function
    - Changed color of lapis notification to look more better to the eye with Doku font
    v1.2.1
    - Fixed to only give random items once per bunch
    v1.2
    - Fixed NPE on PlayerInteract
    v1.1
    - Fixed coal and lapis announcing
    - Added giving random items on a player mining diamonds
    - Changed "Light:" to "Visibility:" and shows a percentage instead
    - Added a feature to not announce if the ore is player placed until restart
    - Now uses the new YAMLConfiguration instead of the deprecated one
    v1.0
    - Initial release

    To be made:
    • Multi-world support (Soon hopefully)
    • Traps (Also will be integrated to SQL to get farmrates for traps!)
    • Ability to set delays between messages
    • Ability for users to choose to get their own announcement even if it is disabled by the server
    Credits:
    • mrciku - Main base code
    [​IMG]
    Stats collection: MCStats Lite is included in the latest versions and will just be collecting really basic information (your server's IP address, and other private information will not be collected) about your server. The collection will be used for the public's (mainly mine) knowledge on the popularity of the plugin, you may choose to opt-out in the configurations by changing the "Allow_Usage_Stats_Collection" option to false. For more information please head tohttp://mcstats.org/learn-more/
    BUKKITDEV:

    Source:
     
  2. Offline

    Grasfer

    Ah ok, thanks, that might be the problem then :) I'll wait for the new awesome build then :)
     
  3. Offline

    mrciku

  4. Offline

    Grasfer

    Fresh FoundBoxx install, no old configs.


    Code:
    2011-12-31 17:36:22 [INFO] This server is running Craftbukkit version git-Bukkit-1.0.1-R1-b1597jnks (MC: 1.0.1) (Implementing API version 1.0.1-R1)
    2011-12-31 17:36:22 [SEVERE] Could not load 'plugins/FoundBoxx.jar' in folder 'plugins':
    java.lang.reflect.InvocationTargetException
            at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
            at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
            at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
            at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
            at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:175)
            at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:215)
            at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:136)
            at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:151)
            at org.bukkit.craftbukkit.CraftServer.<init>(CraftServer.java:127)
            at net.minecraft.server.ServerConfigurationManager.<init>(ServerConfigurationManager.java:52)
            at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:145)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:399)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:457)
    Caused by: java.lang.NoClassDefFoundError: com/sk89q/worldguard/bukkit/WorldGuardPlugin
            at me.Jaryl.FoundBoxx.fBlockListener.<init>(fBlockListener.java:23)
            at me.Jaryl.FoundBoxx.FoundBoxx.<init>(FoundBoxx.java:21)
            ... 13 more
    Caused by: java.lang.ClassNotFoundException: com.sk89q.worldguard.bukkit.WorldGuardPlugin
            at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
            at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:36)
            at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:24)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
            ... 15 more
    2011-12-31 17:36:22 [INFO] [Waypoint] Initialising configurations.
    
     
  5. Offline

    mrciku

    yeah. I just had 3 constant updates because of fail WorldGuard support =.=

    This is fixed on 1.6.1.3, you probably have 1.6.1.1 or 1.6.1.2.
     
  6. Offline

    Grasfer

    Probably :). Is the fix so it say when OP find minerals now?

    x.1.3 works fine (atleast it loads) :)

    when i try any /fb commands it complains about unknown command or no permission.
     
  7. Offline

    mrciku

    There is one problem with that... It's quite irritating that OP has all permissions all the time, it's not fixed yet though. And crap. A bug. ARGHHHHH.

    EDIT: @Grasfer Ok do an /fb update and a reload (or restart), that OP find minerals "should" be fixed also... I hope...

    Juggling 3 plugins at one go is a bad idea ><
     
  8. Offline

    Grasfer


    /fb commands works now, atleast no mess about permission etc.

    I did not get any message i found IRON i just tested, survival only set to false iron to true, and i play in survival mode.
     
  9. Offline

    shauwk

    oh yea this plugin is awesome

    everybody likes it
     
  10. Offline

    Grasfer

    Hi there, can you give me an example of how to set this up with permissions?
     
  11. Offline

    shauwk

    hey i didnt have to set up anything . heres the default config file. you can just leave use_permissions as false then change what ore finds you want announced on the config file. thats what i did

    Survival_Only: true
    Use_Nickname: false
    Use_Permissions: false
    DIAMONDS: true
    GOLD: true
    IRON: true
    COAL: false
    LAPIS: true
    REDSTONE: false
    Percentage_Chance_To_Give_Randoms_Item: 0
    Max_Random_Items_To_Give: 3
    Random_Item_To_Give: 365
    Must_Have_Light_To_Mine: false
    SQL_Enabled: false
    SQL:
    URL: localhost
    Port: 3306
    Database: minecraft
    Days_To_Remove: 1
    Maximum_Queries: 5000
    Maximum_Data_Queries_Per_Second: 10
    Prefix: fb
    User: [email protected]
    Pass: ''
     
  12. Offline

    Grasfer

    Weird, i have it at default etc but dont see announce on anyone that is playing.

    Ok it works fine now, did a complete reinstall of the plugin, removed config and the jar and it works now.

    Happy panda.

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

    prizna

    Quick question should it be alerting everyone on the server when someone mines an ore, or should it only be telling ops? because at the moment it is alerting everyone on the server.
     
  14. Offline

    mrciku

    When Use_Permissions is off, it's basically like FoundDiamonds and alerts everyone still.
     
  15. Offline

    prizna

    So use permisions enabled means you need the permissions and use permissions disabled means you dont need the permissions.
     
  16. Offline

    mrciku

    Basically, Use_Permissions: true

    Everything is defaulted to op or permissions (probably no)

    Use_Permissions: false

    ONLY getting notifications and the rest is OP.
     
  17. Offline

    hunterm

    Hi, me and my fellow admins love this plugin, and so do our users! I was hoping you could maybe add in two features we've been wanting lately:

    The first one, is that my admins have been wanting a permission node where you can choose who can see the visibility percent.

    Second of all, another user of ours was wondering if there was way it could to a green message for Mossy Cobblestone. I assume this could be done even better if you could allow customization of color for messages, and customization of blocks to track.

    Thanks for the great plugin!
     
  18. Offline

    Holgate


    Right, so this isn't working too well right now..

    For some reason, when the default group mines(Also all types of VIP) it doesn't show up, however, if an Admin mines it, it will show up..

    The current permissions the admins have right now are..
    *
    -foundboxx.ignore.diamond
    -foundboxx.ignore.gold
    -foundboxx.ignore.lapis
    This way it will not ignore diamond/gold/lapis.

    Any idea why it isn't showing when default players mine it?


    EDIT: I'm sure it's something stupid i've forgotten ;p
     
  19. Offline

    Vilicus

    Could you add custom material support via item ID where we can set it to announce the name of our choosing? I'm using a compilation of IndustrialCraft2, Buildcraft, and RedPower2 among a few others with their own materials that I would love to announce, especially upon finding things like gems or uranium. Something like this in the config might be useful...

    CUSTOM_ID:
    '''''123: true
    ''''''''''NAME: URANIUM
    '''''666:
    ''''''''''NAME: TUNGSTEN
     
  20. Offline

    erik058

    WTF! IT DOESNT LOG DIAMONDS!!!!!!!!!!!!!!!
     
  21. Offline

    iSeven77

    why cant i see the alerts on the console ? or OKlogger plugin ? would be nice to keep a log to know who is abusing :p THANKS for this btw !!!
     
  22. Offline

    shauwk

    yea i would like it to show on console also , an option for it
     
  23. Offline

    pookshuman

    What is the difference between SQL true and false ... I just set up a mysql server for logblock, but what functions would it add for this mod?

    TY
     
  24. Offline

    fjutte

    Why should I use this? Is it better than "Founddiamonds"?

    I would like customizable messages! Like:
    founddiamond: "&e{player} &ffound &bDiamonds&f!"
    foundiron: "&e{player} &ffound &fIron!"

    when found diamonds, will output, i.e:
    Fjutte found 3 Diamond ore!
     
  25. Offline

    Crayder

    Do permissions for this not work with Group Manager? I'm giving a user foundboxx.admin and they still cannot see farmrates.
     
  26. Offline

    KA_Gamer

    Is this still active and are we going to see a 1.1-R3 soon if so?
     
  27. Offline

    RG_PankO

    mrciku is there a way to find the TOP 5, TOP 10 players who have found diamonds last 1/2/3 days?
    If there isn't can you add one?
    Becouse there are player who play/destroy diamonds only at night and I will never think about checking them with the /fbfarmrate command.
     
  28. Offline

    MarleySR

    I put a group to see the warnings ...

    but wanted to appear in the console also
     
  29. Offline

    Sich

    +1 :)
     
  30. Offline

    Sayshal

  31. Offline

    Sayshal

    mrciku
    Before you rage at me for rushing you to get this updated, I'm only posting this so you know exactly what to fix. I don't need to ASAP, just letting you know what's wrong with it.
    Testing on: #2013 DEV BUILD
    Using Version: 1.6.1.4 (according to plugin.yml file)
    Error on startup: http://pastebin.com/ibr60zi7
     

Share This Page