mirror of
https://github.com/SimplexDevelopment/SimplexCore.git
synced 2025-07-01 22:56:43 +00:00
Migrate to gradle
This commit is contained in:
@ -23,7 +23,7 @@ public class CoreState {
|
||||
}
|
||||
|
||||
public State getState() {
|
||||
if (SimplexCore.isDebug()) {
|
||||
if (SimplexCorePlugin.isDebug()) {
|
||||
return State.DEBUG;
|
||||
}
|
||||
|
||||
@ -31,7 +31,7 @@ public class CoreState {
|
||||
return State.ON;
|
||||
}
|
||||
|
||||
if (SimplexCore.isSuspended()) {
|
||||
if (SimplexCorePlugin.isSuspended()) {
|
||||
return State.SUSPENDED;
|
||||
}
|
||||
|
||||
|
@ -9,7 +9,7 @@ import io.github.paldiu.simplexcore.utils.Constants;
|
||||
|
||||
// This comment was added to force a test on Jenkins AutoBuild
|
||||
// https://jenkins.coomware.dev/job/SimplexCore
|
||||
public final class SimplexCore extends SimplexAddon<SimplexCore> {
|
||||
public final class SimplexCorePlugin extends SimplexAddon<SimplexCorePlugin> {
|
||||
protected static boolean debug = false;
|
||||
protected static boolean suspended = false;
|
||||
|
||||
@ -26,7 +26,7 @@ public final class SimplexCore extends SimplexAddon<SimplexCore> {
|
||||
}
|
||||
|
||||
@Override
|
||||
public SimplexCore getPlugin() {
|
||||
public SimplexCorePlugin getPlugin() {
|
||||
return this;
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
package io.github.paldiu.simplexcore.utils;
|
||||
|
||||
import io.github.paldiu.simplexcore.SimplexCore;
|
||||
import io.github.paldiu.simplexcore.SimplexCorePlugin;
|
||||
import io.github.paldiu.simplexcore.command.CommandLoader;
|
||||
import io.github.paldiu.simplexcore.config.Yaml;
|
||||
import io.github.paldiu.simplexcore.config.YamlFactory;
|
||||
@ -14,7 +14,7 @@ import org.bukkit.scheduler.BukkitScheduler;
|
||||
import java.util.logging.Logger;
|
||||
|
||||
public final class Constants {
|
||||
private static final SimplexCore plugin = JavaPlugin.getPlugin(SimplexCore.class);
|
||||
private static final SimplexCorePlugin plugin = JavaPlugin.getPlugin(SimplexCorePlugin.class);
|
||||
private static final Server server = plugin.getServer();
|
||||
private static final Logger logger = plugin.getLogger();
|
||||
private static final PluginManager manager = server.getPluginManager();
|
||||
@ -27,7 +27,7 @@ public final class Constants {
|
||||
throw new AssertionError();
|
||||
}
|
||||
|
||||
public static SimplexCore getPlugin() {
|
||||
public static SimplexCorePlugin getPlugin() {
|
||||
return plugin;
|
||||
}
|
||||
|
||||
|
@ -1,7 +1,9 @@
|
||||
name: SimplexCore
|
||||
version: ${project.version}
|
||||
main: io.github.paldiu.simplexcore.SimplexCore
|
||||
name: ${pluginName}
|
||||
version: ${pluginVersion}
|
||||
main: ${pluginMain}
|
||||
api-version: 1.16
|
||||
prefix: Simplex
|
||||
authors: [ Paldiu ]
|
||||
authors:
|
||||
- Paldiu
|
||||
- Conclure
|
||||
description: Core for a group of plugins designed to enhance gameplay to the max
|
||||
|
Reference in New Issue
Block a user