skript-placeholders icon indicating copy to clipboard operation
skript-placeholders copied to clipboard

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

Open Asleeepp opened this issue 1 year ago • 9 comments

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

  • Server version/platform: Current: git-Purpur-2134 (MC: 1.20.4)*
  • skript-placeholders version: 1.6
  • Skript version: 2.8.3
  • PlaceholderAPI version (if applicable): 2.11.5
  • MVdWPlaceholderAPI version (if applicable):

Additional Context

Asleeepp avatar Mar 07 '24 01:03 Asleeepp

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?

APickledWalrus avatar Mar 27 '24 17:03 APickledWalrus

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 avatar May 01 '24 11:05 Asleeepp

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

Asleeepp avatar May 02 '24 02:05 Asleeepp

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?

APickledWalrus avatar May 02 '24 03:05 APickledWalrus

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.

Asleeepp avatar May 02 '24 15:05 Asleeepp

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.

APickledWalrus avatar May 23 '24 19:05 APickledWalrus

@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

m-suro avatar Jun 01 '24 06:06 m-suro

Are you able to test whether this occurs on 1.7.0?

APickledWalrus avatar Aug 20 '24 20:08 APickledWalrus

Have you still been encountering this issue on 1.7.0?

APickledWalrus avatar May 14 '25 19:05 APickledWalrus