Skip to content

Commit

Permalink
1.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
lt-name committed Jun 11, 2023
1 parent 6b9d6c0 commit 348d51b
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
8 changes: 7 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>cn.lanink</groupId>
<artifactId>HuntGame</artifactId>
<version>1.2.2-SNAPSHOT</version>
<version>1.3.0<!-- -SNAPSHOT--></version>

<licenses>
<license>
Expand Down Expand Up @@ -83,9 +83,15 @@
</goals>
<configuration>
<includes>
<include>${project.basedir}/src/main/java/cn/lanink/huntgame/HuntGame.java</include>
<include>${project.basedir}/src/main/resources/plugin.yml</include>
</includes>
<replacements>
<replacement>
<token>VERSION = ".*"</token>
<!--suppress UnresolvedMavenProperty -->
<value>VERSION = "${project.version} git-${git.commit.id.abbrev}"</value>
</replacement>
<replacement>
<token>version: ".*"</token>
<value>version: "${project.version}"</value>
Expand Down
7 changes: 5 additions & 2 deletions src/main/java/cn/lanink/huntgame/HuntGame.java
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@
*/
public class HuntGame extends PluginBase {

public static final String VERSION = "?";

public static boolean debug = false;

private static HuntGame huntGame;
Expand Down Expand Up @@ -452,9 +454,10 @@ public void reLoadRooms() {
}

public String getVersion() {
Config config = new Config(Config.PROPERTIES);
return VERSION;
/*Config config = new Config(Config.PROPERTIES);
config.load(this.getResource("git.properties"));
return config.get("git.build.version", this.getDescription().getVersion()) + " git-" + config.get("git.commit.id.abbrev", "Unknown");
return config.get("git.build.version", this.getDescription().getVersion()) + " git-" + config.get("git.commit.id.abbrev", "Unknown");*/
}

}
2 changes: 1 addition & 1 deletion src/main/resources/plugin.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: HuntGame
main: cn.lanink.huntgame.HuntGame
version: "1.2.2-SNAPSHOT"
version: "1.3.0"
api: ["1.0.9"]
load: POSTWORLD
author: "LT_Name"
Expand Down

0 comments on commit 348d51b

Please sign in to comment.