i broke it this will need fixing

This commit is contained in:
2022-08-02 20:06:38 -05:00
parent 5e4cb5cd52
commit edaa8f7614
3 changed files with 8 additions and 17 deletions
+2 -7
View File
@@ -6,16 +6,11 @@ import dev.plex.data.SQLGuildManager;
import dev.plex.data.SQLManager;
import dev.plex.guild.Guild;
import dev.plex.guild.GuildHolder;
import dev.plex.handler.ChatHandlerImpl;
import dev.plex.listener.impl.ChatListener;
import dev.plex.module.PlexModule;
import dev.plex.storage.StorageType;
import dev.plex.util.PlexLog;
import io.papermc.paper.event.player.AsyncChatEvent;
import lombok.Getter;
import java.util.Arrays;
//TODO: Implement mongodb
@Getter
public class Guilds extends PlexModule
@@ -55,7 +50,7 @@ public class Guilds extends PlexModule
});
}
Plex.get().setChatHandler(new ChatHandlerImpl());
//Plex.get().setChat(new ChatHandlerImpl());
addDefaultMessage("guildsHelpCommand", "<gradient:gold:yellow>======</gradient>Guild Menu<gradient:gold:yellow>======</gradient><newline><newline>{0}", "0 - The commands list");
addDefaultMessage("guildsCommandDisplay", "<gold>{0} <yellow>{1}", "0 - The command name", "1 - The command description");
@@ -99,7 +94,7 @@ public class Guilds extends PlexModule
{
// Unregistering listeners / commands is handled by Plex
this.getGuildHolder().getGuilds().forEach(sqlGuildManager::updateGuild);
this.getPlex().setChatHandler(new ChatListener.ChatHandlerImpl());
//this.getPlex().setChat(new ChatListener.PlexChatRenderer());
}
public static Guilds get()