You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
skript-placeholders-1.7.0
Minecraft 1.20.1
PlaceholderAPI-2.11.6
player expansion lastest
Bug Description
Hi! I have a problem - I need to display the result of a placeholder differently for each player.
I send my code below - it checks if the player has permission and returns one of two results.
If I use any placeholder prefix, like "sk" in my way, it returns the result for the player who is "looking" at the result, not the player it should. For example, if a player has permission and a placeholder checks it, then he will see that all players have it in TAB.
I used the advice from ticket #62 and used the "player" prefix (%player_sk_sheriff%), but it broke the display of any other "player" placeholders - papi cant parse it (%player_name%, for example)
Please help:
Tell me, please, how I can parse the placeholder for each player without using the "player" prefix
Or, please, fix the compatibility with "Papi player expansion", if it possible
Expected Behavior
Papi work =)
Steps to Reproduce
code:
placeholderapi placeholder with the prefix "player":
if the identifier is "sk_sheriff":
if player do not have permission "sk.sheriff_wanted":
set the result to "&aP"
else:
set the result to "&cW"
placeholderapi placeholder with the prefix "player":
if the identifier is "sk_sheriff_long":
if player do not have permission "sk.sheriff_wanted":
set the result to "&aPeaceful"
else:
set the result to "&cWanted!"
on death:
victim is a player
attacker is a player
if victim is in "world":
if victim do not have permission "sk.sheriff_wanted":
execute console command "lp user %attacker% permission settemp sk.sheriff_wanted true 30d"
execute console command "lp user %attacker% permission settemp cmi.command.god false 30d"
command /sk_sheriff_forgive :
permission: sk.sheriff_forgive
trigger:
if arg-1 has permission "sk.sheriff_wanted":
execute console command "lp user %arg-1% permission unsettemp sk.sheriff_wanted"
execute console command "lp user %arg-1% permission unsettemp cmi.command.god"
send "Player %arg-1% pardon." to player
else:
send "Player %arg-1% not Wanted." to player
Errors or Screenshots
No response
Other
No response
The text was updated successfully, but these errors were encountered:
i dont know, what i've changed, but it start work. i check this option before, but it dont work)
placeholderapi placeholder with the prefix "sk":
if the identifier is "sheriff":
if player do not have permission "sk.sheriff_wanted":
set the result to "&a⚐"
else:
set the result to "&c⚐"
placeholderapi placeholder with the prefix "sk":
if the identifier is "sheriff_long":
if player do not have permission "sk.sheriff_wanted":
set the result to "&aPeaceful"
else:
set the result to "&cWanted!"
Project Version
skript-placeholders-1.7.0
Minecraft 1.20.1
PlaceholderAPI-2.11.6
player expansion lastest
Bug Description
Hi! I have a problem - I need to display the result of a placeholder differently for each player.
I send my code below - it checks if the player has permission and returns one of two results.
If I use any placeholder prefix, like "sk" in my way, it returns the result for the player who is "looking" at the result, not the player it should. For example, if a player has permission and a placeholder checks it, then he will see that all players have it in TAB.
I used the advice from ticket #62 and used the "player" prefix (%player_sk_sheriff%), but it broke the display of any other "player" placeholders - papi cant parse it (%player_name%, for example)
Please help:
Expected Behavior
Papi work =)
Steps to Reproduce
code:
placeholderapi placeholder with the prefix "player":
if the identifier is "sk_sheriff":
if player do not have permission "sk.sheriff_wanted":
set the result to "&aP"
else:
set the result to "&cW"
placeholderapi placeholder with the prefix "player":
if the identifier is "sk_sheriff_long":
if player do not have permission "sk.sheriff_wanted":
set the result to "&aPeaceful"
else:
set the result to "&cWanted!"
on death:
victim is a player
attacker is a player
if victim is in "world":
if victim do not have permission "sk.sheriff_wanted":
execute console command "lp user %attacker% permission settemp sk.sheriff_wanted true 30d"
execute console command "lp user %attacker% permission settemp cmi.command.god false 30d"
command /sk_sheriff_forgive :
permission: sk.sheriff_forgive
trigger:
if arg-1 has permission "sk.sheriff_wanted":
execute console command "lp user %arg-1% permission unsettemp sk.sheriff_wanted"
execute console command "lp user %arg-1% permission unsettemp cmi.command.god"
send "Player %arg-1% pardon." to player
else:
send "Player %arg-1% not Wanted." to player
Errors or Screenshots
No response
Other
No response
The text was updated successfully, but these errors were encountered: