1
mirror of https://github.com/carm-outsource/TimeReward.git synced 2024-09-19 19:25:49 +00:00

[1.2.1] 更换使用Java8构建

This commit is contained in:
Carm Jos 2022-03-02 20:28:13 +08:00
parent 17d99fb1c0
commit 871ba8d643
2 changed files with 3 additions and 1 deletions

View File

@ -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<String> contents = new ArrayList<>();
while (scanner.hasNextLine()) {
contents.add(scanner.nextLine());

View File

@ -11,6 +11,8 @@ authors:
softdepend:
- PlaceholderAPI
api-version: 1.13
commands:
"TimeReward":
permission: "TimeReward.admin"