Developer API

Supreme does not provide a JavaDoc or a Maven/Gradle repo.

Environment Setup

Supreme Factions clients can download the API jar in #FAQ. Developers should ONLY have access to the API jar as everything required to use the API is included. Developers will NEVER need the real factions.jar to make addons. To import via Maven as a System dependency, use the following.

<dependency>
    <groupId>com.massivecraft</groupId>
    <artifactId>Factions</artifactId>
    <version>1.6.9.5-U0.2.1-RC-1.6.2-RC-2.5-RC-9</version>
    <scope>system</scope>
    <systemPath>${project.basedir}/dependencies/SupremeFactions.jar</systemPath>
</dependency>

Getting Faction Objects from Bukkit Objects

// Getting a FactionPlayer from org.bukkit.Player
FPlayer fme = FPlayers.getInstance().getByPlayer(Player p);

// Getting a Faction by tag.
Faction fac = Factions.getInstance().getByTag("Example");

// Getting a Faction location from a bukkit location.
FLocation loc = new FLocation(Location location);

// Getting the faction at a specific location.
Faction fac1 = Board.getInstance().getFactionAt(loc);

Faction Structures

Factions Grace Controller

Faction Upgrade API

Block Place/Break Permissions Check

Faction Permissions Management

Faction Events

Last updated

Was this helpful?