Catch exception not InvalidConfigurationException

This commit is contained in:
libraryaddict 2021-01-29 06:25:50 +13:00
parent 87e3defcab
commit a45f7a8076

@ -21,7 +21,6 @@ import org.bukkit.block.data.BlockData;
import org.bukkit.command.Command; import org.bukkit.command.Command;
import org.bukkit.command.CommandMap; import org.bukkit.command.CommandMap;
import org.bukkit.command.SimpleCommandMap; import org.bukkit.command.SimpleCommandMap;
import org.bukkit.configuration.InvalidConfigurationException;
import org.bukkit.configuration.file.YamlConfiguration; import org.bukkit.configuration.file.YamlConfiguration;
import org.bukkit.entity.*; import org.bukkit.entity.*;
import org.bukkit.inventory.EquipmentSlot; import org.bukkit.inventory.EquipmentSlot;
@ -344,7 +343,7 @@ public class ReflectionManager {
config.loadFromString(getResourceAsString(file, "plugin.yml")); config.loadFromString(getResourceAsString(file, "plugin.yml"));
return config; return config;
} catch (InvalidConfigurationException e) { } catch (Exception e) {
e.printStackTrace(); e.printStackTrace();
} }