Flemmli97 / Flan

Fabric Landclaiming Mod
80 stars 34 forks source link

Adding fakeplayer using generated command results in error. #268

Closed ShelLuser closed 6 months ago

ShelLuser commented 8 months ago

Modloader

Forge

Minecraft version

1.18.2

Modloader version

40.2.14

Mod version

1.8.11

Description

First of all I'd like to share how impressed and satisfied we are with FLAN, it truly is an amazing mod to use; it saved us from many accidental mishaps.

The issue: My friend and me build an automated harverster contraption using the Create mod. As soon as the 'Mechanical Plough' hits her farmland she gets a warning in chat about "a fakeplayer tried to interact with your claim" which is followed by a clickable link ("click here while standing in your claim to add the fakeplayer to the claim").

So far so good, but when she clicks the link an error is triggered; it seems the fakePlayer command doesn't accept any parameters. This is the command that got generated: "/flan fakePlayer add 9e2faded-eeee-4ec2-c314-dad129ae971d", however the chat syntax immediately shows everything after fakePlayer in red, thus indicating a wrong command.

However, the thing which puzzles us is that the fakeplayer menu interaction also doesn't seem to allow the addition of this UUID for some reason; it stalls for a moment and then closes the add dialog and nothing gets added.

Steps to reproduce

  1. Make sure the claim is protected against block interaction.
  2. Make a Create contraption interact with the claim; this will trigger the warning about a fakeplayer interacting with the claim.
  3. Click the link which allows you to add the fake player; this will result in an error message.

Mods that might affect the issue

No response

Logs

Link to the log paste (2 lines) => https://gist.github.com/ShelLuser/c22ed8a219c06cd41f57bbf79c93554f