Skip to content

Commit

Permalink
Altered ActivityTracker.java and changed version to v0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
dmccoystephenson committed Oct 6, 2021
1 parent 4594607 commit 923e578
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>dansplugins</groupId>
<artifactId>ActivityTracker</artifactId>
<version>v0.2-alpha-1</version>
<version>v0.2</version>
<packaging>jar</packaging>

<name>ActivityTracker</name>
Expand Down
18 changes: 17 additions & 1 deletion src/main/java/dansplugins/activitytracker/ActivityTracker.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,13 @@
import org.bukkit.command.CommandSender;
import org.bukkit.plugin.java.JavaPlugin;

import java.io.File;

public final class ActivityTracker extends JavaPlugin {

private static ActivityTracker instance;

private String version = "v0.2-alpha-1";
private String version = "v0.2";

public static ActivityTracker getInstance() {
return instance;
Expand All @@ -19,7 +21,21 @@ public static ActivityTracker getInstance() {
@Override
public void onEnable() {
instance = this;

// create/load config
if (!(new File("./plugins/Mailboxes/config.yml").exists())) {
ConfigManager.getInstance().saveMissingConfigDefaultsIfNotPresent();
}
else {
// pre load compatibility checks
if (isVersionMismatched()) {
ConfigManager.getInstance().saveMissingConfigDefaultsIfNotPresent();
}
reloadConfig();
}

EventRegistry.getInstance().registerEvents();

StorageManager.getInstance().load();
}

Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/plugin.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: ActivityTracker
version: 0.2-alpha-1
version: 0.2
main: dansplugins.activitytracker.ActivityTracker
api-version: 1.13

0 comments on commit 923e578

Please sign in to comment.