Skip to content

チャットログをBungeeCordではなくspigot側のコンソールログに残したい。 #200

Closed

Description

@lee3kfc

Is your feature request related to a problem? Please describe.
BungeeCordにlunachatを入れてチャットを統括した場合に、全てのサーバーのログがBungeeCordに流れてしまい、各サーバーのログには残りません。個人的にはBungeeCordをチャットのログで汚すのは好ましくないと考えていますし、各サーバーのチャットの流れと他のログとを見るために、各サーバーごとにチャットのログが残るのが好ましいと思っています。

Describe the solution you'd like
バンジー側かサーバー側か、configにチャットのログを残す選択肢がほしい。

Describe alternatives you've considered
configで上記の設定が難しいのであれば、サーバー側でのみログを残すようにしてほしい。

Additional context
Waterfall366 + lunachat3.0,9 + LuckPerms 5.1.86
paperclip-131 + lunachat3.0.9 + Essentials 2.18.0
で、双方ともlunachatのconfigをデフォルトから下記3点を変更した状態で検証しました。
enableChannelChat: false
loggingChat: false
bungeePassThroughMode: true

また、この状態でbungee側のconfigで
displayChatOnConsole: false
とした場合に下記の警告が表示されます。
[13:36:51] [Netty Worker IO Thread #0/WARN]: Event PluginMessageEvent(super=TargetedEvent(sender=net.md_5.bungee.ServerConnection@51e66f2e, receiver=HANAGE), cancelled=false, tag=lunachat:message) took 354ms to process!

Activity

  1. ucchyocean commented on Aug 4, 2020

    @ucchyocean
    Owner

    bungeePassThroughModeの時に、Spigot側でチャットを処理したときに、コンソールに
     <プレイヤー表示名> 発言内容
    の様に表示したら解決します?

    また、「PluginMessageEvent took 354ms to process!」は、処理に時間がかかっているという警告なので無視してください。
    LunaChatは、GoogleIMEと通信してカナ漢字変換している都合上、処理にどうしても時間がかかります。

  2. lee3kfc commented on Aug 4, 2020

    @lee3kfc
    Author

    機能的には、誰がどのタイミングで何を発言したかがspigotのログを見て把握出来れば問題無いと思います。よろしくおねがいします。

  3. ucchyocean commented on Aug 4, 2020

    @ucchyocean
    Owner

    了解です。
    では、loggingNormalChatという設定を追加して、通常チャットの内容をログに記録するかどうかを選択できるようにしましょう。

    bungeePassThroughMode構成なら、BungeeCord側はloggingNormalChat=falseに、各Spigotサーバー側はloggingNormalChat=trueにすれば、ご所望の動作になります。

  4. self-assigned this
    on Aug 4, 2020
  5. lee3kfc commented on Aug 4, 2020

    @lee3kfc
    Author

    ありがとうございます。

  6. ucchyocean commented on Aug 4, 2020

    @ucchyocean
    Owner

    Fixed
    v3.0.10で動作確認OK

    設定名ですが、上記ではloggingNormalChatと記載しましたが、displayNormalChatOnConsoleに変更しました。ご了承ください。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions