Skip to content

Commit

Permalink
2.4.4
Browse files Browse the repository at this point in the history
  • Loading branch information
lt-name committed Feb 10, 2024
1 parent 8c628a6 commit de76e27
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
6 changes: 5 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>com.smallaswater</groupId>
<artifactId>RsNPC</artifactId>
<version>2.4.4-SNAPSHOT</version>
<version>2.4.4<!-- -SNAPSHOT--></version>

<name>RsNPC</name>
<description>RsNPC -- NPC plugin for Nukkit</description>
Expand Down Expand Up @@ -155,6 +155,10 @@
<token>version: ".*"</token>
<value>version: "${project.version}"</value>
</replacement>
<replacement>
<token>VERSION = ".*"</token>
<value>VERSION = "${project.version}"</value>
</replacement>
<replacement>
<token>MINIMUM_GAME_CORE_VERSION = ".*"</token>
<value>MINIMUM_GAME_CORE_VERSION = "${lib.GameCore.version}"</value>
Expand Down
7 changes: 5 additions & 2 deletions src/main/java/com/smallaswater/npc/RsNPC.java
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ public class RsNPC extends PluginBase {
new ThreadPoolExecutor.DiscardPolicy());
public static final Random RANDOM = new Random();

public static final String VERSION = "?";

private static RsNPC rsNPC;

@Getter
Expand Down Expand Up @@ -408,9 +410,10 @@ public Config getNpcConfigDescription() {
}

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: RsNPC
main: com.smallaswater.npc.RsNPC
version: "2.4.4-SNAPSHOT"
version: "2.4.4"
api:
- "1.0.9"
- "1.0.11"
Expand Down

0 comments on commit de76e27

Please sign in to comment.