Mc2Discord icon indicating copy to clipboard operation
Mc2Discord copied to clipboard

Null Pointer Exception

Open Valvify opened this issue 3 years ago • 7 comments

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

Valvify avatar Oct 02 '22 15:10 Valvify

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

DenisD3D avatar Oct 02 '22 15:10 DenisD3D

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: @.***>

Valvify avatar Oct 02 '22 18:10 Valvify

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) ?

DenisD3D avatar Oct 02 '22 18:10 DenisD3D

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.

Valvify avatar Oct 02 '22 18:10 Valvify

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.

DenisD3D avatar Oct 02 '22 18:10 DenisD3D

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: @.***>

Valvify avatar Oct 04 '22 22:10 Valvify

Will investigate

DenisD3D avatar Oct 06 '22 17:10 DenisD3D

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

DenisD3D avatar Nov 22 '22 20:11 DenisD3D

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

Valvify avatar Nov 23 '22 11:11 Valvify

Fixed 4.0.0

DenisD3D avatar Jul 27 '23 23:07 DenisD3D