TriggerReactor

TriggerReactor

24.6k Downloads

v.3.0.1 issue: Walk triggers not working and creating malformed duplicate files

gmalone opened this issue ยท 2 comments

commented

Hi, I finally installed v.3.0.x (3.0.1) and have found an issue right off the bat.

I noticed that walk triggers weren't working in the main world -- weren't being triggered at all.

Looking into the WalkTrigger file folder I noticed an odd thing had happened. My main world has a hyphen (-) in its name and all of the walk trigger files for that world have been duplicated and truncated at the hyphen. Undoubtedly related to the new prefix system. See screengrabs below.

Before running 3.0.x for first time:
TR-walktrigger-issues-BEFORE-3 0 1

After running 3.0.x for first time:
TR-walktrigger-issues-AFTER-3 01

The original file w/ the correct world name remains in place, but isn't executed, obviously because it's interpreting the pre-hyphen substring as a prefix to a world that doesn't exist.

I will not use a hyphen in a world name again (for many reasons, not just this one), but I'm wondering if an underscore should be the only prefix delimiter. Or not. :)

Running Paper 1.14.4
Kindly advise. Thanks.

UPDATE
The file duplication has also happened in the ClickTrigger folder, of course.
I'm considering renaming my hyphenated worlds, and changing all references to them server-wide.

commented

@gmalone
I didn't expect this coming since I thought the pre-hyphens are not allowed for world name (it usually underscores like as world_nether)

I will try to figure out how to fix this problem.

commented

Apparently hyphens are allowed in world names -- at least it has worked for me.

I am now renaming my worlds removing hyphens and updating all references. Not a problem.

One simple solution might be to add a single config item:
hyphen-prefix-separator: false
then it's the user's responsibility to enable with true and use a hyphen. Of course, mention it in the wiki.