Skip to content

Commit

Permalink
add update checker
Browse files Browse the repository at this point in the history
  • Loading branch information
HSGamer committed May 28, 2023
1 parent ce90bdd commit 54a90ca
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<modelVersion>4.0.0</modelVersion>

<artifactId>king-of-the-hill</artifactId>
<version>1.0.1</version>
<version>1.0.2</version>
<packaging>jar</packaging>

<name>KingOfTheHill</name>
Expand All @@ -25,13 +25,13 @@
<parent>
<groupId>com.github.GamesInTheBox-MC</groupId>
<artifactId>ExpansionParent</artifactId>
<version>1.0.0</version>
<version>1.0.1</version>
</parent>
<dependencies>
<dependency>
<groupId>com.github.GamesInTheBox-MC</groupId>
<artifactId>GamesInTheBox</artifactId>
<version>1.0.0</version>
<version>1.1.4</version>
<scope>provided</scope>
</dependency>
</dependencies>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import me.hsgamer.gamesinthebox.game.template.TemplateGameArenaLogic;
import me.hsgamer.gamesinthebox.game.template.TemplateGameEditor;
import me.hsgamer.gamesinthebox.game.template.expansion.TemplateGameExpansion;
import me.hsgamer.gamesinthebox.util.UpdateUtil;
import me.hsgamer.hscore.bukkit.config.BukkitConfig;
import me.hsgamer.hscore.common.CollectionUtils;
import me.hsgamer.hscore.config.proxy.ConfigGenerator;
Expand All @@ -22,6 +23,11 @@ public class KingOfTheHill extends TemplateGameExpansion {

private final KOTHMessageConfig messageConfig = ConfigGenerator.newInstance(KOTHMessageConfig.class, new BukkitConfig(new File(getDataFolder(), "messages.yml")));

@Override
protected void enable() {
UpdateUtil.notifyUpdate(this, "GamesInTheBox-MC/KingOfTheHill");
}

@Override
public TemplateGameArenaLogic createArenaLogic(TemplateGameArena arena) {
return new KOTHGameLogic(arena);
Expand Down

0 comments on commit 54a90ca

Please sign in to comment.