Just need h elp with this one skript

Status
This thread has been locked.

LouaeIsmail

Feedback score
1
Posts
94
Reactions
12
Resources
0
Hi, I need help with this skript. If I use %player% it works perfectly, but if someone changes their name, their stats are reset. So I try using %player's uuid% or %uuid of player% and then it just doesn't let you mine, doesn't give you xp, etc.
heres one of them
on mine of stone:
if {mininglevel.%uuid of player%} is not set:
if player is in world "(i put the world name)":
add 1 to {miningprogress1.%uuid of player%}
set block to bedrock
 
PebbleHost
High performance, consistent uptime and fast support. Minecraft hosting that just works.

LouaeIsmail

Feedback score
1
Posts
94
Reactions
12
Resources
0
probably just %uuid% based on the skript i guess, what is it?
The skript is basically what I put there, just with many different blocks but the same exact thing. When I use %player% it works fine, it replaces the block with bedrock/stone/whatever i put and gives the message and all of that, but then if you change your name the stats dont save. So I changed it to the uuid and it doesnt mine the block, just cancels the event. There's no errors.
 

LouaeIsmail

Feedback score
1
Posts
94
Reactions
12
Resources
0
What he is saying that if he uses %player% it works until the player changes their name, then they cannot mine anything. a simple fix would be using %player_uuid%. You cannot use spaces in placeholders.

[Edit: This is cause by the placeholder only catching the players IGN, Thus if it is changed, the whole players mininglevel will reset as they have changed their IGN]
Ill try it, thank you
 

LouaeIsmail

Feedback score
1
Posts
94
Reactions
12
Resources
0
What he is saying that if he uses %player% it works until the player changes their name, then they cannot mine anything. a simple fix would be using %player_uuid%. You cannot use spaces in placeholders.

[Edit: This is cause by the placeholder only catching the players IGN, Thus if it is changed, the whole players mininglevel will reset as they have changed their IGN]
"Can't understand this expression: player_uuid (SkyblockTest.sk line 312: if {miningleve.%player_uuid%} is 7:[DOUBLEPOST=1563982563][/DOUBLEPOST]
Ok, Keep me updated!
Are any addons required?
 
Last edited:

LouaeIsmail

Feedback score
1
Posts
94
Reactions
12
Resources
0
I found this while researching the issue. It is an extension to PlaceholderAPI that allows the use of Placeholders from PlaceholderAPI. You could also do /Papi ecloud download Skript (Im pretty sure)
Oh i dont have placeholder api whoops lol
 

LouaeIsmail

Feedback score
1
Posts
94
Reactions
12
Resources
0
Oh, That makes sense. I was giving you a PlaceholderAPI placeholder, so you will need to install PlaceholderAPI and the addon for it that allows the use of placeholders of PAPI in skript.
Hey I did the command to install it and then I used {mininglevel.%player_uuid%} and its still not working
 

LouaeIsmail

Feedback score
1
Posts
94
Reactions
12
Resources
0
Yeah, It is a necessity and a load of other plugins use it aswell so it will be good for future placeholder configurating.
awesome. also, the %player_uuid% still doesnt work. the expansion-skript is in the expansions folder in placeholder api but the skript doesnt work still
 
Status
This thread has been locked.
Top