Skip to content

Commit

Permalink
bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
ryderbelserion committed Jul 23, 2024
1 parent f11e4cc commit 611350e
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 5 deletions.
8 changes: 7 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ plugins {

val buildNumber: String? = System.getenv("BUILD_NUMBER")

rootProject.version = if (buildNumber != null) "${libs.versions.minecraft.get()}-$buildNumber" else "1.12.1"
rootProject.version = if (buildNumber != null) "${libs.versions.minecraft.get()}-$buildNumber" else "1.12.2"

val isSnapshot = true

Expand All @@ -27,7 +27,13 @@ dependencies {

compileOnly(libs.decent.holograms)

compileOnly(libs.headdatabaseapi)

compileOnly(libs.placeholderapi)

compileOnly(libs.worldguard)

compileOnly(libs.oraxen)
}

val component: SoftwareComponent = components["java"]
Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ triumph-cmd = "2.0.0-ALPHA-10"
tirumph-gui = "3.1.7"
jetbrains = "24.1.0"
kyori = "4.17.0"
vital = "1.9.8"
vital = "2.0.1"

# Paper
paperweight="1.7.1"
Expand Down
12 changes: 12 additions & 0 deletions src/main/java/com/badbones69/crazyenvoys/CrazyEnvoys.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,21 @@
import com.badbones69.crazyenvoys.config.types.ConfigKeys;
import com.badbones69.crazyenvoys.support.MetricsWrapper;

import java.util.Locale;

public class CrazyEnvoys extends JavaPlugin {

@NotNull
public static CrazyEnvoys get() {
return JavaPlugin.getPlugin(CrazyEnvoys.class);
}

private final long startTime;

public CrazyEnvoys() {
this.startTime = System.nanoTime();
}

private EditorSettings editorSettings;
private FlareSettings flareSettings;
private CoolDownSettings coolDownSettings;
Expand Down Expand Up @@ -78,6 +86,10 @@ public void onEnable() {
}

registerCommand(getCommand("crazyenvoys"), new EnvoyTab(), new EnvoyCommand());

if (isLogging()) {
getComponentLogger().info("Done ({})!", String.format(Locale.ROOT, "%.3fs", (double) (System.nanoTime() - this.startTime) / 1.0E9D));
}
}

@Override
Expand Down
13 changes: 10 additions & 3 deletions src/main/java/com/badbones69/crazyenvoys/api/Server.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,28 +10,35 @@

public class Server extends Vital {

private final JavaPlugin plugin;
private final File dataFolder;
private final ComponentLogger logger;

public Server(final JavaPlugin plugin) {
this.dataFolder = plugin.getDataFolder();
this.logger = plugin.getComponentLogger();
this.plugin = plugin;

ConfigManager.load(this.dataFolder, this.logger);
}

@Override
public @NotNull File getDirectory() {
public @NotNull final File getDirectory() {
return this.dataFolder;
}

@Override
public @NotNull ComponentLogger getLogger() {
public @NotNull final ComponentLogger getLogger() {
return this.logger;
}

@Override
public boolean isLogging() {
public void saveResource(String resourceName, boolean replaceExisting) {
this.plugin.saveResource(resourceName, replaceExisting);
}

@Override
public final boolean isLogging() {
return ConfigManager.getConfig().getProperty(ConfigKeys.verbose_logging);
}
}

0 comments on commit 611350e

Please sign in to comment.