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

Faction API #1

Closed kangarko closed 8 years ago

kangarko commented 8 years ago

Hello,

I am sorry if I am blind but I was unable to find an api for following:

faction name, faction role, claimed chunks amount, kdr and faction title

This have been requested by one of my plugin's user and I would like to create a variable for it.

Sataniel98 commented 8 years ago

Faction name: Faction#getTag()

Faction role: FPlayer#getRel()

Claimed chunks amount: Faction#getLandRounded() / Board#getFactionCoordCount(Faction)

Player title: FPlayer#getTitle()

You can get a faction with Factions.i.getbyTag(String) and an FPlayer with FPlayers.i.get(Player).

You may also use the new API additions:

https://github.com/DRE2N/FactionsOne/blob/FactionsOne/src/main/java/io/github/dre2n/factionsone/api/Placeholders.java

These will be added in FactionsOne 1.3.

kangarko commented 8 years ago

Thank you!

What about the kdr? I am not familiar with the plugin so I am not quite sure what the user needs.

Sataniel98 commented 8 years ago

Me neither. WTF is "kdr"?

kangarko commented 8 years ago

It was a kill death ratio. Not related to factions.

Thanks for your help.