Tweak UP msg, remove debug msg about unused keys

This commit is contained in:
nossr50 2021-04-05 13:50:27 -07:00
parent 2d11b7befc
commit 4c237b2e9c
3 changed files with 10 additions and 7 deletions

View File

@ -3,8 +3,9 @@ Version 2.1.188
Fixed a bug where excavation treasures only required level 0 instead of loading the value from the config Fixed a bug where excavation treasures only required level 0 instead of loading the value from the config
Fixed a bug where /fishing was showing the wrong shake chance Fixed a bug where /fishing was showing the wrong shake chance
Default Shake chance increased from 15% to 30% (update advanced.yml manually or delete the file to regenerate it and receive these changes) Default Shake chance increased from 15% to 30% (update advanced.yml manually or delete the file to regenerate it and receive these changes)
Removed entries for ranks 2-8 of Shake from advanced.yml (Shake only has one rank, these entries were a mistake) Removed entries for ranks 2-8 of Shake from advanced.yml (Shake only has one rank, the extra entries were a mistake)
Modified the warning about UltraPermissions Modified the warning about UltraPermissions
Removed the debug message about potentially unused keys (only shown if you had debug mode enabled in config.yml)
NOTES: NOTES:
This update makes changes to treasures.yml automatically to apply the fix, you don't need to do anything This update makes changes to treasures.yml automatically to apply the fix, you don't need to do anything

View File

@ -53,11 +53,11 @@ public abstract class AutoUpdateConfigLoader extends ConfigLoader {
if (!newKeys.isEmpty() || !oldKeys.isEmpty()) { if (!newKeys.isEmpty() || !oldKeys.isEmpty()) {
needSave = true; needSave = true;
} }
//
for (String key : oldKeys) { // for (String key : oldKeys) {
plugin.debug("Detected potentially unused key: " + key); // plugin.debug("Detected potentially unused key: " + key);
//config.set(key, null); // //config.set(key, null);
} // }
for (String key : newKeys) { for (String key : newKeys) {
plugin.debug("Adding new key: " + key + " = " + internalConfig.get(key)); plugin.debug("Adding new key: " + key + " = " + internalConfig.get(key));

View File

@ -268,7 +268,9 @@ public class mcMMO extends JavaPlugin {
} }
if(pluginManager.getPlugin(ULTRA_PERMISSONS) != null) { if(pluginManager.getPlugin(ULTRA_PERMISSONS) != null) {
getLogger().info("mcMMO has detected UltraPermissions is running, make sure to keep both mcMMO and UltraPermissions updated as older versions of UltraPermissions had performance degradation issues when used in conjunction with mcMMO"); Bukkit.getScheduler().runTaskLater(this, () -> {
getLogger().severe("mcMMO and UltraPermissions have a severe conflict resulting in extreme server performance degradation, an update will be available soon (according to the UltraPermission devs) that will fix this issue. For now it is not advised to use these plugins at the same time. It is advised that you keep mcMMO and UltraPermission up to date.");
}, 20);
} }
} }