fix command and refactoring config
This commit is contained in:
parent
b922f588d0
commit
fe64b3d51f
109 changed files with 4103 additions and 5403 deletions
|
|
@ -59,6 +59,7 @@ public final class LoChat extends JavaPlugin {
|
|||
// Команды и слушатели
|
||||
registerCommands();
|
||||
registerListeners();
|
||||
registerPluginChannels();
|
||||
|
||||
// Автосообщения
|
||||
autoMessageManager.start();
|
||||
|
|
@ -108,9 +109,11 @@ public final class LoChat extends JavaPlugin {
|
|||
getCommand("reply").setExecutor(new ReplyCommand(this));
|
||||
getCommand("ignore").setExecutor(new IgnoreCommand(this));
|
||||
getCommand("unignore").setExecutor(new UnignoreCommand(this));
|
||||
getCommand("ignorelist").setExecutor(new IgnoreListCommand(this));
|
||||
getCommand("announce").setExecutor(new AnnounceCommand(this));
|
||||
getCommand("chatspy").setExecutor(new ChatSpyCommand(this));
|
||||
getCommand("clearchat").setExecutor(new ClearChatCommand(this));
|
||||
getCommand("hub").setExecutor(new HubCommand(this));
|
||||
|
||||
NickCommand nickCmd = new NickCommand(this);
|
||||
getCommand("nick").setExecutor(nickCmd);
|
||||
|
|
@ -149,6 +152,11 @@ public final class LoChat extends JavaPlugin {
|
|||
getLogger().info("Слушатели зарегистрированы (новая архитектура)");
|
||||
}
|
||||
|
||||
private void registerPluginChannels() {
|
||||
getServer().getMessenger().registerOutgoingPluginChannel(this, "BungeeCord");
|
||||
getLogger().info("BungeeCord plugin messaging channel registered");
|
||||
}
|
||||
|
||||
public void reload() {
|
||||
configManager.reload();
|
||||
messageConfig.reload();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue