I am having difficulty using the example and documentation from SkinsRestorer to convert it into Skript reflect. I want to save the player's texture URL into a variable so that I can apply the skin to the player later. Here is the link to the example: https://github.com/SkinsRestorer/Sk...r/apiexample/SkinsRestorerAPIExample.java#L94
This is all I have so far
it just broadcast <none> three times
This is all I have so far
Code:
on load:
set {srapi} to the class "net.skinsrestorer.api.SkinsRestorer"
broadcast "%{srapi}%"
command /getskin:
trigger:
set {srapi} to SkinsRestorerProvider.get()
set {_ps} to {srapi}.getPlayerStorage(player)
set {_prop} to {_ps}.getSkinForPlayer(player.getUniqueId(), player.getName())
set {_texture} to PropertyUtils.getSkinTextureUrl({_prop}.get())
broadcast "%{_ps}%"
broadcast "%{_prop}%"
broadcast "%{_texture}%"
it just broadcast <none> three times