plugCubed/plugAPI

Unknown message format

Closed this issue · 3 comments

When a moderator ban an user, I get this message :

21 Jun 20:15:27 [WARNING]  [plugAPI]  UNKNOWN MESSAGE FORMAT
 {
    "a": "modBan",
    "p": {
        "m": "As2piK",
        "mi": 4282601,
        "t": "MC_盧moo",
        "d": "f"
    },
    "s": "as2pik-2"
}

Unknown Message Format is when we don't log or handle one of plug's events. Those can be ignored. Unless someone wants me to add a notification in the console for bans.

In the wiki, modBan is an event, so you can't remove the "unknown message format" for this ?

https://github.com/plugCubed/plugAPI/blob/master/src/client.js#L877

I can add it to the list of events plugAPI does not need to handle or log when I get the time.