Commit Graph

4222 Commits

Author SHA1 Message Date
nossr50
1c289cfcdf Refactoring SQL config class names again 2019-03-28 23:57:19 -07:00
nossr50
a8bf6357aa Fixed the loading of the Serialized configs 2019-03-28 23:57:19 -07:00
nossr50
77b4ade885 On second thought lets not use an empty class as a parent idk 2019-03-28 23:57:19 -07:00
nossr50
d3b437f6d3 Renaming config classes 2019-03-28 23:57:19 -07:00
nossr50
45e785bd1f Rewiring SQL to the new config pt 2 2019-03-28 23:57:19 -07:00
nossr50
be69f0d6a7 Rewiring the SQL code to the new configs 2019-03-28 23:57:18 -07:00
nossr50
e94005df34 Move user settings to new User category for MySQL 2019-03-28 23:57:18 -07:00
nossr50
88cd8e64bb Database Config getter boilerplate 2019-03-28 23:57:18 -07:00
nossr50
948837546a Move config loading outside of constructors 2019-03-28 23:57:17 -07:00
nossr50
8bc49e8bfb Add typesafe library to maven, cleanup config directory code 2019-03-28 23:57:17 -07:00
nossr50
55b1da0341 no more MultiConfigContainers, updating existing config classes for HOCON (WIP) 2019-03-28 23:57:16 -07:00
nossr50
132b908eee Added some more missing defaults to database config 2019-03-28 23:57:16 -07:00
nossr50
7d152794ba add missing defaults and constructor for database config 2019-03-28 23:57:16 -07:00
nossr50
e757dd10c8 import cleanup 2019-03-28 23:57:15 -07:00
nossr50
d5ea196840 added hocon configurate libs to maven 2019-03-28 23:57:14 -07:00
nossr50
f772b39eda add missing db config options 2019-03-28 23:57:14 -07:00
nossr50
493d6b0a67 Starting the conversion to HOCON, splitting up configs, and more 2019-03-28 23:57:14 -07:00
nossr50
76472a2b9f Most Experience related maps are now tracked via a new ExperienceMapManager to simplify loading/unloading of registered values 2019-03-28 23:56:27 -07:00
nossr50
f0e8eb35c4 Most Super Abilities which increase gathering speed now check both XP registers and new hardcoded lists to determine whether or not the block should be affected by the super ability, if the block is found on either the xp registers or our own internal list then it will be considered compatible with that super ability.
This prevents weird behavior from a server admin removing XP from something like Stone
2019-03-28 23:56:27 -07:00
nossr50
59f3835554 set configurate user file builder to dump block style formatting 2019-03-28 23:55:56 -07:00
nossr50
38c11d1601 Fixing zero initalize for entity xp + party share 2019-03-28 23:55:56 -07:00
nossr50
608a523996 Fix zero initialize for Swords config options 2019-03-28 23:55:55 -07:00
nossr50
a2e0ca0f84 Flux Mining Cleanup 2019-03-28 23:54:47 -07:00
nossr50
a3b8ab81be Fixed zero initialize for Smelting's Fuel Efficiency 2019-03-28 23:54:47 -07:00
nossr50
07db198a67 Whoops 2019-03-28 23:54:08 -07:00
nossr50
234a31d283 Fix Repair Mastery zero initialize 2019-03-28 23:50:11 -07:00
nossr50
f2945569fb Fixed zero initialize for SkullSplitter. config nodes 2019-03-28 23:47:26 -07:00
nossr50
72663ae2d3 Solved zero initialize for Party.Sharing.ExpSharing_bonus_base 2019-03-28 23:47:25 -07:00
nossr50
22eead18dd Add warning about 2.1.13 snapshot releases 2019-03-28 23:47:25 -07:00
nossr50
4418d34930 add register to constructor of repair/salvage 2019-03-28 23:47:25 -07:00
nossr50
ed8611585f remove reflection code from MultiConfigContainer 2019-03-28 23:47:25 -07:00
nossr50
b3ed05eb09 forgot the other super constructor for configcollection 2019-03-28 23:47:24 -07:00
nossr50
9d0dd7ecd6 do not call register() in super 2019-03-28 23:47:24 -07:00
nossr50
e354e7b89b add unload to potion config 2019-03-28 23:47:24 -07:00
nossr50
714d9c0ca7 init potion ingredient lists in constructor 2019-03-28 23:47:24 -07:00
nossr50
53f06832f1 Locale NPE 2019-03-28 23:47:24 -07:00
nossr50
562066311b Always grab the Localized name of a skill 2019-03-28 23:47:23 -07:00
nossr50
b5b9a223a7 better error reporting on enabling mcMMO 2019-03-28 23:47:23 -07:00
nossr50
049b76f651 Only grab List<String> if it's a proper list 2019-03-28 23:47:23 -07:00
nossr50
4ab5e5e925 Changing iteration over a nodes children to be based on a list of its children rather than a returned type of String 2019-03-28 23:47:21 -07:00
nossr50
22ca1863fd fix NPE for anvil, salvage block, detonator item 2019-03-28 23:47:21 -07:00
nossr50
bdbda5587f fix NPE for ChimaeraWing 2019-03-28 23:47:21 -07:00
nossr50
a344e43e2e fix configManager NPE 2019-03-28 23:47:21 -07:00
nossr50
198b7e3f46 xpratemultiplier fix 2019-03-28 23:47:20 -07:00
nossr50
5647eebe99 Multiplier to camelcase 2019-03-28 23:47:20 -07:00
nossr50
367fabf70c fixing many compiler errors for configs 2019-03-28 23:47:19 -07:00
nossr50
2f804de36f fishing treasures pt 4 (enchantments) 2019-03-28 23:46:43 -07:00
nossr50
677e45a811 fishing treasures pt 3 (shake) 2019-03-28 23:46:43 -07:00
nossr50
99f0e029c2 fishing treasures pt 2 2019-03-28 23:46:43 -07:00
nossr50
3fc9f26b8b fishing treasures pt 1 2019-03-28 23:46:42 -07:00
nossr50
e75170f576 need to rewrite this mess 2019-03-28 23:46:42 -07:00
nossr50
3158ba591b Hylian Treasure pt 2 2019-03-28 23:46:42 -07:00
nossr50
31402d97c4 Hylian Treasure pt 1 2019-03-28 23:46:42 -07:00
nossr50
811b90bc31 fixing imports 2019-03-28 23:46:41 -07:00
nossr50
ef6b70f686 Some more comments 2019-03-28 23:46:41 -07:00
nossr50
2c752dc470 Removing the oopsies 2019-03-28 23:46:41 -07:00
nossr50
63a0598766 Check for changeme 2019-03-28 23:46:41 -07:00
nossr50
772ceddf65 ExcavationTreasureConfig pt 1 2019-03-28 23:46:41 -07:00
nossr50
15be278ee1 kill TreasureConfig.java 2019-03-28 23:46:40 -07:00
nossr50
349a714134 Treasure Config Split pt 2, Configs now register to be backed up with the config manager 2019-03-28 23:46:39 -07:00
nossr50
41bfba0c68 treasures.yml is now split into 3 treasure configs 2019-03-28 23:46:39 -07:00
nossr50
83ee9ca92c DefaultKeys refactored to UnsafeValueValidation 2019-03-28 23:46:39 -07:00
nossr50
18d8b84099 Set removeOldKeys in the Config parent class 2019-03-28 23:46:39 -07:00
nossr50
e6aee141fb Update config constructors to pass removeOldKeys boolean 2019-03-28 23:46:38 -07:00
nossr50
b0b0167ee2 Convert RankConfig to the new system 2019-03-28 23:46:38 -07:00
nossr50
26b66b550c potion config is now converted to the new system 2019-03-28 23:46:38 -07:00
nossr50
cef1bf6c8c potion config pt 1 (wip) 2019-03-28 23:46:38 -07:00
nossr50
bd74d6e4f1 Convert soundconfig to new system 2019-03-28 23:46:38 -07:00
nossr50
6604f98140 Updating constructors, updating node address helper methods 2019-03-28 23:46:37 -07:00
nossr50
b81ca84a99 don't always copy defaults 2019-03-28 23:46:37 -07:00
nossr50
4bfa790be9 Converting salvage config to the new system 2019-03-28 23:46:37 -07:00
nossr50
c14b949b0a Converting repair config to the new system 2019-03-28 23:46:37 -07:00
nossr50
5ce08a2294 Kill the upgrade manager 2019-03-28 23:46:36 -07:00
nossr50
c91255c474 converting mainconfig pt 3 2019-03-28 23:46:36 -07:00
nossr50
4bb513c2d1 hardcore and vampirism commands were a mistake 2019-03-28 23:46:11 -07:00
nossr50
9f9b456b0a converting mainconfig pt 2 2019-03-28 23:46:11 -07:00
nossr50
894b30660c converting mainconfig pt1 2019-03-28 23:46:11 -07:00
nossr50
a939f54b10 experience getInstance() had an oopsie 2019-03-28 23:46:11 -07:00
nossr50
3fc0bbb466 comment out contents of mod configs until we need them again 2019-03-28 23:46:10 -07:00
nossr50
e7d8e51722 mod configs are taking a break 2019-03-28 23:46:09 -07:00
nossr50
63aebd0454 rewire getInstance for experience config 2019-03-28 23:44:16 -07:00
nossr50
f08456b789 child.yml was a mistake 2019-03-28 23:44:16 -07:00
nossr50
d7e0c95984 rewire getInstance() for configs 2019-03-28 23:44:15 -07:00
nossr50
f4ba472403 new config pt 10 - All configs are now managed by ConfigManager (WIP) 2019-03-28 23:44:15 -07:00
nossr50
acf2bf362f Refactoring the oopsies 2019-03-28 23:43:20 -07:00
nossr50
9731b9cffb new config pt 9 2019-03-28 23:43:19 -07:00
nossr50
2de87f7189 Regex errors 2019-03-28 23:30:11 -07:00
nossr50
fb2eddd432 fixing NPE and IO errors 2019-03-28 23:30:10 -07:00
nossr50
bf63ce33c5 new config system pt 5 2019-03-28 23:30:10 -07:00
nossr50
e7b91f57ea Advanced Config is now on the new config system 2019-03-28 23:30:10 -07:00
nossr50
78f0a42ec1 new config system part 4 2019-03-28 23:30:10 -07:00
nossr50
fd8e44ef47 new config system part 3 2019-03-28 23:30:09 -07:00
nossr50
0f743a55b5 new config system pt 2 2019-03-28 23:30:09 -07:00
nossr50
69fa10559c New Config System pt 1 2019-03-28 23:30:09 -07:00
nossr50
e2b8d940d3 2.1.28 2019-03-28 04:22:26 -07:00
nossr50
732726bbd3 2.1.27 - Fixed an exploit that allowed players to dupe torches, rails, etc 2019-03-27 21:05:57 -07:00
nossr50
658382dba2 Added Limit Break to Archery, Axes, Swords, Unarmed 2019-03-27 16:30:29 -07:00
nossr50
404a876d6b Compiler made an oopsie 2019-03-27 12:36:46 -07:00
nossr50
c4a383c4fb Removed PVP requirement on Stab, added info about Stab to /swords 2019-03-27 12:33:04 -07:00
nossr50
e0341f7ae7 Added new subskill to Swords, Stab 2019-03-27 12:11:11 -07:00
nossr50
d324aa9589 Rescale Iron Arm Damage 2019-03-27 11:27:05 -07:00
nossr50
7a3d608f36 2.1.25 2019-03-26 08:36:13 -07:00
nossr50
719283177e Shake has an upper limit of 10 damage (will be configurable in the near future), alchemy ranks adjusted 2019-03-26 08:22:39 -07:00
nossr50
55fb3ed74f 2.1.24 - Critical Exploit Fix 2019-03-25 15:12:17 -07:00
nossr50
363ea66335 2.1.23 - Read the changelog, configs need to be updated. 2019-03-24 19:02:08 -07:00
nossr50
7ee65a7e65 Fixing a 7 year old damage bug. 2019-03-24 14:20:20 -07:00
nossr50
aa25ba6338 Fixed DoubleDrops for Mining, MANY nerfs to Rupture (PVP balance tweaks coming soon) 2019-03-23 22:57:44 -07:00
nossr50
b68bbad766 Eject players from Minecarts if they cast a fishing rod (Anti-AFK) 2019-03-23 21:01:40 -07:00
nossr50
6d19239db7 Don't add drops for items with a quantity of zero 2019-03-23 18:09:29 -07:00
nossr50
faab64864a Fixing Double Drops for Mining -- READ THE FULL COMMIT MSG
This fix is very similar to what was deployed for Herbalism in 2.1.22

NOTE: Here's what your Double_Drop entries in Config.yml for Mining should look like

https://paste.gg/p/anonymous/dcd06f1215844311b4f2225f200090d1

IMPORTANT: Version 2.1.22 which came before this had a similar fix for Herbalism, instructions on how to fix your Herbalism Double Drops can be found here
        https://www.spigotmc.org/resources/official-mcmmo.64348/update?update=269868
2019-03-23 18:07:23 -07:00
nossr50
df6315dd62 Fixed Repair Mastery using incorrect numbers during calculations 2019-03-23 16:23:38 -07:00
nossr50
255f7bf335 Fixes #3832 - Resolved issue with double drops & herbalism, similar fixes coming to woodcutting/mining soon. Reminder to update config.yml, read changelog for instructions.
If you harvest crops with a Hoe it does not require seeds to replant on successful Green Thumb
2019-03-23 16:21:25 -07:00
nossr50
ce6553d857 Fixing Double Drops for Herbalism (Update your configs) see changelog for instructions 2019-03-23 13:34:14 -07:00
nossr50
e40a7bb4e1 XP Gain from Roll has a CD now (60 seconds) 2019-03-21 14:32:01 -07:00
nossr50
dece43429d Added an option to turn off fishing exploit detection as a band-aid fix until the config update is done 2019-03-20 07:04:05 -07:00
nossr50
c8d95dc711 2.1.19 2019-03-18 03:12:00 -07:00
nossr50
bb118607ce Less aggressive detection 2019-03-18 02:40:19 -07:00
nossr50
2d849f55e5 Smaller bounds on fishing scarcity 2019-03-18 00:43:14 -07:00
nossr50
fef9058e16 Fishing is now more aggressive about over casting, added messages about fishing, removed vanilla rewards for exploiters 2019-03-18 00:26:49 -07:00
nossr50
e3d2526939 Improve Fishing AFK detection 2019-03-18 00:11:27 -07:00
nossr50
2f0a58b968 2.1.18 - It turns out Kelp is actually made up of 2 blocks mixed together 2019-03-16 20:26:26 -07:00
nossr50
8994594ed4 2.1.17 - Fix drowned mob spawner logic 2019-03-14 16:52:15 -07:00
nossr50
bb46b2a6ac Drowned Transformation will no longer enabled XP on mob spawners, Kelp will now count the whole block for XP 2019-03-13 13:27:16 -07:00
nossr50
7296deb149 2.1.15 Release - Fixing Fuel Efficiency Max Rank Benefits 2019-03-09 18:10:01 -08:00
nossr50
f9f6d1550e Silk Touch toggle in advanced.yml for double drops 2019-03-09 17:31:45 -08:00
nossr50
e80e771e9d mcMMO now tracks blocks moved by pistons and flags them as unnatural, even if they were natural to combat automated xp farming 2019-03-09 17:12:34 -08:00
nossr50
af9b631ee2 kill flux mining 2019-03-09 16:44:55 -08:00
nossr50
ca5a46508d fixing a bug with setting ranks for fuel efficiency 2019-03-09 16:35:23 -08:00
nossr50
7703cafa34 fixing compile error 2019-03-09 16:25:51 -08:00
nossr50
437fe29112 Fuel Efficiency now uses a rank system, also fixed some bugs with it 2019-03-09 16:22:20 -08:00
nossr50
28b71804a2 Fixed display bug w/ Fish Diet, added Tropical, Raw Cod/Salmon to eligible foods 2019-03-09 15:48:29 -08:00
nossr50
6f15cd4005 2.1.13 Release 2019-03-08 15:34:35 -08:00
nossr50
c0a3d63213 Salvage entries are no longer case sensitive 2019-02-06 18:00:21 -08:00
nossr50
dbf32b4715 Back to work 2019-02-06 17:07:08 -08:00
nossr50
017e32c30a Fishing will no longer cancel the exp dropped for ice fishing and will no longer bring xp values below zero with the xp multiplier
Not sure if this fixes the XP bug though!
2019-02-06 12:46:12 -08:00
nossr50
98e6400dd8 Fishing command did an oopsie 2019-02-06 03:01:43 -08:00
nossr50
577e3339f1 Grab the version of WG in a better way 2019-02-05 20:23:20 -08:00
nossr50
e389c4b8f1 WG API shouldn't be used unless WG is on version 7 2019-02-05 10:49:40 -08:00
nossr50
303a922165 Bite for Master Angler will no longer display so many decimal places
Fixes #3772
2019-02-04 23:29:24 -08:00
nossr50
4ea5432561 Abilities no longer activate if you don't have permission 2019-02-04 22:04:50 -08:00
nossr50
9a428332a9 RetroMode and Standard scaling now have specific keys in advanced.yml to reduce confusion 2019-02-04 21:56:57 -08:00
nossr50
77e6e79eb6 Prep for 2.1.7 Release 2019-02-03 18:20:56 -08:00
nossr50
1568f71d83 Fixing a styling bug for party member names 2019-02-03 17:59:29 -08:00
nossr50
0b3a642c95 Oopsie 2019-02-03 17:46:03 -08:00
nossr50
025183d434 Tweaks to the party info commands 2019-02-03 17:44:10 -08:00
nossr50
371a3ceec7 Unarmed now has some spam detection
Fixed an error in the skillranks.yml file as well
2019-02-03 13:17:42 -08:00
nossr50
84b3cfc309 Fixed an almost 6 year old bug involving salvage materials smh
Updated the new ExperienceAPI methods to check for level ups
2019-02-02 07:15:12 -08:00
nossr50
14e5998aa0 Added 4 new API methods for adding XP to a player based on blocks 2019-02-01 15:23:45 -08:00
nossr50
c839837d7a Fixing some coloring issues 2019-02-01 11:00:02 -08:00
nossr50
8228ae248f Fixed a bug where Arcane Salvage could never fail
SubSkillFailure renamed to SubSkillFailed in config.yml
SubSkillFailed now sends to chat by default and no longer sends to the action bar
2019-02-01 10:34:13 -08:00
nossr50
c6a4cbd715 Fixed a bug where Salvage was giving back too many materials 2019-02-01 10:22:55 -08:00
nossr50
90520cd50b 2.1.5 release
mcMMO no longer ignores cancelled PlayerInteractEvents due to conflicts with super ability activations
2019-01-31 20:53:36 -08:00
nossr50
8262711e7e Prep for release of 2.1.4
Fixed many display bugs
Added ranks to Super Repair, and Repair Mastery
Fixes #3754, #3746, #3745, #3756
2019-01-31 20:02:39 -08:00
nossr50
8aa92322d1 Fixed Styling for /salvage 2019-01-31 19:27:23 -08:00
nossr50
bdfac28b44 Fixed Alchemy XP Gain 2019-01-31 18:44:51 -08:00
t00thpick1
cb89a80fd8 Only have 1 xp gain instance for archery. 2019-01-31 19:55:09 -05:00
nossr50
a2f9ab70aa mcMMO no longer ignores cancelled block place events 2019-01-31 15:33:06 -08:00
nossr50
5d010594dd Temporarily disabled Flux Mining
I'll rework this skill in the future
2019-01-31 15:30:39 -08:00
nossr50
d609b45e68 Correcting a bug with the new Enderman Endermite farm exploit fix and making it toggleable for servers that wish to allow it! 2019-01-31 14:40:37 -08:00
nossr50
4c63eee6d5 Entities that target endermite no longer give XP (credits to TheBentoBox for the tip) 2019-01-31 14:30:35 -08:00
nossr50
f3aff37b46 Removing more debug code SORRY!
nossr50 did a double oopsie
2019-01-31 14:18:17 -08:00
nossr50
f2c32f07da Removing leftover debug code
nossr50 did an oopsie
2019-01-31 14:14:15 -08:00
nossr50
bff72486d0 Fixed a bug where static chance skills uses incorrect calculations for success
Cleaned up some leftover code from the old skill unlock system
2019-01-31 14:07:03 -08:00
nossr50
0193b53988 mcMMO now ignores cancelled events for PlayerInteractEvent 2019-01-31 12:56:15 -08:00
nossr50
039542f125 Iron Arm Style no longer checks for Iron Grip levels for its own unlock checks 2019-01-31 11:27:14 -08:00
nossr50
7e5a8bc659 Temporarily removed unarmed item pickup until it gets fixed 2019-01-30 08:45:38 -08:00
nossr50
cef9fad49f Fixing unarmed not picking up items properly 2019-01-29 16:13:04 -08:00
nossr50
370af987d6 Fixes #3737 2019-01-28 19:35:54 -08:00
nossr50
a22636b2d9 Flux Mining will now be a passive and not an item 2019-01-28 17:48:26 -08:00
nossr50
399a1529f4 Pummel now calculates correctly 2019-01-28 13:14:15 -08:00
nossr50
3734300e59 Fixing an error with shake and RNG calculations 2019-01-28 04:15:34 -08:00
nossr50
fc7b4a6790 Buffed Iron Arm, adding ranks to Iron Arm, Iron Grip, Arrow Deflect, and Disarm 2019-01-28 03:55:30 -08:00
nossr50
00f5491718 Added many styling options
Improved Smelting Style
You can now add the level required to a skills name in the locale (instructions can be found next to the locale string)
2019-01-28 03:40:32 -08:00
nossr50
67ed9d324e Fixing the styling on /smelting 2019-01-28 00:56:15 -08:00
nossr50
f89b7ccc9f better debug stick 2019-01-27 23:12:04 -08:00
nossr50
154b10209d mcMMO will no longer put items into your hands 2019-01-27 22:46:45 -08:00
nossr50
fbc7cbf389 Anti-Cheat compatibility 2019-01-27 22:26:45 -08:00
nossr50
6f81cf7384 Static things shouldn't use a maxbonuslevel from config 2019-01-27 22:01:55 -08:00
nossr50
4f832edada Fixing the fishing AFK detection 2019-01-27 21:55:00 -08:00
nossr50
85a04c71f4 tweaking anti-afk 2019-01-27 21:13:42 -08:00
nossr50
c7ed3ee2a0 Magic Hunter requires treasure hunter and has ranks now 2019-01-27 20:56:16 -08:00
nossr50
7e34e87bc0 Magic Hunter stats now check for treasure hunter 2019-01-27 20:36:55 -08:00
nossr50
b2b623505d Removing traps from fishing command 2019-01-27 20:27:48 -08:00
nossr50
67a57f7472 This might be better 2019-01-27 20:09:32 -08:00
nossr50
d7fe01579b Make sure we clean up buffs from tools 2019-01-27 20:00:58 -08:00
nossr50
e969598f58 Fixing a lot of bugs involving calculating the success of skills 2019-01-27 19:36:16 -08:00
nossr50
be9aeacd70 Fixing lucky displays 2019-01-27 19:00:48 -08:00
nossr50
5f39a7cb80 Fixing a bug where Lucky perk wasn't adding to success 2019-01-27 18:53:10 -08:00
nossr50
d81c3d06c5 XP Gains now report sources, added some config options regarding XP bars
Fixed some issues with Roll
Fixes https://github.com/mcMMO-Dev/mcMMO/issues/3732
2019-01-27 18:11:51 -08:00
nossr50
a504bc407a Keep track of more fall locations 2019-01-27 00:20:18 -08:00
nossr50
55821f7703 Acrobatics now uses much better anti-exploit prevention 2019-01-26 23:08:05 -08:00
nossr50
6592562c56 Check the target fishing location 2019-01-26 14:41:17 -08:00
nossr50
9aae4825cc Fixing XP gain in fishing 2019-01-26 14:34:28 -08:00
nossr50
22c5280d4e AFK Fishing protection 2019-01-26 14:25:01 -08:00
nossr50
1df4f74f8c Counter Attack now makes use of a rank system 2019-01-26 12:54:38 -08:00
nossr50
d4d5d9bac1 Gore, Pummel, and Call of The Wild now use the rank system 2019-01-26 12:50:35 -08:00
nossr50
28e963f1eb Disabling unfinished skills until they are finished 2019-01-26 12:45:45 -08:00
nossr50
baf1796b08 Taming's Beast Lore now uses a rank system 2019-01-26 11:21:42 -08:00
nossr50
b39340227f Greater Impact now uses the rank system 2019-01-26 10:57:04 -08:00
nossr50
105a81aede Axes' Critical Strikes now uses the rank system 2019-01-26 10:55:16 -08:00