diff --git a/src/main/java/com/kryeit/votifier/LogFilter.java b/src/main/java/com/kryeit/votifier/LogFilter.java deleted file mode 100644 index 1e81478..0000000 --- a/src/main/java/com/kryeit/votifier/LogFilter.java +++ /dev/null @@ -1,33 +0,0 @@ -package com.kryeit.votifier; - -import java.util.logging.Filter; -import java.util.logging.LogRecord; - -/** - * A custom log filter for prepending plugin identifier on all log messages. - * - * @author frelling - * - */ -class LogFilter implements Filter { - - private String prefix; - - /** - * Constructs a log filter that prepends the given prefix on all log - * messages. - * - * @param prefix - */ - public LogFilter(String prefix) { - this.prefix = prefix; - } - - /** - * Always returns true, but adds prefix to log message. - */ - public boolean isLoggable(LogRecord record) { - record.setMessage(prefix + record.getMessage()); - return true; - } -} diff --git a/src/main/java/com/kryeit/votifier/Votifier.java b/src/main/java/com/kryeit/votifier/Votifier.java index 1fcbbef..e3cc060 100644 --- a/src/main/java/com/kryeit/votifier/Votifier.java +++ b/src/main/java/com/kryeit/votifier/Votifier.java @@ -21,15 +21,12 @@ import com.kryeit.votifier.config.ConfigReader; import com.kryeit.votifier.crypto.RSAIO; import com.kryeit.votifier.crypto.RSAKeygen; -import com.kryeit.votifier.model.ListenerLoader; import com.kryeit.votifier.model.VoteListener; import com.kryeit.votifier.model.VotifierEvent; import com.kryeit.votifier.model.listeners.BasicVoteListener; import com.kryeit.votifier.net.VoteReceiver; import net.fabricmc.api.DedicatedServerModInitializer; import net.fabricmc.fabric.api.event.lifecycle.v1.ServerLifecycleEvents; -import net.fabricmc.fabric.api.event.lifecycle.v1.ServerWorldEvents; -import net.minecraft.world.World; import org.slf4j.Logger; import org.slf4j.LoggerFactory; diff --git a/src/main/java/com/kryeit/votifier/mixin/MinecraftServerMixin.java b/src/main/java/com/kryeit/votifier/mixin/MinecraftServerMixin.java index 8882d72..72ca3bf 100644 --- a/src/main/java/com/kryeit/votifier/mixin/MinecraftServerMixin.java +++ b/src/main/java/com/kryeit/votifier/mixin/MinecraftServerMixin.java @@ -1,7 +1,6 @@ package com.kryeit.votifier.mixin; import com.kryeit.votifier.MinecraftServerSupplier; -import com.kryeit.votifier.utils.JSONObject; import net.minecraft.server.MinecraftServer; import org.spongepowered.asm.mixin.Mixin; import org.spongepowered.asm.mixin.Shadow; @@ -9,11 +8,6 @@ import org.spongepowered.asm.mixin.injection.Inject; import org.spongepowered.asm.mixin.injection.callback.CallbackInfo; -import java.io.IOException; -import java.nio.file.Path; - -import static com.kryeit.votifier.config.ConfigReader.readOrCopyFile; - @Mixin(MinecraftServer.class) public abstract class MinecraftServerMixin { @Shadow public abstract void close(); diff --git a/src/main/java/com/kryeit/votifier/model/listeners/BasicVoteListener.java b/src/main/java/com/kryeit/votifier/model/listeners/BasicVoteListener.java index f2593be..0c22338 100644 --- a/src/main/java/com/kryeit/votifier/model/listeners/BasicVoteListener.java +++ b/src/main/java/com/kryeit/votifier/model/listeners/BasicVoteListener.java @@ -19,7 +19,6 @@ package com.kryeit.votifier.model.listeners; import com.kryeit.votifier.model.Vote; -import com.kryeit.votifier.model.VoteListener; import com.kryeit.votifier.model.VotifierEvent; import com.kryeit.votifier.utils.Utils;