LMBishop / Quests

Questing plugin for Minecraft, enabling the addition of goals for players.
https://www.spigotmc.org/resources/23696/
GNU General Public License v3.0
165 stars 80 forks source link

- & _ is not allowed in latest devbuild, the support was been added in last release #683

Open itsme-to opened 1 week ago

itsme-to commented 1 week ago

Description of Bug

In the latest devbuild, you can't use anymore _ & - inside quest id. It's maybe related to that commit, https://github.com/LMBishop/Quests/commit/aea66501e1019162bb670aa0f97761f637bae847

The support of - and _ was added on this one https://github.com/LMBishop/Quests/commit/a184e76053aa55df4fb5f156fa6c5c0ecb8f811d

Steps to Reproduce

Use the latest devbuild and try to create a quest with _ or - in the name

Environment

Agreements

Other

No response

itsme-to commented 1 week ago

@svaningelgem if you want to make this really nice feature back again <3

Krakenied commented 1 week ago

_ can't be supported because it wont work with placeholders

itsme-to commented 1 week ago

_ can't be supported because it wont work with placeholders I see, so - will work ?

svaningelgem commented 1 week ago

_ can't be supported because it wont work with placeholders

Is it possible to get a bit of insight on how this placeholders work together with _? So I can maybe think of another way around it (if at all possible)?

itsme-to commented 1 week ago

CleanShot 2024-06-27 at 15 41 36

Yeah don't working fine currently

Krakenied commented 1 week ago

placeholder API hook uses _ delimiter for splitting

Krakenied commented 1 week ago

maybe - can be supported safely, i need to check that though

itsme-to commented 1 week ago

maybe - can be supported safely, i need to check that though

Yes, without too much trouble, and it's still much simpler visually.

CleanShot 2024-06-28 at 12 41 36@2x CleanShot 2024-06-28 at 12 41 40@2x It's way better

itsme-to commented 1 week ago

In the latest release, Papi placeholders work well with -, so it's really just the check that's causing issues in the latest dev build.

CleanShot 2024-06-28 at 12 44 39

Krakenied commented 1 week ago

Ill try implementing it in a more proper way

Krakenied commented 1 week ago

Currently I will give you a temporary fix, however it still needs to be fixed in a more proper way so we can allow _ usage as well lol artifacts.zip

itsme-to commented 5 days ago

Great it's work fine, can you add it to the dev build ? So my client can use it as well ?

itsme-to commented 5 days ago

Oh great, I didn't see it

t4ba commented 1 day ago

possible to add _ back ?

Krakenied commented 15 hours ago

possible to add _ back ?

But there is no way to make it work properly with placeholders