Skip to content

Commit

Permalink
[1.2.1] 更换使用Java8构建
Browse files Browse the repository at this point in the history
  • Loading branch information
CarmJos committed Mar 2, 2022
1 parent 17d99fb commit 871ba8d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down
2 changes: 2 additions & 0 deletions src/main/resources/plugin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ authors:
softdepend:
- PlaceholderAPI

api-version: 1.13

commands:
"TimeReward":
permission: "TimeReward.admin"
Expand Down

0 comments on commit 871ba8d

Please sign in to comment.