diff --git a/src/main/java/net/clementraynaud/skoice/listeners/self/SelfUpdateMFAListener.java b/src/main/java/net/clementraynaud/skoice/listeners/self/SelfUpdateMFAListener.java deleted file mode 100644 index 073b91f5..00000000 --- a/src/main/java/net/clementraynaud/skoice/listeners/self/SelfUpdateMFAListener.java +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright 2020, 2021, 2022, 2023, 2024 Clément "carlodrift" Raynaud, Lucas "Lucas_Cdry" Cadiry and contributors - * - * This file is part of Skoice. - * - * Skoice is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * Skoice is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with Skoice. If not, see . - */ - -package net.clementraynaud.skoice.listeners.self; - -import net.clementraynaud.skoice.Skoice; -import net.dv8tion.jda.api.events.self.SelfUpdateMFAEvent; -import net.dv8tion.jda.api.hooks.ListenerAdapter; - -public class SelfUpdateMFAListener extends ListenerAdapter { - - private final Skoice plugin; - - public SelfUpdateMFAListener(Skoice plugin) { - this.plugin = plugin; - } - - @Override - public void onSelfUpdateMFA(SelfUpdateMFAEvent event) { - this.plugin.getListenerManager().update(); - } -} diff --git a/src/main/java/net/clementraynaud/skoice/system/ListenerManager.java b/src/main/java/net/clementraynaud/skoice/system/ListenerManager.java index 9bd7402a..44eabe39 100644 --- a/src/main/java/net/clementraynaud/skoice/system/ListenerManager.java +++ b/src/main/java/net/clementraynaud/skoice/system/ListenerManager.java @@ -39,7 +39,6 @@ import net.clementraynaud.skoice.listeners.player.PlayerJoinListener; import net.clementraynaud.skoice.listeners.player.PlayerQuitListener; import net.clementraynaud.skoice.listeners.role.update.RoleUpdatePermissionsListener; -import net.clementraynaud.skoice.listeners.self.SelfUpdateMFAListener; import net.clementraynaud.skoice.listeners.server.ServerCommandListener; import net.clementraynaud.skoice.menus.ConfigurationMenus; import net.clementraynaud.skoice.menus.EmbeddedMenu; @@ -115,7 +114,6 @@ public void registerPermanentBotListeners() { new GuildJoinListener(this.plugin), new GuildLeaveListener(this.plugin), new GuildUpdateMFALevelListener(this.plugin), - new SelfUpdateMFAListener(this.plugin), new GuildMemberRemoveListener(this.plugin), new GuildMemberRoleAddListener(this.plugin), new GuildMemberRoleRemoveListener(this.plugin),