Started linking the beginnings of the project

This commit is contained in:
sekwah 2018-01-17 05:45:06 +00:00
parent c7c33d7442
commit 17b95a3486
2 changed files with 11 additions and 10 deletions

14
pom.xml
View File

@ -23,6 +23,12 @@
<maven.compiler.target>1.7</maven.compiler.target>
</properties>
<dependencies>
<!-- https://mvnrepository.com/artifact/com.google.code.gson/gson -->
<dependency>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
<version>2.8.2</version>
</dependency>
<dependency>
<groupId>org.bukkit</groupId>
<artifactId>bukkit</artifactId>
@ -30,14 +36,6 @@
<scope>provided</scope>
</dependency>
</dependencies>
<dependencies>
<!-- https://mvnrepository.com/artifact/com.google.code.gson/gson -->
<dependency>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
<version>2.8.2</version>
</dependency>
</dependencies>
</project>

View File

@ -1,16 +1,19 @@
package com.sekwah.advancedportals.spigot;
import com.sekwah.advancedportals.core.AdvancedPortalsCore;
import com.sekwah.advancedportals.core.util.DataStorage;
import org.bukkit.plugin.java.JavaPlugin;
public class AdvancedPortalsPlugin extends JavaPlugin {
private AdvancedPortalsCore portalsCore;
public void onEnable() {
//this.portalsCore = new AdvancedPortalsCore()
this.portalsCore = new AdvancedPortalsCore(new DataStorage(this.getDataFolder()), new SpigotInfoLogger(this));
}
public void onDisable() {
this.portalsCore.onDisable();
}
}