Skip to content

Commit a7d5129

Browse files
committed
add update checker
1 parent 7e296ce commit a7d5129

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<modelVersion>4.0.0</modelVersion>
66

77
<artifactId>defuse-the-bomb</artifactId>
8-
<version>1.0.0</version>
8+
<version>1.0.1</version>
99
<packaging>jar</packaging>
1010

1111
<name>DefuseTheBomb</name>
@@ -25,13 +25,13 @@
2525
<parent>
2626
<groupId>com.github.GamesInTheBox-MC</groupId>
2727
<artifactId>ExpansionParent</artifactId>
28-
<version>1.0.0</version>
28+
<version>1.0.1</version>
2929
</parent>
3030
<dependencies>
3131
<dependency>
3232
<groupId>com.github.GamesInTheBox-MC</groupId>
3333
<artifactId>GamesInTheBox</artifactId>
34-
<version>1.0.1</version>
34+
<version>1.1.4</version>
3535
<scope>provided</scope>
3636
</dependency>
3737
</dependencies>

src/main/java/me/hsgamer/gamesinthebox/defusethebomb/DefuseTheBomb.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
import me.hsgamer.gamesinthebox.game.template.TemplateGameArenaLogic;
77
import me.hsgamer.gamesinthebox.game.template.TemplateGameEditor;
88
import me.hsgamer.gamesinthebox.game.template.expansion.TemplateGameExpansion;
9+
import me.hsgamer.gamesinthebox.util.UpdateUtil;
910
import me.hsgamer.hscore.bukkit.config.BukkitConfig;
1011
import me.hsgamer.hscore.common.CollectionUtils;
1112
import me.hsgamer.hscore.config.proxy.ConfigGenerator;
@@ -21,6 +22,11 @@ public class DefuseTheBomb extends TemplateGameExpansion {
2122
public static final SimplePointFeature.PointValue POINT_MINUS = new SimplePointFeature.PointValue("minus", -1, true);
2223
private final MessageConfig messageConfig = ConfigGenerator.newInstance(MessageConfig.class, new BukkitConfig(new File(getDataFolder(), "messages.yml")));
2324

25+
@Override
26+
protected void enable() {
27+
UpdateUtil.notifyUpdate(this, "GamesInTheBox-MC/DefuseTheBomb");
28+
}
29+
2430
@Override
2531
public List<SimplePointFeature.PointValue> getPointValues() {
2632
return Arrays.asList(POINT_PLUS, POINT_MINUS);

0 commit comments

Comments
 (0)