Catch exception not InvalidConfigurationException

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

View File

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