APickledWalrus / skript-placeholders

Placeholder integration for Skript.
GNU General Public License v3.0
28 stars 8 forks source link

Upon server start, we need to manually reload the scripts that contain the placeholder information to get them to appear. #54

Open Asleeepp opened 5 months ago

Asleeepp commented 5 months ago

Description

Upon server start, we need to manually reload the scripts that contain the placeholders to get them to appear. We use actionbars/bossbars that depend on placeholders, This did not happen in previous versions, kinda annoying.

Steps to Reproduce

Restart server, look at action/bossbars and it will just say %[placeholder]%

Expected Behavior

To preload the placeholders, like previous versions

Errors / Screenshots

https://github.com/APickledWalrus/skript-placeholders/assets/119438940/66d488f2-3ca7-4f45-ae9d-1d8de86d153c

No console logs.

Server Information

Additional Context

APickledWalrus commented 4 months ago

Sorry for not getting back to you sooner. Are you still experiencing this issue? Are you able to see in PAPI whether the Skript-created expansions are registered?

Asleeepp commented 3 months ago

Sorry for not getting back to you sooner. Are you still experiencing this issue? Are you able to see in PAPI whether the Skript-created expansions are registered?

Oh sorry, I completely forgot about this thread, since I went back to using 1.5.2 as this issue isn't present on that version. I'll test a little bit later.

Edit: It SEEMS to have fixed itself somehow? I'll do some more digging.

Edit 2: I think the newer versions of PAPI fixed the issue.

Asleeepp commented 3 months ago

Actually, a variation of this popped up it seems like. I don't know if this is actually a papi issue or a skript-placeholders issue but switching worlds doesnt seem to load the placeholders now, and then returns with a reload of the skript that contains the event, like what i had to do in the video in the original issue

APickledWalrus commented 3 months ago

And is that on the latest version of this addon? Are you able to tell if this issue occurs with other placeholders? When the placeholders aren't working, does the skript-placeholders registered expansion appear in the placeholder api expansions list?

Asleeepp commented 3 months ago

Ive rejoined the server a couple hours later, and the issue that originally started this issue occured again

And is that on the latest version of this addon?

Yes, it is.

When the placeholders aren't working, does the skript-placeholders registered expansion appear in the placeholder api expansions list?

Yes.

APickledWalrus commented 2 months ago

Sorry I never got back to you. Do any other placeholders give you this issue? It seems odd that they are not updating but the expansion is still registered. I'll try and do some testing to see if I can replicate this issue.

m-surowiec commented 2 months ago

@APickledWalrus I'm also running into the same problem. After restarting the server, the on papi request event just doesn't trigger at all. I've got a simple script that's supposed to broadcast some values, but it doesn't do anything until I manually reload the script.

Here's the code snippet I'm using for testing:

on papi request with prefix "skript":
    broadcast "s2"
    the identifier is "event-odliczanie"
    broadcast "s1"

my /skinfo image