Hi! I was trying to make a code that shows the region's name the player is in.
It is harder that it looks because I could just use %worldguard_region_name_capitalized% in the Scoreboard (because I want it to be shown in the Scoreboard) but it doesn't show anything when you are in the Wilderness, so if you are in a no-named region as Wilderness is it should display "Agresiva".
I tried with this code, but it just permanently shows "Agresiva", even when I am in a named region.
Thank you! I look forward to your answers
It is harder that it looks because I could just use %worldguard_region_name_capitalized% in the Scoreboard (because I want it to be shown in the Scoreboard) but it doesn't show anything when you are in the Wilderness, so if you are in a no-named region as Wilderness is it should display "Agresiva".
I tried with this code, but it just permanently shows "Agresiva", even when I am in a named region.
Code:
on join:
set {placeholder} to placeholder "worldguard_region_name_capitalized"
on placeholderapi placeholder request for the prefix "locate":
if the identifier is "zone":
set result to {placeholder}
if placeholder {placeholder} is empty:
set result to "&4Agresiva"
Thank you! I look forward to your answers