New test
This commit is contained in:
1 parent
6f3fbc5ff9
commit
18db35d603
5 files changed
+10
-10
No files matched your search
+1
-1
@@ -39,7 +39,7 @@ dependencies {
|
||||
compileOnly("io.github.miniplaceholders:miniplaceholders-api:2.2.3") // Import MiniPlaceholders API.
|
||||
compileOnlyApi(project(":libs:Utilities-OG")) // Import TrueOG Network Utilities-OG API.
|
||||
compileOnlyApi(project(":libs:GxUI-OG")) // Import TrueOG Network GxUI-OG API.
|
||||
compileOnlyApi(project(":libs:DiamondBank-OG")) // Import TrueOG Network DiamondBank-OG API.
|
||||
//compileOnlyApi(project(":libs:DiamondBank-OG")) // Import TrueOG Network DiamondBank-OG API.
|
||||
}
|
||||
|
||||
tasks.withType<AbstractArchiveTask>().configureEach { // Ensure reproducible .jars
|
||||
|
||||
+1
-1
Submodule libs/GxUI-OG updated: cf989070e0...cf7ec84c9a.
+1
-1
Submodule libs/Utilities-OG updated: 741854966e...ed7f99d354.
@@ -1,6 +1,6 @@
|
||||
package plugin;
|
||||
|
||||
import net.trueog.diamondbankog.DiamondBankAPIJava;
|
||||
// import net.trueog.diamondbankog.DiamondBankAPIJava;
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.configuration.file.FileConfiguration;
|
||||
import org.bukkit.plugin.RegisteredServiceProvider;
|
||||
@@ -9,7 +9,7 @@ import org.bukkit.plugin.java.JavaPlugin;
|
||||
public class TemplateOG extends JavaPlugin {
|
||||
|
||||
private static TemplateOG plugin;
|
||||
private static DiamondBankAPIJava diamondBankAPI;
|
||||
// private static DiamondBankAPIJava diamondBankAPI;
|
||||
private static FileConfiguration config;
|
||||
|
||||
@Override
|
||||
@@ -22,7 +22,7 @@ public class TemplateOG extends JavaPlugin {
|
||||
|
||||
getServer().getPluginManager().registerEvents(new Listeners(), this);
|
||||
|
||||
RegisteredServiceProvider<DiamondBankAPIJava> provider =
|
||||
/*RegisteredServiceProvider<DiamondBankAPIJava> provider =
|
||||
getServer().getServicesManager().getRegistration(DiamondBankAPIJava.class);
|
||||
|
||||
if (provider == null) {
|
||||
@@ -30,16 +30,16 @@ public class TemplateOG extends JavaPlugin {
|
||||
Bukkit.getPluginManager().disablePlugin(this);
|
||||
return;
|
||||
}
|
||||
diamondBankAPI = provider.getProvider();
|
||||
diamondBankAPI = provider.getProvider();*/
|
||||
}
|
||||
|
||||
public static TemplateOG getPlugin() {
|
||||
return plugin;
|
||||
}
|
||||
|
||||
public static DiamondBankAPIJava diamondBankAPI() {
|
||||
/*public static DiamondBankAPIJava diamondBankAPI() {
|
||||
return diamondBankAPI;
|
||||
}
|
||||
}*/
|
||||
|
||||
public static FileConfiguration config() {
|
||||
return config;
|
||||
|
||||
@@ -6,5 +6,5 @@ version: '${version}'
|
||||
api-version: '${apiVersion}'
|
||||
main: plugin.TemplateOG
|
||||
depend:
|
||||
- DiamondBank-OG
|
||||
# - DiamondBank-OG
|
||||
- Utilities-OG
|
||||
Reference in new issue
Block a user