1
mirror of https://github.com/carm-outsource/TimeReward.git synced 2026-06-05 01:08:10 +08:00

4 Commits

Author SHA1 Message Date
carm 871ba8d643 [1.2.1] 更换使用Java8构建 2022-03-02 20:28:13 +08:00
carm 17d99fb1c0 [1.2.1] 更换使用Java8构建 2022-03-02 20:26:26 +08:00
carm 28586bb086 不在需要catserver依赖。 2022-02-28 20:04:04 +08:00
carm 184a0e480a 不在需要catserver依赖。 2022-02-28 20:01:44 +08:00
7 changed files with 8 additions and 14 deletions
+1 -1
View File
@@ -18,7 +18,7 @@ jobs:
- name: "Set up JDK" - name: "Set up JDK"
uses: actions/setup-java@v2 uses: actions/setup-java@v2
with: with:
java-version: '11' java-version: '8'
distribution: 'adopt' distribution: 'adopt'
cache: maven cache: maven
server-id: github server-id: github
+1 -1
View File
@@ -17,7 +17,7 @@ jobs:
- name: "Set up JDK" - name: "Set up JDK"
uses: actions/setup-java@v2 uses: actions/setup-java@v2
with: with:
java-version: '11' java-version: '8'
distribution: 'adopt' distribution: 'adopt'
cache: maven cache: maven
server-id: github server-id: github
+1 -1
View File
@@ -10,7 +10,7 @@
# TimeReward # TimeReward
[![workflow](https://github.com/CarmJos/TimeReward/actions/workflows/maven.yml/badge.svg?branch=master)](https://github.com/CarmJos/TimeReward/actions/workflows/maven.yml) [![workflow](https://github.com/CarmJos/TimeReward/actions/workflows/maven.yml/badge.svg?branch=master)](https://github.com/CarmJos/TimeReward/actions/workflows/maven.yml)
![Support](https://img.shields.io/badge/Minecraft-Java%201.16--Latest-yellow) ![Support](https://img.shields.io/badge/Minecraft-Java%201.12--Latest-yellow)
![](https://visitor-badge.glitch.me/badge?page_id=TimeReward.readme) ![](https://visitor-badge.glitch.me/badge?page_id=TimeReward.readme)
在线时长自动领奖插件,通过指令发放奖励,基于EasyPlugin实现。 在线时长自动领奖插件,通过指令发放奖励,基于EasyPlugin实现。
Binary file not shown.
+2 -10
View File
@@ -5,7 +5,7 @@
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<properties> <properties>
<java.version>11</java.version> <java.version>8</java.version>
<maven.compiler.source>${java.version}</maven.compiler.source> <maven.compiler.source>${java.version}</maven.compiler.source>
<maven.compiler.target>${java.version}</maven.compiler.target> <maven.compiler.target>${java.version}</maven.compiler.target>
<easyplugin.version>1.3.9</easyplugin.version> <easyplugin.version>1.3.9</easyplugin.version>
@@ -14,7 +14,7 @@
<groupId>cc.carm.plugin</groupId> <groupId>cc.carm.plugin</groupId>
<artifactId>timereward</artifactId> <artifactId>timereward</artifactId>
<version>1.2.0</version> <version>1.2.1</version>
<packaging>jar</packaging> <packaging>jar</packaging>
<name>TimeReward</name> <name>TimeReward</name>
@@ -85,14 +85,6 @@
<optional>true</optional> <optional>true</optional>
</dependency> </dependency>
<dependency>
<groupId>catserver</groupId>
<artifactId>CatServer</artifactId>
<version>1.12.2-b10faff</version>
<scope>system</scope>
<systemPath>${project.basedir}/lib/CatServerSRG-b10faff.jar</systemPath>
</dependency>
<dependency> <dependency>
<groupId>org.spigotmc</groupId> <groupId>org.spigotmc</groupId>
<artifactId>spigot-api</artifactId> <artifactId>spigot-api</artifactId>
@@ -18,7 +18,7 @@ public class JarResourceUtils {
public static @Nullable String[] readResource(@Nullable InputStream resourceStream) { public static @Nullable String[] readResource(@Nullable InputStream resourceStream) {
if (resourceStream == null) return null; 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<>(); List<String> contents = new ArrayList<>();
while (scanner.hasNextLine()) { while (scanner.hasNextLine()) {
contents.add(scanner.nextLine()); contents.add(scanner.nextLine());
+2
View File
@@ -11,6 +11,8 @@ authors:
softdepend: softdepend:
- PlaceholderAPI - PlaceholderAPI
api-version: 1.13
commands: commands:
"TimeReward": "TimeReward":
permission: "TimeReward.admin" permission: "TimeReward.admin"