DRE2N / FactionsOne

Factions 1.8.2 with UUID support - updated to latest Bukkit versions!
https://www.spigotmc.org/resources/factionsone.9249/
3 stars 14 forks source link

Add a getClaims method (Java API) #5

Closed markhughes closed 8 years ago

markhughes commented 8 years ago

Not sure if this is already implement. Is there a way to get all claims for a Faction?

Be nice to have a Faction#getClaims() method, if you accept pull requests I'll add it.

Sataniel98 commented 8 years ago

Sounds like a good idea. I'll add one!

markhughes commented 8 years ago

Thanks! Trying to implement FactionsOne into FactionsFramework 😄

Sataniel98 commented 8 years ago

Yes, I noticed that also :) Didn't you already have this or a similar project a few months ago which hasn't been continued? Seems like a great project.

Sataniel98 commented 8 years ago

I've added a method to the Board class. Should work fine as it actually does exactly the same as the unclaimAll method (except that it returns the FLocations in a Set instead of removing them). I also added a wrapper to the Faction class called getClaims().

markhughes commented 8 years ago

I started FactionsLib not too long ago but dumped it due to lack of time/life stuff. Turned that all around with FactionsFramework though 😄 I'm really excited to add the FactionsOne compatibility layer.

Just referencing this ticket to keep everything nicely organised: https://github.com/MarkehMe/FactionsFramework/issues/3

Sataniel98 commented 8 years ago

Feel free to ask for further additions :) By the way, a build with the latest changes is now available at the repo.