From 9b7279af14d2179f8e935490a41408e3a8ca4c59 Mon Sep 17 00:00:00 2001 From: "U-NIFLHEIM\\Lax" Date: Wed, 21 Jun 2017 22:23:08 -0700 Subject: [PATCH] 1.12 update --- pom.xml | 2 +- src/main/java/com/massivecraft/factions/zcore/MPlugin.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 12649cc3..df234208 100644 --- a/pom.xml +++ b/pom.xml @@ -73,7 +73,7 @@ org.spigotmc spigot-api - 1.11-R0.1-SNAPSHOT + 1.12-R0.1-SNAPSHOT provided diff --git a/src/main/java/com/massivecraft/factions/zcore/MPlugin.java b/src/main/java/com/massivecraft/factions/zcore/MPlugin.java index 47812cc1..900c5449 100644 --- a/src/main/java/com/massivecraft/factions/zcore/MPlugin.java +++ b/src/main/java/com/massivecraft/factions/zcore/MPlugin.java @@ -133,7 +133,7 @@ public abstract class MPlugin extends JavaPlugin { while ((read = defLangStream.read(bytes)) != -1) { out.write(bytes, 0, read); } - YamlConfiguration defConfig = YamlConfiguration.loadConfiguration(defLangStream); + YamlConfiguration defConfig = YamlConfiguration.loadConfiguration(new BufferedReader(new InputStreamReader(defLangStream))); TL.setFile(defConfig); } } catch (IOException e) {