DenisD3D / Mc2Discord

Link your Minecraft server chat with your Discord (75k downloads)
https://modrinth.com/mod/mc2discord
Apache License 2.0
43 stars 11 forks source link

Null Pointer Exception #69

Closed Valvify closed 1 year ago

Valvify commented 1 year ago

Describe the bug

Server Log: https://gist.github.com/Valvify/d377ff38361e09aab044cab91efd27ed

Config File: https://gist.github.com/Valvify/6d7b7de9c8616d0f8a66b6f9ee8dd8f4

Would also like to know how I can allow someone on Discord to use any command rather than just select ones. Thanks!

Your config file

No response

DenisD3D commented 1 year ago

Hi, Which mc version are you using ? And when does this happend ?

For allowing all commands you can set the permission_level to 4 rather to -1 (-1 meaning none, other value being mc permission level)

Denis

Valvify commented 1 year ago

Minecraft 1.16.5 and Forge 36.2.26

On Sun, 2 Oct 2022 at 16:06, DenisD3D @.***> wrote:

Hi, Which mc version are you using ?

For allowing all commands you can set the permission_level to 4 rather to -1 (-1 meaning none, other value being mc permission level)

Denis

— Reply to this email directly, view it on GitHub https://github.com/DenisD3D/Mc2Discord/issues/69#issuecomment-1264664902, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACOYKMVQZN4FPZUIGKZE6PLWBGQH3ANCNFSM6AAAAAAQ26APEE . You are receiving this because you authored the thread.Message ID: @.***>

DenisD3D commented 1 year ago

When does this happend (i.e. server boot, every x minutes) ? Is it just a console error or does it have more effect (e.g. server crash) ? Does the bot show the number of players in its presence message (playing at message) ?

Valvify commented 1 year ago

It happens on server boot, once it's ready.

It seems to crash the server or at least overload it because I'm unable to join. It keeps sending that same crash log in the console. The bot does show as online when the server is on and has the correct presence message.

DenisD3D commented 1 year ago

Does the bot status show as playing or competing ? The error might be comming from the type = "COMPETING" in your presence message config. Try to revert it back to the default PLAYING value. Maybe Discord doesn't allow this value anymore.

Valvify commented 1 year ago

Sorry for the late reply. Unfortunately changing it to PLAYING didn’t fix the issue. It does show as competing in Discord.

On Sun, 2 Oct 2022 at 19:51, DenisD3D @.***> wrote:

Does the bot status show as playing or competing ? The error might be comming from the type = "COMPETING" in your presence message config. Try to revert it back to the default PLAYING value. Maybe Discord doesn't allow this value anymore.

— Reply to this email directly, view it on GitHub https://github.com/DenisD3D/Mc2Discord/issues/69#issuecomment-1264709185, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACOYKMU7ZZFM4G5EMG5QUDLWBHKT3ANCNFSM6AAAAAAQ26APEE . You are receiving this because you authored the thread.Message ID: @.***>

DenisD3D commented 1 year ago

Will investigate

DenisD3D commented 1 year ago

Hi, I'm curently investigating for your issue and i can't manage to find the causes. Could you try switching off the logging features to see if it resolves the issue ? Could you also provide the server provider you are using to host server ? (Name of the provider, could also be your own computer) Thanks Denis

Valvify commented 1 year ago

Hi there.

I won't be able to help you with the first question just yet; I'll get back in touch.

As for the server provider, I'm hosting my own instance using Oracle Cloud. Ubuntu 22.04.1 LTS, aarch64

DenisD3D commented 1 year ago

Fixed 4.0.0