add custom chat handling

This commit is contained in:
Taah 2022-05-07 15:52:04 -07:00
parent 46c84527df
commit e1384b4118

View File

@ -5,6 +5,7 @@ import dev.plex.data.SQLGuildManager;
import dev.plex.data.SQLManager; import dev.plex.data.SQLManager;
import dev.plex.guild.Guild; import dev.plex.guild.Guild;
import dev.plex.guild.GuildHolder; import dev.plex.guild.GuildHolder;
import dev.plex.handler.ChatHandlerImpl;
import dev.plex.listener.impl.ChatListener; import dev.plex.listener.impl.ChatListener;
import dev.plex.module.PlexModule; import dev.plex.module.PlexModule;
import dev.plex.storage.StorageType; import dev.plex.storage.StorageType;
@ -47,6 +48,8 @@ public class Guilds extends PlexModule
}); });
} }
this.getPlex().setChatHandler(new ChatHandlerImpl());
this.addDefaultMessage("guildsHelpCommand", "<gradient:gold:yellow>======</gradient>Guild Menu<gradient:gold:yellow>======</gradient><newline>\n" + this.addDefaultMessage("guildsHelpCommand", "<gradient:gold:yellow>======</gradient>Guild Menu<gradient:gold:yellow>======</gradient><newline>\n" +
"<newline><gold>/guild <gray>Returns this menu\n" + "<newline><gold>/guild <gray>Returns this menu\n" +