Skip to content

Commit

Permalink
refactor: update startup logging messages
Browse files Browse the repository at this point in the history
  • Loading branch information
WiIIiam278 committed Jun 25, 2024
1 parent 722de8f commit c5e5788
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ public interface HuskClaims extends Task.Supplier, ConfigProvider, DatabaseProvi
* @since 1.3.2
*/
default void load() {
log(Level.INFO, String.format("Loading HuskClaims v%s...", getPluginVersion()));
try {
loadSettings();
loadServer();
Expand All @@ -73,7 +72,7 @@ default void load() {
disablePlugin();
return;
}
log(Level.INFO, String.format("Loaded HuskClaims v%s...", getPluginVersion()));
log(Level.INFO, String.format("Successfully loaded HuskClaims v%s", getPluginVersion()));
}

/**
Expand All @@ -82,7 +81,6 @@ default void load() {
* @since 1.0
*/
default void enable() {
log(Level.INFO, String.format("Enabling HuskClaims v%s...", getPluginVersion()));
try {
loadDatabase();
loadClaimWorlds();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,8 @@ default void registerHooks(@NotNull PluginHook.Register... register) {
}
return true;
});
getPlugin().log(Level.INFO, "Registered %s hooks".formatted(
registers.stream().map(PluginHook.Register::name).collect(Collectors.joining(" & "))
));
getPlugin().log(Level.INFO, "Registered '%s' hooks".formatted(registers.stream()
.map(h -> h.name().toLowerCase(Locale.ENGLISH)).collect(Collectors.joining(" & "))));
}

default void unloadHooks() {
Expand Down
10 changes: 5 additions & 5 deletions paper/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,12 @@ shadowJar {

tasks {
runServer {
minecraftVersion('1.20.6')
minecraftVersion('1.21')
downloadPlugins {
url("https://ci.lucko.me/job/LuckPerms/lastBuild/artifact/bukkit/loader/build/libs/LuckPerms-Bukkit-5.4.130.jar")
url("https://ci.lucko.me/job/spark/lastBuild/artifact/spark-bukkit/build/libs/spark-1.10.66-bukkit.jar")
hangar("Plan-Player-Analytics", "5.6+build.2820")
modrinth("huskhomes", "4.6.2")
url("https://ci.lucko.me/job/LuckPerms/lastBuild/artifact/bukkit/loader/build/libs/LuckPerms-Bukkit-5.4.134.jar")
url("https://ci.lucko.me/job/spark/lastBuild/artifact/spark-bukkit/build/libs/spark-1.10.73-bukkit.jar")
hangar("Plan-Player-Analytics", "5.6+build.2883")
modrinth("huskhomes", "4.7")

// modrinth("dynmap", "5F9fwzR1")
// modrinth("pl3xmap", "1.20.4-478")
Expand Down

0 comments on commit c5e5788

Please sign in to comment.