From 7102cad2ebd676ac250d41b2d5a0e8ae5e1d0d52 Mon Sep 17 00:00:00 2001 From: Indyuce Date: Mon, 30 Dec 2019 00:31:06 +0100 Subject: [PATCH] !Removed occurence of speed malus (moved to MMOLib) --- .../mmocore/manager/ConfigManager.java | 2 -- src/main/resources/config.yml | 20 ------------------- 2 files changed, 22 deletions(-) diff --git a/src/main/java/net/Indyuce/mmocore/manager/ConfigManager.java b/src/main/java/net/Indyuce/mmocore/manager/ConfigManager.java index 18771fe6..64852dcf 100644 --- a/src/main/java/net/Indyuce/mmocore/manager/ConfigManager.java +++ b/src/main/java/net/Indyuce/mmocore/manager/ConfigManager.java @@ -26,7 +26,6 @@ import net.Indyuce.mmocore.api.player.PlayerData; public class ConfigManager { - public float speedMalus; public boolean overrideVanillaExp, hotbarSwap; public double expPartyBuff, regenPartyBuff; public String partyChatPrefix; @@ -94,7 +93,6 @@ public class ConfigManager { } public void loadOptions() { - speedMalus = (float) MMOCore.plugin.getConfig().getDouble("heavy-armors.speed-malus") / 100; messages = new ConfigFile("messages").getConfig(); hotbarSwap = MMOCore.plugin.getConfig().getBoolean("hotbar-swap"); chatInput = MMOCore.plugin.getConfig().getBoolean("use-chat-input"); diff --git a/src/main/resources/config.yml b/src/main/resources/config.yml index aecea31b..4ab34f4b 100644 --- a/src/main/resources/config.yml +++ b/src/main/resources/config.yml @@ -7,26 +7,6 @@ auto-save: # In seconds (1800 = 30 minutes) interval: 1800 -# Wearing heavy pieces of armors reduces -# your movement speed by a specific amount, -# relative to your current move speed. -heavy-armors: - - # The movement speed reduction in % for each heavy armor piece worn. - speed-malus: 5.0 - - # The list of heavy armor pieces. By default gold is not - # considered a heavy armor to incite players to use this armor set. - list: - - DIAMOND_HELMET - - DIAMOND_CHESTPLATE - - DIAMOND_LEGGINGS - - DIAMOND_BOOTS - - IRON_HELMET - - IRON_CHESTPLATE - - IRON_LEGGINGS - - IRON_BOOTS - # The list of all conditions which must be met for the # BLOCK REGEN and BLOCK RESTRICTIONS to apply. # Set to 'custom-mine-conditions: []' for no condition.