#Worldguard placeholders
1 messages · Page 1 of 1 (latest)
-papi worldguard
It doesnt seem like. You can leave a suggestion on the github repo for the worldguard expansion
Would you post it in issues? Sorry i dont use github much and dont know best way to reach the person
Sure
https://github.com/PlaceholderAPI/WorldGuard-Expansion/issues/22
An older feature request
I'll try adding that later if no one does it before me
%worldguard_region_flag_<flag>%
haven't tried yet but should work
Im not having much luck sorry. I'm trying like this. Can you see any obvious issue?
%worldguard_region_flag_greeting-title:test,1140,96,1220%
Ive also tried without the coords and cant get it to work
it's just %worldguard_region_flag_greeting-title%
ah I get it
welp, I'll double check I guess
what does it return right now? the placeholder itself or an empty string?
@heady ruin rg[0] not rg[1]
final String[] rg = params.split("region_flag_");
if (rg.length < 1) return null;
Object flag = region.getFlags().keySet().stream().filter(f ->
f.getName().equalsIgnoreCase(rg[1])).map(region::getFlag).findAny().orElse(null);

I want the latter, not the empty string
Ah shit. You are right, sry.
dw
Appreciate you guys looking at this. Would love if we could find a way to get this to work ❤️
does %worldguard_region_has_flag_greeting-title% work?
and did you try %worldguard_region_flag_greeting-title% without the location?
Sorry for the late reply.
The first one just comes back 'yes', when I want the actual text.
The last one doesnt work (without the location)
does it return nothing or the placeholder itself?
The placeholder itself
I should have the time to check tonight
though I don't see what could have possibly gone wrong
Thankyou, appreciate you taking the time ❤️
So
I do see an issue lol
but it still works
are you sure you replaced the jar in your /plugins/PlaceholderAPI/expansions/ folder correctly?
maybe you forgot to remove the old one
Fixed the issue I found here
hopefully it fixes your issue as well
wtf
the value in an optional object is in yet another optional object
why
ok THIS should do it