-
-
Notifications
You must be signed in to change notification settings - Fork 995
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
NPE when chat.show-webhook-messages
is enabled and a webhook sends a message
#4451
Labels
bug: confirmed
Confirmed bugs in EssentialsX.
module: discord
Issues or PRs for the EssentialsDiscord module
Milestone
Comments
JRoy
added
bug: confirmed
Confirmed bugs in EssentialsX.
module: discord
Issues or PRs for the EssentialsDiscord module
labels
Aug 9, 2021
mdcfe
pushed a commit
that referenced
this issue
Aug 9, 2021
Co-authored-by: MD <1917406+mdcfe@users.noreply.github.com> Fixes #4451.
GenSecrets
added a commit
to GenSecrets/Essentials
that referenced
this issue
Sep 3, 2021
commit fde6524 Author: MD <1917406+mdcfe@users.noreply.github.com> Date: Wed Sep 1 18:37:46 2021 +0100 Fix error with commands ending in single colon (EssentialsX#4508) Co-authored-by: Josh Roy <10731363+JRoy@users.noreply.github.com> commit b288696 Author: triagonal <10545540+triagonal@users.noreply.github.com> Date: Thu Sep 2 03:33:43 2021 +1000 Update to bStats v2 (EssentialsX#4350) Co-authored-by: MD <1917406+mdcfe@users.noreply.github.com> Co-authored-by: Josh Roy <10731363+JRoy@users.noreply.github.com> commit 19ca518 Author: Josh Roy <10731363+JRoy@users.noreply.github.com> Date: Wed Sep 1 05:26:54 2021 -0700 Replace unneeded inputs with new /ess dump in issue template (EssentialsX#4479) Co-authored-by: MD <1917406+mdcfe@users.noreply.github.com> commit b86a34c Author: Josh Roy <10731363+JRoy@users.noreply.github.com> Date: Wed Sep 1 04:55:37 2021 -0700 Prepare for 2.19.1 dev builds (EssentialsX#4505) commit d145fbc Author: MD <1917406+mdcfe@users.noreply.github.com> Date: Tue Aug 31 21:27:35 2021 +0100 Require forceSign property even on releases commit 3ca960e Author: Josh Roy <10731363+JRoy@users.noreply.github.com> Date: Tue Aug 31 13:04:34 2021 -0400 Release 2.19.0 commit 8bbaf7d Author: MD <1917406+mdcfe@users.noreply.github.com> Date: Tue Aug 31 16:53:09 2021 +0100 Update Gradle to 7.2; set run-paper to 1.17.1 with toolchain (EssentialsX#4496) :chatting: commit 14c2ab5 Author: Josh Roy <10731363+JRoy@users.noreply.github.com> Date: Tue Aug 31 08:34:10 2021 -0700 Add online mode data for /ess dump (EssentialsX#4497) EssentialsX/Website#60 commit 6f20a78 Author: Josh Roy <10731363+JRoy@users.noreply.github.com> Date: Tue Aug 31 08:28:44 2021 -0700 Delete (& backup) invalid NPC accounts created by poor econ code (EssentialsX#4490) Co-authored-by: MD <1917406+mdcfe@users.noreply.github.com> my magnum opus --- * Delete (& backup) invalid NPC accounts created by poor econ code * Add feedback for large migrations * Improve feedback messages - Improve the wording of console messages - Include details about how to resume purging userdata in case it gets interrupted - Scale the message delay based on the number of userdata files to be processed - Always cancel the repeating task and shut down the executor when we're done * Update Essentials/src/main/java/com/earth2me/essentials/EssentialsUpgrade.java * Add less ranty context to rant At least I had caffeine before writing this commit 4bee159 Author: Josh Roy <10731363+JRoy@users.noreply.github.com> Date: Sat Aug 28 09:32:45 2021 -0700 Fix economy usernames being unsanitized in some places (EssentialsX#4484) Co-authored-by: MD <1917406+mdcfe@users.noreply.github.com> This PR fixes various issues with NPC accounts: - Fixes some NPC account names not being sanitised - Fixes wrong keys being used when manually generating a NPC account file - Adds some debug logging to `UserMap` name lookups commit e4c179f Author: pop4959 <pop4959@gmail.com> Date: Sat Aug 28 08:46:38 2021 -0700 Allow auto equip in nbt serialized kits (EssentialsX#4491) Co-authored-by: Josh Roy <10731363+JRoy@users.noreply.github.com> commit 4811eb1 Author: Josh Roy <10731363+JRoy@users.noreply.github.com> Date: Fri Aug 27 13:50:41 2021 -0700 Fix /ess dump on 1.8.8 (EssentialsX#4489) Fixes EssentialsX#4487 pain commit 69850d8 Author: Josh Roy <10731363+JRoy@users.noreply.github.com> Date: Thu Aug 26 13:12:52 2021 -0700 Fix NoClassDefFoundError on < 1.12 with Discord execute command (EssentialsX#4478) commit df88a89 Author: Josh Roy <10731363+JRoy@users.noreply.github.com> Date: Thu Aug 26 13:09:16 2021 -0700 Add missing translation for argument pipe color (EssentialsX#4480) commit c746a1c Author: Josh Roy <10731363+JRoy@users.noreply.github.com> Date: Tue Aug 24 03:35:53 2021 -0700 Bump Configurate (EssentialsX#4475) Some performance improvements, <3 zml commit ecdaed7 Author: Flask Bot <67512990+Flask-Bot@users.noreply.github.com> Date: Thu Aug 19 21:11:35 2021 +0100 New Crowdin updates (EssentialsX#4281) commit c062651 Author: CyberKitsune <920550+cyberkitsune@users.noreply.github.com> Date: Thu Aug 19 13:00:06 2021 -0700 Add option for tab complete to use displaynames (EssentialsX#4432) Co-authored-by: MD <1917406+mdcfe@users.noreply.github.com> This feature adds a new configuration option, `change-tab-complete-name` When `change-tab-complete-name` is turned on, `getPlayers()` in `EssentialsCommand` will use `getDisplayName()` instead of `getName()`; populating the list with display names instead of player names. Closes EssentialsX#4431. commit 3692740 Author: Josh Roy <10731363+JRoy@users.noreply.github.com> Date: Thu Aug 19 12:35:19 2021 -0700 Add `/ess dump` command to generate a debug dump output (EssentialsX#4361) Co-authored-by: MD <1917406+mdcfe@users.noreply.github.com> Command usage: /essentials dump [config] [discord] [kits] [log] Either of the optional args can be used to add the given data to the dump. Related: EssentialsX/Website#51 commit 1179caa Author: Josh Roy <10731363+JRoy@users.noreply.github.com> Date: Thu Aug 12 04:37:19 2021 -0700 Fix bot-command-relay option not ignoring itself (EssentialsX#4453) commit 35b1a28 Author: Josh Roy <10731363+JRoy@users.noreply.github.com> Date: Tue Aug 10 07:51:33 2021 -0700 Fix improper MOTD delay check (EssentialsX#4454) commit 36432c6 Author: Josh Roy <10731363+JRoy@users.noreply.github.com> Date: Mon Aug 9 14:30:30 2021 -0700 Fix NPE on webhooks messages with show-webhook-messages enabled (EssentialsX#4452) Co-authored-by: MD <1917406+mdcfe@users.noreply.github.com> Fixes EssentialsX#4451. commit 871e718 Author: Josh Roy <10731363+JRoy@users.noreply.github.com> Date: Mon Aug 9 13:23:49 2021 -0700 Add online/unique placeholders to join/leave formats for discord (EssentialsX#4427) commit 4229359 Author: Josh Roy <10731363+JRoy@users.noreply.github.com> Date: Mon Aug 9 12:56:38 2021 -0700 Add config option to disable verbose usage strings (EssentialsX#4396) Co-authored-by: MD <1917406+mdcfe@users.noreply.github.com> ```yml # Whether or not Essentials should show detailed command usages. # If set to false, Essentials will collapse all usages in to one single usage message. verbose-command-usages: true ``` This PR also fixes a regression in legacy usage strings where the `<command>` wasn't replaced. commit ac8a13f Author: Josh Roy <10731363+JRoy@users.noreply.github.com> Date: Mon Aug 9 12:48:43 2021 -0700 Add name parameter for Discord avatar URL (EssentialsX#4369) Allows offline mode/Geyser users to configure their own avatar URL using a service that accepts usernames. commit d56ecaa Author: Josh Roy <10731363+JRoy@users.noreply.github.com> Date: Mon Aug 9 12:39:55 2021 -0700 Allow world name fallback for LazyLocation (EssentialsX#4428) Co-authored-by: MD <1917406+mdcfe@users.noreply.github.com> commit 14fbfe3 Author: Josh Roy <10731363+JRoy@users.noreply.github.com> Date: Mon Aug 9 12:22:09 2021 -0700 Allow disabling MOTD task and cancel on player logout (EssentialsX#4411) This PR allows setting `delay-motd` to a negative value in `config.yml` to disable the MOTD join task without disabling `/motd`, and fixes an issue where delayed MOTD tasks would run even after a player logged out (in case someone previously set an insanely high MOTD delay to "disable" the MOTD on join). Fixes EssentialsX#4408. commit 5334a3f Author: Josh Roy <10731363+JRoy@users.noreply.github.com> Date: Mon Aug 9 12:14:15 2021 -0700 Move update check message out of MOTD task (EssentialsX#4410) Update message will now show after mail, and will not be affected by insane MOTD delays. commit 2fa9c64 Author: Josh Roy <10731363+JRoy@users.noreply.github.com> Date: Mon Aug 9 11:59:36 2021 -0700 Fix disabled-commands not removing aliases (EssentialsX#4399) Fixes EssentialsX#4383, an issue where only the main command name is disabled instead of the alias specified in `config.yml`. commit c221e96 Author: Josh Roy <10731363+JRoy@users.noreply.github.com> Date: Mon Aug 9 11:57:03 2021 -0700 Make discord chat format world name use world alias (EssentialsX#4419) commit 26c016f Author: Josh Roy <10731363+JRoy@users.noreply.github.com> Date: Mon Aug 9 11:48:01 2021 -0700 Add config option to allow webhooks/bots to send commands (EssentialsX#4442) ```yml # Console relay settings # The console relay sends every message shown in the console to a Discord channel. console: ... # Set to true if bots/webhooks should be able to send commands through the command relay. bot-command-relay: false ``` commit b6a08ec Author: Josh Roy <10731363+JRoy@users.noreply.github.com> Date: Mon Aug 9 11:44:13 2021 -0700 Fix force-disable-teleport-safety enforcing world border (EssentialsX#4371) commit 9179c6c Author: Josh Roy <10731363+JRoy@users.noreply.github.com> Date: Mon Aug 9 11:38:04 2021 -0700 Update EssXDiscord tutorial for new developer mode location (EssentialsX#4409) commit 3f9aceb Author: Josh Roy <10731363+JRoy@users.noreply.github.com> Date: Sat Aug 7 17:22:12 2021 -0400 Add DiscordService#sendChatMessage Allows plugins to send messages to the chat channel via API using the format from our config commit 3da8efa Author: Josh Roy <10731363+JRoy@users.noreply.github.com> Date: Sat Aug 7 11:40:06 2021 -0400 Fix incorrect parameter name for allowGroupMentions
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
Labels
bug: confirmed
Confirmed bugs in EssentialsX.
module: discord
Issues or PRs for the EssentialsDiscord module
Discussed in #4450
Originally posted by MageFX August 9, 2021
I am unable to find the origin of member? This is currently spamming my console constantly.
[13:57:17 ERROR]: [net.essentialsx.dep.net.dv8tion.jda.api.JDA] One of the EventListeners had an uncaught exception java.lang.NullPointerException: Cannot invoke "net.essentialsx.dep.net.dv8tion.jda.api.entities.Member.hasPermission(net.essentialsx.dep.net.dv8tion.jda.api.Permission[])" because "member" is null at net.essentialsx.discord.util.DiscordUtil.hasRoles(DiscordUtil.java:176) ~[?:?] at net.essentialsx.discord.listeners.DiscordListener.onGuildMessageReceived(DiscordListener.java:76) ~[?:?] at net.essentialsx.dep.net.dv8tion.jda.api.hooks.ListenerAdapter.onEvent(ListenerAdapter.java:481) ~[?:?] at net.essentialsx.dep.net.dv8tion.jda.api.hooks.InterfacedEventManager.handle(InterfacedEventManager.java:96) ~[?:?] at net.essentialsx.dep.net.dv8tion.jda.internal.hooks.EventManagerProxy.handleInternally(EventManagerProxy.java:88) ~[?:?] at net.essentialsx.dep.net.dv8tion.jda.internal.hooks.EventManagerProxy.handle(EventManagerProxy.java:70) ~[?:?] at net.essentialsx.dep.net.dv8tion.jda.internal.JDAImpl.handleEvent(JDAImpl.java:160) ~[?:?] at net.essentialsx.dep.net.dv8tion.jda.internal.handle.MessageCreateHandler.handleInternally(MessageCreateHandler.java:97) ~[?:?] at net.essentialsx.dep.net.dv8tion.jda.internal.handle.SocketHandler.handle(SocketHandler.java:36) ~[?:?] at net.essentialsx.dep.net.dv8tion.jda.internal.requests.WebSocketClient.onDispatch(WebSocketClient.java:952) ~[?:?] at net.essentialsx.dep.net.dv8tion.jda.internal.requests.WebSocketClient.onEvent(WebSocketClient.java:839) ~[?:?] at net.essentialsx.dep.net.dv8tion.jda.internal.requests.WebSocketClient.handleEvent(WebSocketClient.java:817) ~[?:?] at net.essentialsx.dep.net.dv8tion.jda.internal.requests.WebSocketClient.onBinaryMessage(WebSocketClient.java:990) ~[?:?] at net.essentialsx.dep.com.neovisionaries.ws.client.ListenerManager.callOnBinaryMessage(ListenerManager.java:385) ~[?:?] at net.essentialsx.dep.com.neovisionaries.ws.client.ReadingThread.callOnBinaryMessage(ReadingThread.java:276) ~[?:?] at net.essentialsx.dep.com.neovisionaries.ws.client.ReadingThread.handleBinaryFrame(ReadingThread.java:996) ~[?:?] at net.essentialsx.dep.com.neovisionaries.ws.client.ReadingThread.handleFrame(ReadingThread.java:755) ~[?:?] at net.essentialsx.dep.com.neovisionaries.ws.client.ReadingThread.main(ReadingThread.java:108) ~[?:?] at net.essentialsx.dep.com.neovisionaries.ws.client.ReadingThread.runMain(ReadingThread.java:64) ~[?:?] at net.essentialsx.dep.com.neovisionaries.ws.client.WebSocketThread.run(WebSocketThread.java:45) ~[?:?]
The text was updated successfully, but these errors were encountered: