Skip to content
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

Conflicts between a skScraft and Skript expression #5

Closed
Vulqa opened this issue Mar 17, 2021 · 4 comments
Closed

Conflicts between a skScraft and Skript expression #5

Vulqa opened this issue Mar 17, 2021 · 4 comments

Comments

@Vulqa
Copy link

Vulqa commented Mar 17, 2021

Description

I cannot retrieve the player's uuid via the player stocked in a variable, the {_uuid} variable give me "none"
I tested the expression by removing plugins one by one and it is actually a conflict with the skScraft's expression and the Skript's expression (this expression I think https://skripthub.net/docs/?id=4621 )

Steps to Reproduce

Code :

command /test:
  trigger:
    test(player)

function test(player: player):
  set {_uuid} to uuid of {_player}
  message "%{_uuid}%" to {_player}

or

command /test:
  trigger:
    set {_player} to player
    set {_uuid} to uuid of {_player}
    message "%{_uuid}%"

Server Information

Server version/platform: Paper 1.16.5
Skript version: 2.5.3
skScraft version: 1.3

@scraft-official
Copy link
Owner

Hi,
I think that the main reason why it's not working, is beacuse you used {_player} as player not as string and it will be better to use bungeecord uuid of.
To make it working you should do something like this:
set {_uuid} to bungeecord uuid of "%{_player}%"
Also you need to remeber that the network uuid and local server uuid are not the same if you use offline mode.
If you need any help, fell free to post your problem.
Best Regards,
Scraft

@Vulqa
Copy link
Author

Vulqa commented Mar 17, 2021

Thank you for the quick reply @scraft-official, In fact, I don't want to retrieve the player's uuid via bungeecord, I would just like to retrieve the uuid via the server with this expression (https://skripthub.net/docs/?id=923) but when the player target (which is not a String) is in the form of a variable it doesn't work because skScraft thinks I'm using his expression. It's quite annoying because if I want to get the uuid of a player in a function or elsewhere I can't, unless I use skript-reflect

@scraft-official
Copy link
Owner

Hi,
Sorry, i misunderstood you, I will upload totady an updated vesion with some features that i have added, and I will repair the uuid syntax.
Best Regards,
Scraft

@scraft-official
Copy link
Owner

Hi,
I have resolved this problem in the latest release. If you have any question/problems fell free to reopen this issue.
Best Regards,
Scraft

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants