Added missing config.save() if config does not exist (Discord).
This commit is contained in:
@@ -3,6 +3,7 @@ package com.redstoner.modules.discord;
|
||||
import java.io.IOException;
|
||||
import java.security.SecureRandom;
|
||||
|
||||
import com.redstoner.exceptions.NonSaveableConfigException;
|
||||
import org.bukkit.command.CommandSender;
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
@@ -51,6 +52,10 @@ public class Discord implements Module {
|
||||
config.put("table", "discord");
|
||||
config.put("inviteLink", "https://discord.gg/example");
|
||||
|
||||
try {
|
||||
config.save();
|
||||
} catch (IOException | NonSaveableConfigException e) {}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user