[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

    Adrenaline

    Bukkit: 1550
    FoundBoxx: 1.6
    Database: H2

    Errors:
    PHP:
    2011-12-09 10:43:47 [SEVEREorg.h2.jdbc.JdbcSQLExceptionBlad konwersji danych "-58.0"
    Data conversion error converting "-58.0"SQL statement:
    SELECT FROM `fb-logWHERE `x` = '759.0' AND `y` = '31.0' AND `z` = '-58.0' LIMIT 1; [22018-162]
    2011-12-09 10:43:47 [SEVERE]     at org.h2.message.DbException.getJdbcSQLException(DbException.java:329)
    2011-12-09 10:43:47 [SEVERE]     at org.h2.message.DbException.get(DbException.java:158)
    2011-12-09 10:43:47 [SEVERE]     at org.h2.value.Value.convertTo(Value.java:852)
    2011-12-09 10:43:47 [SEVERE]     at org.h2.expression.Comparison.getValue(Comparison.java:234)
    2011-12-09 10:43:47 [SEVERE]     at org.h2.expression.ConditionAndOr.getValue(ConditionAndOr.java:83)
    2011-12-09 10:43:47 [SEVERE]     at org.h2.expression.Expression.getBooleanValue(Expression.java:180)
    2011-12-09 10:43:47 [SEVERE]     at org.h2.command.dml.Select.queryFlat(Select.java:515)
    2011-12-09 10:43:47 [SEVERE]     at org.h2.command.dml.Select.queryWithoutCache(Select.java:618)
    2011-12-09 10:43:47 [SEVERE]     at org.h2.command.dml.Query.query(Query.java:297)
    2011-12-09 10:43:47 [SEVERE]     at org.h2.command.dml.Query.query(Query.java:267)
    2011-12-09 10:43:47 [SEVERE]     at org.h2.command.dml.Query.query(Query.java:36)
    2011-12-09 10:43:47 [SEVERE]     at org.h2.command.CommandContainer.query(CommandContainer.java:82)
    2011-12-09 10:43:47 [SEVERE]     at org.h2.command.Command.executeQuery(Command.java:187)
    2011-12-09 10:43:47 [SEVERE]     at org.h2.jdbc.JdbcPreparedStatement.executeQuery(JdbcPreparedStatement.java:96)
    2011-12-09 10:43:47 [SEVERE]     at me.Jaryl.FoundBoxx.SQL.Query(SQL.java:105)
    2011-12-09 10:43:47 [SEVERE]     at me.Jaryl.FoundBoxx.fBlockListener.canAnnounce(fBlockListener.java:148)
    2011-12-09 10:43:47 [SEVERE]     at me.Jaryl.FoundBoxx.fBlockListener.onPlayerInteract(fBlockListener.java:83)
    2011-12-09 10:43:47 [SEVERE]     at org.bukkit.plugin.java.JavaPluginLoader$11.execute(JavaPluginLoader.java:330)
    2011-12-09 10:43:47 [SEVERE]     at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    2011-12-09 10:43:47 [SEVERE]     at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:339)
    2011-12-09 10:43:47 [SEVERE]     at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:178)
    2011-12-09 10:43:47 [SEVERE]     at net.minecraft.server.ItemInWorldManager.dig(ItemInWorldManager.java:92)
    2011-12-09 10:43:47 [SEVERE]     at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:497)
    2011-12-09 10:43:47 [SEVERE]     at net.minecraft.server.Packet14BlockDig.a(SourceFile:43)
    2011-12-09 10:43:47 [SEVERE]     at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    2011-12-09 10:43:47 [SEVERE]     at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:92)
    2011-12-09 10:43:47 [SEVERE]     at net.minecraft.server.NetworkListenThread.a(SourceFile:108)
    2011-12-09 10:43:47 [SEVERE]     at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:516)
    2011-12-09 10:43:47 [SEVERE]     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:414)
    2011-12-09 10:43:47 [SEVERE]     at net.minecraft.server.ThreadServerApplication.run(SourceFile:457)
    2011-12-09 10:43:47 [SEVERECaused byjava.lang.NumberFormatException: For input string"-58.0"
    2011-12-09 10:43:47 [SEVERE]     at java.lang.NumberFormatException.forInputString(Unknown Source)
    2011-12-09 10:43:47 [SEVERE]     at java.lang.Integer.parseInt(Unknown Source)
    2011-12-09 10:43:47 [SEVERE]     at java.lang.Integer.parseInt(Unknown Source)
    2011-12-09 10:43:47 [SEVERE]     at org.h2.value.Value.convertTo(Value.java:809)
    2011-12-09 10:43:47 [SEVERE]     ... 27 more
    2011
    -12-09 10:43:47 [INFO] [FoundBoxxUnable to load the position above for checking.
     
  3. Offline

    mrciku

    :| why doesn't this happen with my testings. ok hold on.

    I also got some problems with SQL now... DAMN IT.

    EDIT: Oh great, H2 think negative values are strings. Or maybe it's this small typo...

    EDIT 2: Fixed. Releasing v1.6.0.1 soon.
     
  4. Offline

    Adrenaline

    Now work correctly
     
  5. Offline

    mrciku

    Yeah, thanks for telling...

    Did so many people stop using my plugin? Or is semi-normal status not keeping number of downloads :| Meh.
     
  6. Offline

    Dysp

    How does foundboxx work? I like it, but I am currently using it mostly for catching x-rayers.
    My problem is that I can only catch people, when they are already suspects by /fb farmrate <name> <time>. This only helps me catch people in the act, however when I am not online, how should I know who to look up?

    I want to be able to list people and sort it however I wish to, even make graphs over their findings. This would be possible, easily, if the sql-output was actually useful.
    At the moment it only posts what kind was found (block), timestamp and coordinates (what do we need coordinates for?).
    Why not visibility?

    How does foundboxx anyway determine who is "hacking"? Does it only compare amout pr. day? This doesn't take into account if the person is just online alot?
    Player online 10 hours: 100 diamonds = Xray!
    Player online 2 hours: 20 diamonds = Not xray.
    Hacker online 2 hours: 100 diamonds = Xray!

    Only the last one will be xraying, right?
     
  7. Offline

    mrciku

    Well, /fb farmrate uses according to my statistics on someone using an xray on my server, but you yourself will be the one to determine if he is xraying. I also wanted to store visibility, but it'll be hard to show it in "/fb farmrate"... Maybe I might think of adding average visibility for specific ores?
     
  8. Offline

    Dysp

    When someone finds an ore, it displays the visibility. How come this is not possible logging aswell?
     
  9. Offline

    Sevennemesis

    OOooooh yeah!! very very great plugin! :)

    but it'd be nice to change the text as you want it!

    +1
     
  10. Offline

    Killdogz

    The permissions don't work :s when i place foundboxx.notify: false it still shows for default

    Permissions: permissionsbukkit

    EDIT: nvm i was blind as bat ;)
     
  11. Offline

    Florebor

    Great plugin, i especially love the visibility! Great work! :D

    One tip for other people, i tested the notification with self-placed diamond ore, i didn't get a notification. Of course this is good but i thought my notifications didnt work untill i mined 'real' ore. Just saying for people in the same situation as me! (it took me half an hour to decide to search for some 'real' ore :p)
     
  12. Offline

    supayoshi1

    error
    it keeps using the localhost for the database, instead of the server i specified.
    16:08:06 [INFO] [FoundBoxx] New configurations:
    16:08:06 [INFO] Survival only: true
    16:08:06 [INFO] Permissions: true
    16:08:06 [INFO] DIAMONDS: true
    16:08:06 [INFO] GOLD: true
    16:08:06 [INFO] IRON: true
    16:08:06 [INFO] LAPIS: true
    16:08:06 [INFO] REDSTONE: false
    16:08:06 [INFO] COAL: false
    16:08:06 [INFO] Chance random item: 0%
    16:08:06 [INFO] Max random items: 3
    16:08:06 [INFO] Random item: 365
    16:08:06 [INFO] Disallow mining in dark: false
    16:08:06 [INFO] SQL: mysql://******:******@**domain.com:3306/*********/fb-log (30, 5000)
    16:08:06 [INFO] [FoundBoxx] Attempting to load SQL.
    16:08:06 [SEVERE] java.sql.SQLException: Access denied for user '********'@'*****.localhost.com' (using password: YES)
    16:08:06 [SEVERE] at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1073)
    16:08:06 [SEVERE] at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3593)
    16:08:06 [SEVERE] at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3525)
    16:08:06 [SEVERE] at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:931)
    16:08:06 [SEVERE] at com.mysql.jdbc.MysqlIO.secureAuth411(MysqlIO.java:4031)
    16:08:06 [SEVERE] at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1296)
    16:08:06 [SEVERE] at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2338)
    16:08:06 [SEVERE] at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2371)
    16:08:06 [SEVERE] at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2163)
    16:08:06 [SEVERE] at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:794)
    16:08:06 [SEVERE] at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:47)
    16:08:06 [SEVERE] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    16:08:06 [SEVERE] at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
    16:08:06 [SEVERE] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
    16:08:06 [SEVERE] at java.lang.reflect.Constructor.newInstance(Unknown Source)
    16:08:06 [SEVERE] at com.mysql.jdbc.Util.handleNewInstance(Util.java:407)
    16:08:06 [SEVERE] at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:378)
    16:08:06 [SEVERE] at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:305)
    16:08:06 [SEVERE] at java.sql.DriverManager.getConnection(Unknown Source)
    16:08:06 [SEVERE] at java.sql.DriverManager.getConnection(Unknown Source)
    16:08:06 [SEVERE] at me.Jaryl.FoundBoxx.SQL.Load(SQL.java:139)
    16:08:06 [SEVERE] at me.Jaryl.FoundBoxx.FoundBoxx.loadConfigurations(FoundBoxx.java:105)
    16:08:06 [SEVERE] at me.Jaryl.FoundBoxx.FoundBoxx.onCommand(FoundBoxx.java:156)
    16:08:06 [SEVERE] at org.bukkit.command.PluginCommand.execute(PluginCommand.java:40)
    16:08:06 [SEVERE] at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:165)
    16:08:06 [SEVERE] at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:378)
    16:08:06 [SEVERE] at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:374)
    16:08:06 [SEVERE] at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:564)
    16:08:06 [SEVERE] at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:541)
    16:08:06 [SEVERE] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:425)
    16:08:06 [SEVERE] at net.minecraft.server.ThreadServerApplication.run(SourceFile:457)
    16:08:06 [INFO] [FoundBoxx] Unable to load SQL properly.
     
  13. Offline

    toxicminers

    Love the plugin and thank you for keeping it alive. I am having an issue which I am unable to fix maybe you can help me out. I am using permissionsb and have gotten rid of all traces of foundboxx anywhere in the yml and everyone is still receiving the FB messages. I have tried changign the config to not use permissions and to use it either way they see it. Also the admins of the server get the message in red and multiple times for each ore they destroy and everyone sees that. No way of shutting that off? How would FB know an admin message if set to use permissions=false?? Wouldn't it not recognize the permissions at all?
    So basicly everyone is seeing the notify can't turn it off no matter what I do. Have checked the config for errors over and over maybe there was an error somewhere but it is all good and everythign works fine except this issue. I don't mind that everyoen sees the messages but the admin messages are annoyign as they spam the chat with red font and ususally 4-8 lines depending on the amount of ore found. Thanks for any help you can give me,.
     
  14. Offline

    mrciku

    "*****.localhost" I'll take a look soon. Can I have your config?


    If the permissions == false, it'll just check for OP powers but notify everyone since notification is defaulted to true, use true if you want to customize it.
     
  15. Offline

    diskman2011

    I cant get it to display the light levels for some reason? Would be nice if admins could see the light level percentages. Heck, even other players too. :)
     
  16. Offline

    Stormbow

    Can this plugin ignore certain users or groups? (I want dwarves and orcs to be epic miners, with a "nose" for where to find good minerals, so they're eventually going to be allowed to xray when races are implemented on my server, provided they're not grossly abusing it. Also want dwarves and elves to have low light vision...)

    Maybe a permissions node?
    Code:
    foundboxx.ignoreuser
    or
    Code:
    foundboxx.ignoreuser.light
    foundboxx.ignoreuser.lapis
    foundboxx.ignoreuser.coal
    foundboxx.ignoreuser.iron
    foundboxx.ignoreuser.gold
    foundboxx.ignoreuser.diamond
    
    Suggestion

    It would be awesome if there were an option to celebrate exceptional finds. For example, I just found a 10 block vein of diamonds. It would be awesome to "party with the server" so to speak and give everyone online a free diamond or golden apple or something.

    Something like this:
    Code:
    # Use special rewards?  (true or false)
    Use Special rewards:  true
    
    # How many ores need to be found for a special reward?  (integer)
    Vein size: 8
    
    # Special reward to give (item id or name)
    Reward with: cake
    
    # Only reward finder?  (true = finder, false = everyone)
    Only reward finder?: false
    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 20, 2016
  17. Offline

    mrciku

    It'll not be shown if u enable the function that disallows mining in dark.

    I'll code it when I'm free :)

    That's a cool suggestion, I'll probably implement it when I'm free.
     
  18. Offline

    Stormbow

    No rush here. :) Thanks in advance.

    (I'm still fighting with Citizens at the moment. Grrrrr! :mad: )
     
  19. Offline

    DeathWing

    I does not understand , I granted the permission foundboxx.* with PEX but no message displays for my moderator! I have no error on start or other.

    Would have it a conflict with spout / spoutcraft there?

    I have just change Use_Permissions: true in the config. file.....

    Bukkit 1.0.1-R1, Spout644, & FoundBoxx v1.6.0.2
     
  20. Offline

    toxicminers

    So is there a way to get rid of the red admin messages when ops find diamonds??
    I have set use permissions=true but it will not recognize it I can't get it no matter what I change to not notify everyone. When I set it to true everyone still gets the messages. I can post a copy of my config if u want
    Survival_Only: true
    Use_Nickname: false
    Use_Permissions: true
    DIAMONDS: true
    GOLD: false
    IRON: false
    COAL: false
    LAPIS: false
    REDSTONE: false
    Percentage_Chance_To_Give_Randoms_Item: 0
    Max_Random_Items_To_Give: 1
    Random_Item_To_Give: 365
    Must_Have_Light_To_Mine: true
    SQL_Enabled: true
     
  21. Offline

    Stormbow

    That question was answered 5 posts back. ;)

    Is working now?

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

    toxicminers

    Thanks stormbow but you are mistaken as it wasn't answered. I figured it out though rookie move I failed to remove founddiamonds and that was the red message I was getting for admins. Thanks for the help guys though I appreciate the fast responses. This plugin is awesome and hopefully will be using it for awhile.
     
  23. Offline

    Stormbow

    Ahh, right. Fb messages are orange/etc. I asked about stopping groups/people from seeing alerts.
     
  24. Offline

    DeathWing

    ?????

    No it does not work... It is exactly what I say. I launched my server with Foundboxx 1.6.0.2, give the node Foundboxx.* via PEX in my moderator, and nobody receives the notifications.

    I simply put Use_Permissions on true in a config file.


    I don't understand why that doesn't work....


    Maybe a conflict with Spout / Spoutcraft? Or then another plugin.

    Here is the list of my plugins:

    Code:
    - BetterStairs
    - CommandHelper
    - Essentials
    - FoundBoxx
    - iConomy
    - Lumberjack
    - McftProfiler
    - MCSpirit
    - MineBackup
    - MultiInv
    - Multiverse-Core
    - Multiverse-Portals
    - MushroomJump
    - OKCheckPoints
    - PermissionsEx
    - PluginList
    - Ptweaks
    - SeattleSummer
    - SheepFeed
    - SkylandsPlus
    - Spout
    - SpoutEssentials
    - SpoutInstantCamera
    - SpoutMaterials
    - StainedGlass
    - Sunscreen
    - TexturePackMenu
    - Vanish2
    - Vault
    - WorldEdit
    - WorldGuard
    - Admin GUI
    - ChatManager
    - DAC
    - mcMMO
    - Modifyworld
    - Citizens
    - DeathTpPlus
    - ecoCreature
    - HawkEye
    - LWC
    - MonsterHunt
    - Register
     
  25. Offline

    hqSparx

    no configurable messages?:(

    //nvm, modyfied source
     
  26. Offline

    Stormbow

    Post your permissions.yml and config.yml in CODE tags.
     
  27. Offline

    mrciku

    FoundBoxx.* is the node, it's case sensitive.
     
  28. Offline

    DeathWing

    Here is the config file. + PEX. The group which should have notifications is "Tyran".
    Even the group " Plugins " having one '*' receives nothing....

    Config.
    Code:
    Survival_Only: true
    Use_Nickname: false
    Use_Permissions: true
    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: root@localhost
      Pass: ''
    & Permissions. PEX
    Code:
    groups:
        SDF:
            default: true
            permissions:
            - essentials.list
            - essentials.help
            - essentials.motd
            - essentials.rules
            - essentials.helpop
            - essentials.whois
            - modifyworld.chat
            - modifyworld.sprint
            - modifyworld.blocks.interact.*
            - multiverse.access.*
            - multiverse.help
            - multiverse.core.list.who
            - multiverse.core.list.worlds
            - multiverse.portal.access.world
            - multiverse.portal.access.world_nether
            - multiverse.portal.access.world_the_end
            - multiverse.portal.access.world_skyland
            - multiverse.portal.access.*
            - texturepackmenu.texture
            prefix: '[&7SDF&f]'
            suffix: '&f'
        Nyoub:
            inheritance:
            - SDF
            permissions:
            - essentials.whois
            - essentials.msg
            - essentials.suicide
            - modifyworld.*
            - essentials.clearinventory
            - essentials.getpos
            - essentials.mail
            - essentials.mail.send
            - essentials.ping
            - essentials.afk
            - essentials.rules
            - essentials.signs.use.*
            - essentials.me
            - essentials.portal
            - deathtpplus.tombstone.*
            - lwc.protect
            - SheepFeed.feed
            - spoutmaterials.craft.*
            - spoutmaterials.list
            - commandhelper.alias.safe
            - spoutessentials.joinmessage
            - spoutessentials.guiHELP
            - spoutessentials.music
            - citizens.basic.use.help
            - citizens.basic.use.list
            - citizens.blacksmith.use.repair
            - citizens.blacksmith.use.help
            - citizens.blacksmith.use.status
            - citizens.guard.use.help
            - citizens.healer.use.help
            - citizens.healer.use.status
            - citizens.healer.use.heal
            - citizens.quester.use.help
            - citizens.quester.use.quests.help
            - citizens.quester.use.quests.abort
            - citizens.quester.use.quests.status
            - citizens.quester.use.quests.status
            - citizens.trader.use.help
            - citizens.trader.use.list
            - citizens.wizard.use.help
            - citizens.wizard.use.help
            - citizens.wizard.use.interact
            - iConomy.plus
            - bukkitinventorytools.digilock.create
            - bukkitinventorytools.digilock.use
            - bukkitinventorytools.bookshelf.use
            - bukkitinventorytools.bookshelf.create
            - bukkitinventorytools.book.create
            - bukkitinventorytools.book.use
            - bukkitinventorytools.backpack.use
            - bukkitinventorytools.backpack.size9
            - mcmmo.ability.*
            - mcmmo.skills.*
            - mcmmo.commands.whois
            - mcmmo.commands.party
            - mcmmo.chat.partychat
            - mcmmo.commands.ability
            - monsterhunt.usercmd.hunt
            - monsterhunt.usercmd.huntscore
            - monsterhunt.usercmd.huntstatus
            - ecocreature.reward.*
            - ecocreature.gain.*
            prefix: '[&bNyoub&f]'
        RedstoneMan:
            inheritance:
            - Nyoub
            permissions:
            - permissions.manage.membership
            - permissions.manage.reload
            - essentials.time.*
            - essentials.jump
            - essentials.sethome
            - essentials.delhome
            - essentials.home
            - essentials.compass
            - essentials.god
            - essentials.tp
            - essentials.tpall
            - essentials.tphere
            - essentials.tppos
            - worldedit.clipboard.load
            - worldedit.clipboard.save
            - worldedit.clipboard.copy
            - worldedit.clipboard.cut
            - worldedit.clipboard.paste
            - worldedit.generation.forest
            - worldedit.history.undo
            - worldedit.history.redo
            - worldedit.navigation.jumpto
            - worldedit.navigation.up
            - worldedit.region.replace
            - worldedit.regen
            - worldedit.selection.size
            - worldedit.selection.expand
            - worldedit.analysis.count
            - worldedit.selection.pos
            - worldedit.selection.hpos
            - worldedit.wand
            - worldedit.generation.cylinder
            - worldedit.generation.sphere
            - worldedit.generation.pyramid
            - worldedit.superpickaxe
            - worldedit.tool.tree
            - worldedit.extinguish
            - worldedit.navigation.thru
            - myworlds.world.spawn
            - myworlds.world.weather
            - multiverse.teleport.*
            - multiverse.core.spawn.*
            prefix: '[&cRedstoneMan&f]'
        Tyran:
            inheritance:
            - Nyoub
            permissions:
            - Admin_GUI.can_open_GUI
            - permissions.manage.membership
            - permissions.manage.reload
            - mcspirit.*
            - citizens.*
            - deathtpplus.*
            - hawkeye.*
            - lwc.admin
            - worldedit.clipboard.load
            - worldedit.clipboard.save
            - worldedit.clipboard.copy
            - worldedit.clipboard.cut
            - worldedit.clipboard.paste
            - worldedit.generation.forest
            - worldedit.history.undo
            - worldedit.history.redo
            - worldedit.navigation.jumpto
            - worldedit.navigation.up
            - worldedit.region.replace
            - worldedit.regen
            - worldedit.selection.size
            - worldedit.selection.expand
            - worldedit.analysis.count
            - worldedit.selection.pos
            - worldedit.selection.hpos
            - worldedit.wand
            - worldedit.generation.cylinder
            - worldedit.generation.sphere
            - worldedit.generation.pyramid
            - worldedit.superpickaxe
            - worldedit.tool.tree
            - worldedit.extinguish
            - worldedit.navigation.thru
            - spoutessentials.*
            - spoutmaterials.*
            - worldguard.fire-toggle.*
            - worldguard.region.*
            - essentials.bigtree
            - essentials.give.*
            - essentials.god
            - essentials.heal.*
            - essentials.item
            - essentials.time.*
            - essentials.compass
            - essentials.powertool
            - essentials.powertool.append
            - essentials.powertooltoggle
            - essentials.spawner.*
            - essentials.antioch
            - essentials.ban.*
            - essentials.banip
            - essentials.broadcast
            - essentials.ext
            - essentials.fireball
            - essentials.invsee
            - essentials.jails
            - essentials.kick.*
            - essentials.kickall
            - essentials.kill
            - essentials.lightning
            - essentials.mute
            - essentials.mute.exempt
            - essentials.setjail
            - essentials.spawnmob.*
            - essentials.tempban.*
            - essentials.togglejail.*
            - essentials.jail.exempt
            - essentials.unban
            - essentials.unbanip
            - essentials.back.*
            - essentials.delhome
            - essentials.delwarp
            - essentials.home.*
            - essentials.jump
            - essentials.sethome.*
            - essentials.setwarp
            - essentials.tp
            - essentials.tpall
            - essentials.tphere
            - essentials.tppos
            - essentials.warp.*
            - essentials.world.*
            - essentials.signs.create.*
            - iConomy.accounts.give
            - bukkitinventorytools.digilock.admin
            - bukkitinventorytools.bookshelf.admin
            - bukkitinventorytools.book.admin
            - bukkitinventorytools.backpack.clear.*
            - bukkitinventorytools.backpack.info.other
            - bukkitinventorytools.backpack.open.other
            - multiverse.teleport.*
            - multiverse.core.spawn.*
            - multiverse.core.info
            - mcmmo.tools.mcgod
            - mcmmo.item.*
            - mcmmo.chat.adminchat
            - mcmmo.chat.partychat
            - monsterhunt.admincmd.huntstart
            - monsterhunt.admincmd.huntstop
            - texturepackmenu.*
            - foundboxx.*
            - pluginlist.*
            prefix: '[&6Tyran&f]'
        Plugins:
            permissions:
            - '*'
            prefix: '[&5PluginsTesteur&f]'
    I made always to copy / paste node ;)
     
  29. Offline

    nemmie

    Ok its not giving me a farm report and I get
    Code:
    2011-12-24 01:21:56 [INFO] Could not call home.
    2011-12-24 01:21:56 [SEVERE] java.lang.NullPointerException
    2011-12-24 01:21:56 [SEVERE]     at java.net.URLEncoder.encode(URLEncoder.java:188)
    2011-12-24 01:21:56 [SEVERE]     at com.epicsagaonline.bukkitstats.CallTask.postUrl(CallHome.java:126)
    2011-12-24 01:21:56 [SEVERE]     at com.epicsagaonline.bukkitstats.CallTask.run(CallHome.java:98)
    2011-12-24 01:21:56 [SEVERE]     at org.bukkit.craftbukkit.scheduler.CraftWorker.run(CraftWorker.java:34)
    2011-12-24 01:21:56 [SEVERE]     at java.lang.Thread.run(Thread.java:662)
    2011-12-24 01:21:58 [SEVERE] com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
    
    The last packet successfully received from the server was 10,950 milliseconds ago.  The last packet sent successfully to the server was 5 milliseconds ago.
    2011-12-24 01:21:58 [SEVERE]     at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    2011-12-24 01:21:58 [SEVERE]     at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    2011-12-24 01:21:58 [SEVERE]     at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    2011-12-24 01:21:58 [SEVERE]     at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
    2011-12-24 01:21:58 [SEVERE]     at com.mysql.jdbc.Util.handleNewInstance(Util.java:407)
    2011-12-24 01:21:58 [SEVERE]     at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1116)
    2011-12-24 01:21:58 [SEVERE]     at com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:3082)
    2011-12-24 01:21:58 [SEVERE]     at com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:2968)
    2011-12-24 01:21:58 [SEVERE]     at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3516)
    2011-12-24 01:21:58 [SEVERE]     at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1986)
    2011-12-24 01:21:58 [SEVERE]     at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2140)
    2011-12-24 01:21:58 [SEVERE]     at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2626)
    2011-12-24 01:21:58 [SEVERE]     at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:2111)
    2011-12-24 01:21:58 [SEVERE]     at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2407)
    2011-12-24 01:21:58 [SEVERE]     at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2325)
    2011-12-24 01:21:58 [SEVERE]     at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2310)
    2011-12-24 01:21:58 [SEVERE]     at me.Jaryl.FoundBoxx.SQL.dataQuery(SQL.java:95)
    2011-12-24 01:21:58 [SEVERE]     at me.Jaryl.FoundBoxx.SQL.access$2(SQL.java:91)
    2011-12-24 01:21:58 [SEVERE]     at me.Jaryl.FoundBoxx.SQL$1.run(SQL.java:61)
    2011-12-24 01:21:58 [SEVERE]     at org.bukkit.craftbukkit.scheduler.CraftWorker.run(CraftWorker.java:34)
    2011-12-24 01:21:58 [SEVERE]     at java.lang.Thread.run(Thread.java:662)
    2011-12-24 01:21:58 [SEVERE] Caused by: java.io.EOFException: Can not read response from server. Expected to read 4 bytes, read 0 bytes before connection was unexpectedly lost.
    2011-12-24 01:21:58 [SEVERE]     at com.mysql.jdbc.MysqlIO.readFully(MysqlIO.java:2529)
    2011-12-24 01:21:58 [SEVERE]     at com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:2979)
    2011-12-24 01:21:58 [SEVERE]     ... 14 more
     
  30. Offline

    mrciku

    Oh yeah, I forgot my own node >< haha. Anyway, try asking other PEX users, some of them somehow fixed it :|.

    Can I have your configurations?
     
  31. Offline

    DeathWing

    @mrciku

    Can fix this please :(

    I knows how code in Java to be able to add this and I do not see how to by-pass that.....

    Your plugins is just awesome then PLEASE corrected this. :D
     

Share This Page