From 871ba8d643bb70a855be93722537fdb297c2836e Mon Sep 17 00:00:00 2001 From: CarmJos Date: Wed, 2 Mar 2022 20:28:13 +0800 Subject: [PATCH] =?UTF-8?q?[1.2.1]=20=E6=9B=B4=E6=8D=A2=E4=BD=BF=E7=94=A8J?= =?UTF-8?q?ava8=E6=9E=84=E5=BB=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/cc/carm/plugin/timereward/util/JarResourceUtils.java | 2 +- src/main/resources/plugin.yml | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/cc/carm/plugin/timereward/util/JarResourceUtils.java b/src/main/java/cc/carm/plugin/timereward/util/JarResourceUtils.java index 0050133..f4fbcea 100644 --- a/src/main/java/cc/carm/plugin/timereward/util/JarResourceUtils.java +++ b/src/main/java/cc/carm/plugin/timereward/util/JarResourceUtils.java @@ -18,7 +18,7 @@ public class JarResourceUtils { public static @Nullable String[] readResource(@Nullable InputStream resourceStream) { if (resourceStream == null) return null; - try (Scanner scanner = new Scanner(resourceStream, StandardCharsets.UTF_8)) { + try (Scanner scanner = new Scanner(resourceStream, StandardCharsets.UTF_8.name())) { List contents = new ArrayList<>(); while (scanner.hasNextLine()) { contents.add(scanner.nextLine()); diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml index d675d59..cbf7fdd 100644 --- a/src/main/resources/plugin.yml +++ b/src/main/resources/plugin.yml @@ -11,6 +11,8 @@ authors: softdepend: - PlaceholderAPI +api-version: 1.13 + commands: "TimeReward": permission: "TimeReward.admin"