Want a better Minecraft server? Read about SpigotMC here!
Separate names with a comma.
Discussion in 'Spigot Plugin Development' started by Xocky, Jul 5, 2018.
how do you get all melon blocks in a faction claim
are you using an API?
Get the claim location (chunk) and loop from Xminx-Xmax, 256-1, Zmin-Zmax. If the block is a melon block add it to a list.
Can you post the code?
I'm not sure I can... Google might can though: check
Mhh how do i get the claim locations?
Using Factions API you should be able
I know that but i can't figured out how to use the factions api to get the claim location
In the website you downloaded the faction plugin it should show how the API works and what you can use.
You can see how to search like so. It takes almost 10 seconds to find it.
Faction faction = BoardColl.get().getFactionAt(PS.valueOf(player.getLocation()));
boolean isInFaction = faction != null && !faction.isNone();
dude i meant how do you get the faction's claim location
Take a look at this thread. Please try googling your issues before making a post here. 90% of posts are always dupes.