mirror of
https://github.com/carm-outsource/TimeReward.git
synced 2024-09-19 11:15:52 +00:00
[1.2.1] 更换使用Java8构建
This commit is contained in:
parent
17d99fb1c0
commit
871ba8d643
@ -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());
|
||||
|
@ -11,6 +11,8 @@ authors:
|
||||
softdepend:
|
||||
- PlaceholderAPI
|
||||
|
||||
api-version: 1.13
|
||||
|
||||
commands:
|
||||
"TimeReward":
|
||||
permission: "TimeReward.admin"
|
||||
|
Loading…
Reference in New Issue
Block a user