How to use offline player in a skript addon?

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

pepper82

Member
Jan 26, 2017
272
1
18
41
Hi all,
we are trying to write a simple addon for skript to get a result from a database but it does not work as it should.

Example:

code_language.skript:
command /rpcheck [<text>]:
   trigger:
       set {_p} to arg-1 parsed as offline player
       broadcast "%rp name of {_p}%"

But the result is always "none" when the player is offline. Can you give me an example of how to work with offline players in skript addons?

Thank you!