Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@
package org.mvplugins.multiverse.signportals;

import com.dumptruckman.minecraft.util.Logging;
import org.jetbrains.annotations.NotNull;
import org.mvplugins.multiverse.core.config.CoreConfig;
import org.mvplugins.multiverse.core.inject.PluginServiceLocator;
import org.mvplugins.multiverse.core.module.MultiverseModule;
import org.mvplugins.multiverse.core.utils.StringFormatter;
import org.jvnet.hk2.annotations.Service;
import org.mvplugins.multiverse.signportals.listeners.SignPortalsListener;

import java.util.logging.Level;
import java.util.logging.Logger;

@Service
public class MultiverseSignPortals extends MultiverseModule {
Expand All @@ -31,13 +31,12 @@ public void onLoad() {

@Override
public void onEnable() {
Logging.init(this);

initializeDependencyInjection(new MultiverseSignPortalsPluginBinder(this));
registerEvents(SignPortalsListener.class);
Logging.setDebugLevel(serviceLocator.getActiveService(CoreConfig.class).getGlobalDebug());
registerEvents(SignPortalsListener.class);

Logging.log(true, Level.INFO, " Enabled - By %s", StringFormatter.joinAnd(getDescription().getAuthors()));
Logging.config("Version %s (API v%s) Enabled - By %s",
this.getDescription().getVersion(), getVersionAsNumber(), StringFormatter.joinAnd(this.getDescription().getAuthors()));
}

@Override
Expand All @@ -54,4 +53,9 @@ public String getVersionInfo() {
public double getTargetCoreVersion() {
return TARGET_CORE_API_VERSION;
}

@Override
public @NotNull Logger getLogger() {
return Logging.getLogger();
}
}
Loading