-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
118 additions
and
84 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 37 additions & 0 deletions
37
src/main/java/me/nikl/gamebox/games/GameTemplateModule.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
package me.nikl.gamebox.games; | ||
|
||
import me.nikl.gamebox.games.templategame.Template; | ||
import me.nikl.gamebox.module.GameBoxModule; | ||
|
||
/** | ||
* Template module for GameBox | ||
* | ||
* @author Niklas Eicker | ||
*/ | ||
public class GameTemplateModule extends GameBoxModule { | ||
public static final String gameID = "templategame"; | ||
|
||
@Override | ||
public void onEnable(){ | ||
/* | ||
All resources for a specific module have to be in the folder 'games/moduleID/' | ||
This folder MUST contain a 'config.yml' | ||
All subfolders are also copied to the gameBox folder and can be used for game | ||
specific additional resources | ||
All language files belong in 'language/moduleID/' | ||
This folder MUST contain a 'lang_en.yml' which is used for default messages | ||
*/ | ||
|
||
// As this module whats to add a game, we can register it here | ||
// The last Strings are subcommands. Our template game could be opened with: | ||
// '/gb templategame' | ||
// '/gb test1' and '/gb test2' | ||
registerGame(gameID, Template.class, "test1", "test2"); | ||
} | ||
|
||
@Override | ||
public void onDisable(){ | ||
// clean up your own resources | ||
// Nothing to do atm | ||
} | ||
} |
40 changes: 0 additions & 40 deletions
40
src/main/java/me/nikl/gamebox/games/GameTemplatePlugin.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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}" |
This file was deleted.
Oops, something went wrong.