diff --git a/src/main/java/eu/m724/tweaks/module/motd/MotdModule.java b/src/main/java/eu/m724/tweaks/module/motd/MotdModule.java index 4962f02..63f1b6c 100644 --- a/src/main/java/eu/m724/tweaks/module/motd/MotdModule.java +++ b/src/main/java/eu/m724/tweaks/module/motd/MotdModule.java @@ -7,7 +7,8 @@ package eu.m724.tweaks.module.motd; import com.comphenix.protocol.PacketType; -import com.comphenix.protocol.events.*; +import com.comphenix.protocol.events.InternalStructure; +import com.comphenix.protocol.events.PacketContainer; import com.comphenix.protocol.reflect.StructureModifier; import com.google.gson.JsonElement; import com.google.gson.JsonParseException; @@ -22,6 +23,7 @@ import net.minecraft.network.chat.Component; import net.minecraft.network.protocol.status.ServerStatus; import java.io.IOException; +import java.nio.file.FileAlreadyExistsException; import java.nio.file.Files; import java.nio.file.Path; import java.util.Arrays; @@ -36,6 +38,8 @@ public class MotdModule extends TweaksModule { // create "motd sets" directory try { Files.createDirectories(motdSetPath); + } catch (FileAlreadyExistsException ignored) { + } catch (IOException e) { throw new RuntimeException(e); }