diff --git a/changelog.md b/changelog.md
index 3f3c8da..8fe1f10 100644
--- a/changelog.md
+++ b/changelog.md
@@ -1,5 +1,11 @@
# Change log
+
+### v4.0.0-beta
+- update to GAmeBox v3 and MC 1.14+
+
+#
+
### v 3.0.1
- empty inventory when player closes the game to stop players from taking ghost items.
diff --git a/pom.xml b/pom.xml
index 14e02da..cd5a6eb 100644
--- a/pom.xml
+++ b/pom.xml
@@ -5,8 +5,63 @@
4.0.0
me.nikl.gamebox.games
- GemCrush
- 4.0.0-alpha
+ gemcrush
+ GemCrush
+ jar
+ 4.0.0-beta
+ Match items and let it rain gems
+
+
+
+ nikl-repo
+ http://repo.nikl.me/artifactory/public
+
+
+
+
+ https://github.com/NiklasEi/gemcrush-for-gamebox
+ git@github.com:NiklasEi/gemcrush-for-gamebox.git
+
+
+
+ clean package
+ ${project.name}
+ src/main/java
+ target
+
+
+ .
+ true
+ ${basedir}/src/main/resources
+
+ **/*.yml
+
+
+
+
+
+ maven-compiler-plugin
+ 3.6.0
+
+ 1.8
+ 1.8
+
+
+
+ org.codehaus.mojo
+ buildnumber-maven-plugin
+ 1.4
+
+
+ validate
+
+ create-timestamp
+
+
+
+
+
+
@@ -30,20 +85,17 @@
me.nikl
- gamebox-core
- 3.0.0-alpha
+ gamebox
+ ${gamebox.version}
+ provided
-
- clean package
- ${project.artifactId}
-
-
1.8
1.8
UTF-8
UTF-8
+ 3.0.0-beta.2
-
\ No newline at end of file
+
diff --git a/src/main/java/me/nikl/gamebox/games/GemCrushMain.java b/src/main/java/me/nikl/gamebox/games/GemCrushMain.java
index 7c9235b..a921a18 100644
--- a/src/main/java/me/nikl/gamebox/games/GemCrushMain.java
+++ b/src/main/java/me/nikl/gamebox/games/GemCrushMain.java
@@ -1,29 +1,21 @@
package me.nikl.gamebox.games;
-import me.nikl.gamebox.GameBox;
-import me.nikl.gamebox.Module;
-import org.bukkit.Bukkit;
-import org.bukkit.plugin.Plugin;
-import org.bukkit.plugin.java.JavaPlugin;
+import me.nikl.gamebox.games.gemcrush.GemCrush;
+import me.nikl.gamebox.module.GameBoxModule;
/**
* @author Niklas Eicker
*/
-public class GemCrushMain extends JavaPlugin {
+public class GemCrushMain extends GameBoxModule {
public static final String GEM_CRUSH = "gemcrush";
- private GameBox gameBox;
@Override
public void onEnable() {
- Plugin plugin = Bukkit.getPluginManager().getPlugin("GameBox");
- if (plugin == null || !plugin.isEnabled()) {
- getLogger().warning(" GameBox was not found! Disabling GemCrush...");
- Bukkit.getPluginManager().disablePlugin(this);
- return;
- }
- gameBox = (GameBox) plugin;
- new Module(gameBox, GEM_CRUSH
- , "me.nikl.gamebox.games.gemcrush.GemCrush"
- , this, GEM_CRUSH, "gc");
+ registerGame(GEM_CRUSH, GemCrush.class, "gc");
+ }
+
+ @Override
+ public void onDisable() {
+
}
}
diff --git a/src/main/resources/module.yml b/src/main/resources/module.yml
new file mode 100644
index 0000000..324d1dd
--- /dev/null
+++ b/src/main/resources/module.yml
@@ -0,0 +1,10 @@
+id: ${project.artifactId}
+version: ${project.version}
+authors: ["Niklas Eicker"]
+name: ${project.name}
+description: ${project.description}
+sourceUrl: ${project.scm.url}
+updatedAt: !!java.lang.Long ${timestamp}
+dependencies:
+ - id: gamebox
+ versionConstrain: ">= ${gamebox.version}"
diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml
deleted file mode 100644
index e27fef4..0000000
--- a/src/main/resources/plugin.yml
+++ /dev/null
@@ -1,7 +0,0 @@
-name: GemCrush
-author: Nikl
-main: me.nikl.gamebox.games.GemCrushMain
-version: 4.0.0-alpha
-api-version: 1.14
-website: nikl.me
-depend: [GameBox]
\ No newline at end of file