[Bug] trading screen command
EvilMask587 opened this issue Β· 3 comments
Minecraft and Mod version π
forge 1.20.1 and mod 5.6.0
Describe the bug π
Hi, i have a problem on my server with this mod, im install dialogues system and trying to open trading screen in this mod, but players [14:26:31] [Server thread/ERROR] [Easy NPC/]: [d4166b57-cde1-49f1-84e5-13667783f289:ServerPlayer['KseroCD'/7289, l='ServerLevel[world]', x=71.06, y=123.00, z=-64.94]] Player has no permission to access Humanoid['ΠΠΎΠ»'/39022, l='ServerLevel[world]', x=71.50, y=123.00, z=-64.50]!
[14:26:31] [Server thread/ERROR] [Easy NPC/]: [Access denied] Player ServerPlayer['KseroCD'/7289, l='ServerLevel[world]', x=71.06, y=123.00, z=-64.94] tried to access EasyNPC with UUID d4166b57-cde1-49f1-84e5-13667783f289!
Expected behavior βοΈ
when player write command they open the trading screen of npc from dialogue
Is the issue happening in combination with other mods? (If yes, please provide a full list) π§©
Blabber
Additional context π
Add any other context about the problem here.
Thank you for the report. Could you please provide more details on how the command is being triggered?
If the command is being triggered by Blabber, this behavior is expected.
Blabber executes commands as the player, not as the NPC or another entity.
According to the Blabber wiki:
... commands run from dialogue actions and commands run through execute as <player> ...
Reference: Blabber Documentation
This means you need to ensure that the command is executed as either an NPC or a player with the appropriate permissions. Dialogue commands are restricted to NPCs, their owners, Command Blocks, Functions, and OPs, to prevent players from exploiting the system by forcefully opening NPC dialogues.
In this case, I am unable to detect whether the command was executed by Blabber or if the source is a legitimate player.
This issue is stale because it has been open 7 days with no activity. Remove stale label or comment or this will be closed in 3 days.