Send discord config in dump even when plugin is disabled

This commit is contained in:
Lax 2021-11-17 16:15:02 -08:00 committed by GitHub
parent 680d3230ea
commit 5723dac6ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -291,7 +291,7 @@ public class Commandessentials extends EssentialsCommand {
} }
} }
if (discord && essDiscord != null && essDiscord.isEnabled()) { if (discord && essDiscord != null) {
try { try {
files.add(new PasteUtil.PasteFile("discord-config.yml", files.add(new PasteUtil.PasteFile("discord-config.yml",
new String(Files.readAllBytes(essDiscord.getDataFolder().toPath().resolve("config.yml")), StandardCharsets.UTF_8) new String(Files.readAllBytes(essDiscord.getDataFolder().toPath().resolve("config.yml")), StandardCharsets.UTF_8)