[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: root@localhost #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

    underdog5004

    I would also like to gently remind you that there are still servers using your plugin. I know that life can be hectic and busy making; I just wanted to let you know that you have a following. Would donations help motivate you to update sooner rather than later? I know my server would probably be happy to help finance the update for this plugin!
     
  3. Offline

    Sayshal

    My dev team has emailed him about taking over this plugin. :)
     
  4. Offline

    mrciku

    Alright thanks guys. I received the email, I'll be fixing it for the time being
     
  5. Offline

    Sayshal

    Thanks.
     
  6. Offline

    mrciku

    Updated for 1.2
     
  7. Offline

    Sayshal

    I can't seem to see the link on Bukkitdev.
     
  8. Offline

    Badguy_1

    is this updated r5? and if so can i get a link? thanks
     
  9. Offline

    SeeD419

  10. Offline

    Marc-D

  11. Offline

    mrciku

    Woops, my bad, I forgot to unlink the link when I changed it, it still linked to the old version 42 when it said 44.
     
  12. Offline

    Gary Lim

    Great Plugin! The notifications works great with PermissionsEx :)
     
  13. Offline

    cakeboss

    Well does this work with 1.2.3?
     
  14. Offline

    APhilosopher

    pffft^ now need to ask does it work with 1.2.4? :D lol
     
  15. Offline

    iSeven77

    i have this working with CB #2133 and essentials group manager so i guess it works :)
     
  16. Offline

    Marc-D

    i second that
     
  17. Offline

    jjrambo

    Can custom blocks be added to the config? I.E.
    STONE: true
    MOSSY_COBBLESTONE: true
     
  18. Offline

    CobraBoy

    Hi !

    I'm French, I know there are customizable messages, but I want to traduce the whole plugin, so if it's possible, can you add the source ?

    Thanks for that amazing plugin, I prefer it to FoundDiamonds (which no work with me)
     
  19. Offline

    mrciku

    I'll try and get a GitHub up.

    EDIT: CobraBoy Here, https://github.com/mrciku/FoundBoxx

    EDIT 2: I'm redoing the git, hold on.

    EDIT 3: Done.
     
  20. Offline

    CobraBoy

  21. Offline

    Buizel

    I really like this plugin, I'm sure it'll help really well. Especially how it doesn't spam the server.
    Just one thing, what texture pack were you using?
     
  22. Offline

    mrciku

    In the video I was using the um... DokuCraft.
    In a server with 128 players, I'll bet it'll spam more than FoundDiamonds. Putting delays also isn't a good idea.

    Anyway I need to start on threading the calculations. Anyone good at Java threads able to teach me a thing or two?
     
  23. Offline

    worstboy32

    mrciku
    Could you think about a automatic jailing or banning system when players mine to much ores?
    And could you make it so you can enable things like iron and gold but disable in game messages?
    I only want diamond messages but still iron and gold logged
     
  24. Offline

    Buizel


    I'm sure that'll take a while, but if you ask me, it may be possible to auto-ban a user who found 3 sets of diamonds in under 2 minutes. I'm sure there'll be some way that the diamonds won't 'join together' so the server will make it seem like he found 2 sets of diamonds.

    But wouldn't just be better to get an anti xray plugin then go to all this trouble, worstboy32? I mean, if you want to ban/jail them for finding the ores to fast, it'll defensibly be way more better to get some kinda plugin, Orebfuscator, if you ask me. I guess it would be really nice to have both plugins running at the same time. But I would keep an eye on the thread, if I were you. mrciku may just do that.

    PS:
    I thought we had that already?
    Check your config file for the messages. I'm not sure about logging the blocks.
     
  25. Offline

    worstboy32

    Orebfuscator is really crap coded to be honest.
    It double the server load since it does everything double.
    So that isn't really a option it's a waste of cpu and if it's to hard to add it then just leave it.
    We are working on our own xray detector just thought it wouldn't be that hard to integrate so i thought nice solution for the moment.
     
  26. Offline

    mrciku

    I second that, Orebfuscator used to be a little better. But now I prefer Rawcritics again. But both of them still lags quite the amount.
     
  27. Offline

    Buizel

    I say, if you don't have a computer meant for gaming, then Orebfuscator will wreck you. It happened to me.
    I use xray just to stop the lag, it's way more better then going to the video settings and changing your field of view every 20 seconds.
     
  28. Offline

    Giuseppe

    Code:
    012-05-08 03:01:27 [SEVERE] java.io.FileNotFoundException: ./plugins/update/FoundBoxx.jar (No such file or directory)
    2012-05-08 03:01:27 [SEVERE]    at java.io.FileOutputStream.open(Native Method)
    2012-05-08 03:01:27 [SEVERE]    at java.io.FileOutputStream.<init>(FileOutputStream.java:209)
    2012-05-08 03:01:27 [SEVERE]    at java.io.FileOutputStream.<init>(FileOutputStream.java:99)
    2012-05-08 03:01:27 [SEVERE]    at me.Jaryl.FoundBoxx.Updater.update(Updater.java:36)
    2012-05-08 03:01:27 [SEVERE]    at me.Jaryl.FoundBoxx.FoundBoxx.onEnable(FoundBoxx.java:349)
    2012-05-08 03:01:27 [SEVERE]    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:215)
    2012-05-08 03:01:27 [SEVERE]    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:336)
    2012-05-08 03:01:27 [SEVERE]    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:381)
    2012-05-08 03:01:27 [SEVERE]    at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:256)
    2012-05-08 03:01:27 [SEVERE]    at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:238)
    2012-05-08 03:01:27 [SEVERE]    at net.minecraft.server.MinecraftServer.t(MinecraftServer.java:371)
    2012-05-08 03:01:27 [SEVERE]    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:358)
    2012-05-08 03:01:27 [SEVERE]    at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:187)
    2012-05-08 03:01:27 [SEVERE]    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:422)
    2012-05-08 03:01:27 [SEVERE]    at net.minecraft.server.ThreadServerApplication.run(SourceFile:492)
     
  29. Offline

    mrciku

    :confused:, does it still happen?
     
  30. Offline

    blacanyellow123

    i don't get how you get plugins
     
  31. Offline

    mrciku

    ?
     

Share This Page