-
Notifications
You must be signed in to change notification settings - Fork 67
Conditions possibly not working #556
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
It should work fine. Is there a reason you are using a \ as that may contribute to it? |
usualy "\ " is used to indicate a space in a variable, I assume this would be the same here? Though I don't believe that's needed given how you coded the split for the condition. |
Yes, it's there for the space, and is required for the scoreboard plugin to correctly detect the item. Here's the Portal file:
The server has been fully restarted since the portal file was created. And in-game (on 1.21.4) I give myself the item like this: The scoreboard plugin sees the item and displays And there are no errors in the server console output. For debugging, I have tried other conditions.
However, that is a syntax error according to the console.
The condition works correctly, and only lets the player teleport if their hunger is above 5. |
After further testing, I can confirm that the issue is the space, and how Advanced Portals handles it.
The above works. So either I am handing the space incorrectly, or Advanced Portals isn't parsing the code correctly. |
I haven't touched this part of the plugin so ill leave this to you @TreemanKing if that's ok :D We may need to update the documentation or see why its not being handled correctly. |
Let me know if this works @Hezkore |
If that works then ill merge the pr that @TreemanKing has made and we can release it in the main build :) |
Sorry. |
I have this condition:
And despite having that item on me, I am being rejected from the portal.
I've tested so that the commend is correct via a scoreboard plugin which also uses the placeholderAPI, using this line:
And I can see that it returns the correct amount.
Am I missing something here?
The text was updated successfully, but these errors were encountered: