FoundBoxx
FoundBoxx - Ore Finds Announcer (anti-cheat, xray, fullbright)
NOTICE: PLEASE DELETE AND REDO YOUR CONFIGURATIONS FOLDER ALONG WITH FOUNDBOXX TABLES IN DATABASES WHEN UPDATING FROM 1.8 TO 1.9
Multi-threaded optimizations! Flat file (H2) support!
Custom messages and blocks support!
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 to http://mcstats.org/learn-more/
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 SQL you can also get a player's farmrate!
- Customizable messages!
- Auto-updater
Commands
- /foundboxx or /fb - Main command
Permissions [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
Configuration Defaults (plus comments)
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: false #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 material names inside the box separated with a comma (Format: [STONE, IRON_BLOCK, DIAMOND_BLOCK]) 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: RAW_CHICKEN #material name 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) Ignore_Night_Vision_Mining_In_Dark: false #night vision potions support for mining in the dark 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)
Source code: https://gitlab.com/jarylc/FoundBoxx
Hello. Is this plugin working at 1.9.2 version?
Thank you soo much, it works proper now :D
@Hvelver
First time running H2 will require a full server restart, I'm not sure if "/reload" will do.
Hi again, I did what you said and when I type /fb config it now says SQL: H2 Database. But, when I type /fb farmrate (name) 1, it still says SQL is not loaded, ignoring command input :I
@Hvelver
Do you have an SQL server running on the computer you run the server on?
If not change this configuration:
SQL_Enabled: true
to:
SQL_Enabled: H2
It'll use H2 database instead.
I apologize the names, apparently I have 2 different accounts, on my laptop and my PC :P
This is my config, I don't know where to find my logs in FoundBoxx :S I don't know if this helps, but when I type /fb queue, it says "This server is not using farmrates".
Auto_Update_On_Plugin_Enable: true Notify_On_Updates: true Allow_Usage_Stats_Collection: false Survival_Only: true Use_Nickname: false Use_Permissions: false Messages: Found_Notification: '%ply found %amt %blk(s) (Visibility: %vis%)' Must_Have_Light_To_Mine: Interacting in the dark is dangerous! Put some torches! Count_Diagonal_Ores: false EMERALDS: true DIAMONDS: true GOLD: false IRON: false COAL: false LAPIS: false REDSTONE: false Extra_Blocks: [] Percentage_Chance_To_Give_Randoms_Item: 0 Max_Random_Items_To_Give: 3 Random_Item_To_Give: RAW_CHICKEN Must_Have_Light_To_Mine: false Ignore_Night_Vision_Mining_In_Dark: false SQL_Enabled: true 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: ''
If this isn't what you're looking for, please tell me where I can find my logs when FoundBoxx starts :)
@Hvelverino
SQL not loaded could mean a few things: 1) SQL is not configured properly (SQL_Enabled: true, with SQL credentials) 2) H2 is not configured properly (SQL_Enabled: H2) 3) There was a problem loading the SQL/H2 module
Could you send the logs when FoundBoxx starts?
Hi there, I'm using this plugin and I find it really necessary, because I think one of the players on my server is using x-ray. When I type in /fb farmrate (name) 1
It doenst allow me, and it says [FoundBoxx] SQL is not loaded, ignoring command input. How can I fix this??
I'm the owner of the server and I have every permission in-game
Thanks in advance :)
Was informed of a new plugin at https://www.spigotmc.org/resources/orebroadcast.16879/
very useful, thank you!
can we change the Tag [FB] to non or to say something else?
@Neoblade298
Hmm that's odd, I'm not sure why it does that.
Looks like SQL's totally fixed. For some reason the plugin version still says the same thing, but it doesn't seem to be breaking anything, so thanks a bunch!
I'll let you know if anything else comes up, thanks again!
Regards, Neo
@Neoblade298
Hi, thank you for reporting these bugs, I'll have a look.
EDIT: I attempted fixes on all of the three bugs, give it a try after it is approved, thanks! Now back to playing FTB :D.
Hey there, fantastic plugin!
Our server reset about a month ago, bringing our server average to 50 players on at a time and coincidentally more xrayers, and this plugin absolutely destroyed the xray population! I'm extremely satisfied, and it's just my luck that you updated the plugin the day after I downloaded it! If you need any help testing, I can assist with my server.
I do have a few bugs to report though, nothing major. 1. The plugin says you configured the version number wrong whenever it loads: https://gyazo.com/6e1c389594cf02f82bd98f81e1ca8003 2. (not really much of a bug) When turning on SQL, you have to load the plugin twice to get SQL to work, because the first time, it shows an error but makes the tables after it disables SQL. Then the second time you load it, it loads the tables it made last time and works. 3. I see a bug every time an ore is mined when SQL is active. I've looked in my SQL and the mined ores were all successfully logged, the error shows anyway though. Also, my /fb farmrate doesn't show any data even though there were clearly logs on SQL (might be due to the bug). https://gyazo.com/ef8f3bf37159743baf8aec49401965d3
For the third one, it may be that I'm configuring SQL incorrectly, but it confuses me because I see the data being logged just fine even though it says there's an unknown column.
Oh, and one other thing. Pex was working just fine before you updated it, not sure what those guys are talking about. Perhaps they didn't set enable-permissions to true in the config?
Anyway, there's no rush to fix it, as I don't rely on the SQL at all. Once again, absolutely amazing plugin, thanks for updating it and developing it!
Regards, Neo
@vipersonickenneth94
Good news, I might have found a solution, but need you guys to test. I will upload the build maybe later or tomorrow.
For now it's only available as source on GitHub, I will need to fix deprecated methods first which will take a little while longer.
I'll see if I can push an update one of this days for 1.8 and PEX support. No promises, but if I have the time I'll do it.
@StdCobble
Hi, what would you suggest for 1.8 to be supported by this plugin?
@vipersonickenneth94
I will see what I can do about PEX in time to come.
@PowerHustlers
MySQL or H2? Do you still need support?
@94jp
Currently no, may implement if I have time.
When does the plugin for 1.8 release? I'm waiting for new version of this plugin.
can anyone help me with using mysql?? i have no idea