mirror of
https://github.com/Xiao-MoMi/craft-engine.git
synced 2025-12-19 15:09:15 +00:00
Merge branch 'main' into dev
This commit is contained in:
@@ -61,7 +61,7 @@ artifacts {
|
|||||||
|
|
||||||
tasks {
|
tasks {
|
||||||
shadowJar {
|
shadowJar {
|
||||||
archiveFileName = "${rootProject.name}-bukkit-plugin-${rootProject.properties["project_version"]}.jar"
|
archiveFileName = "${rootProject.name}-${rootProject.properties["project_version"]}-community-bukkit.jar"
|
||||||
destinationDirectory.set(file("$rootDir/target"))
|
destinationDirectory.set(file("$rootDir/target"))
|
||||||
relocate("net.kyori", "net.momirealms.craftengine.libraries")
|
relocate("net.kyori", "net.momirealms.craftengine.libraries")
|
||||||
relocate("net.momirealms.sparrow.nbt", "net.momirealms.craftengine.libraries.nbt")
|
relocate("net.momirealms.sparrow.nbt", "net.momirealms.craftengine.libraries.nbt")
|
||||||
|
|||||||
@@ -19,6 +19,8 @@ public class BukkitCraftEnginePlugin extends JavaPlugin {
|
|||||||
@Override
|
@Override
|
||||||
public void onEnable() {
|
public void onEnable() {
|
||||||
this.plugin.onPluginEnable();
|
this.plugin.onPluginEnable();
|
||||||
|
this.plugin.logger().warn("You're using the CraftEngine Community Edition.");
|
||||||
|
this.plugin.logger().warn("Please consider purchasing the premium version to support CraftEngine's development.");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@@ -152,7 +152,7 @@ tasks {
|
|||||||
manifest {
|
manifest {
|
||||||
attributes["paperweight-mappings-namespace"] = "mojang"
|
attributes["paperweight-mappings-namespace"] = "mojang"
|
||||||
}
|
}
|
||||||
archiveFileName = "${rootProject.name}-paper-plugin-${rootProject.properties["project_version"]}.jar"
|
archiveFileName = "${rootProject.name}-${rootProject.properties["project_version"]}-community-paper.jar"
|
||||||
destinationDirectory.set(file("$rootDir/target"))
|
destinationDirectory.set(file("$rootDir/target"))
|
||||||
relocate("net.kyori", "net.momirealms.craftengine.libraries")
|
relocate("net.kyori", "net.momirealms.craftengine.libraries")
|
||||||
relocate("net.momirealms.sparrow.nbt", "net.momirealms.craftengine.libraries.nbt")
|
relocate("net.momirealms.sparrow.nbt", "net.momirealms.craftengine.libraries.nbt")
|
||||||
|
|||||||
@@ -18,6 +18,8 @@ public final class PaperCraftEnginePlugin extends JavaPlugin {
|
|||||||
@Override
|
@Override
|
||||||
public void onEnable() {
|
public void onEnable() {
|
||||||
this.bootstrap.plugin.onPluginEnable();
|
this.bootstrap.plugin.onPluginEnable();
|
||||||
|
this.bootstrap.plugin.logger().warn("You're using the CraftEngine Community Edition.");
|
||||||
|
this.bootstrap.plugin.logger().warn("Please consider purchasing the premium version to support CraftEngine's development.");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@@ -8,8 +8,8 @@ import java.nio.charset.StandardCharsets;
|
|||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
|
|
||||||
public class VersionHelper {
|
public class VersionHelper {
|
||||||
public static final boolean PREMIUM = true;
|
|
||||||
public static final boolean IS_RUNNING_IN_DEV = Boolean.getBoolean("net.momirealms.craftengine.dev");
|
public static final boolean IS_RUNNING_IN_DEV = Boolean.getBoolean("net.momirealms.craftengine.dev");
|
||||||
|
public static final boolean PREMIUM = false;
|
||||||
public static final MinecraftVersion MINECRAFT_VERSION;
|
public static final MinecraftVersion MINECRAFT_VERSION;
|
||||||
public static final boolean COMPONENT_RELEASE;
|
public static final boolean COMPONENT_RELEASE;
|
||||||
private static final int version;
|
private static final int version;
|
||||||
|
|||||||
Reference in New Issue
Block a user