Skip to main content
Dan's Plugins Community
All guidesMiniFactions plugin page

MiniFactions Guide

0

MiniFactions User Guide

What is MiniFactions?

MiniFactions is a lightweight Spigot plugin that adds a faction system to your Minecraft server. Players can form groups (factions), claim territory, invite allies, and compete for power.

Installation

  1. Download the latest MiniFactions-<version>.jar from the Releases page.
  2. Place the JAR in your server's plugins/ folder.
  3. Restart the server.
  4. The plugin generates plugins/MiniFactions/config.yml on first run.

Getting Started

  1. Create a faction: /mf create <name>
  2. Invite friends: /mf invite <player>
  3. Claim territory: stand in a chunk and run /mf claim
  4. Check who owns a chunk: /mf checkclaim

Power System

Each player has a power level (default starting power: 50). Power:

  • Is spent by the faction leader each time they claim a chunk (territoryCostsPower: true by default). A claim costs the number of chunks the faction already holds times chunkRequirementFactor (0.10 by default), but never less than minimumPowerCost (1.0 by default). If the leader has less power than that, the claim is refused.
  • Is lost on death (10% of the player's current power by default).
  • Is not regained: unclaiming a chunk does not refund it, and nothing regenerates it.

Claimed chunks are kept whatever happens to power afterwards. /mf force claim costs no power.

Known Limitations

  • A crash loses the changes made since the last save. Factions, members, invitations, claimed chunks and power levels are written to disk every autosaveMinutes minutes (5 by default, see CONFIG.md) and when the server stops or the plugin is disabled, and read back when it enables. If the server crashes or is killed instead of being stopped, the changes made since the last autosave are lost; with autosaveMinutes: 0, every change made since it started is lost.

Data Files

The plugin keeps its data in plugins/MiniFactions/, one JSON file per kind of record:

FileContents
factions.jsonEach faction's ID, name, leader, members, invitations and claimed chunk IDs.
powerRecords.jsonEach player's power level.
territoryChunks.jsonEach chunk that has been claimed: its world, coordinates and owning faction, if any.

If one of these files cannot be read when the plugin enables, the error is logged, its records are not loaded, and nothing is saved until the next restart, so the file is left as it is for you to fix or move aside. territory.json is created by the plugin but is not used.

Permissions

Every node below is registered in the plugin's plugin.yml, so permission managers such as LuckPerms can list and grant them by name.

PermissionDefaultDescription
mf.helptrueView the help menu.
mf.defaulttrueBare /mf command; shows plugin version and developer info.
mf.listtrueList all factions.
mf.infotrueView faction information.
mf.createtrueCreate a faction.
mf.jointrueJoin a faction.
mf.leavetrueLeave a faction.
mf.invitetrueInvite a player to your faction.
mf.kicktrueKick a player from your faction.
mf.disbandtrueDisband a faction.
mf.transfertrueTransfer faction ownership.
mf.powertrueCheck power level.
mf.claimtrueClaim a chunk.
mf.unclaimtrueUnclaim a chunk.
mf.checkclaimtrueCheck chunk ownership.
mf.configopView or change config options.
mf.forceopForce admin actions.
mf.force.helpopView a list of force commands.
mf.force.joinopForce a player to join a faction.
mf.force.inviteopForcefully invite a player to a faction.
mf.force.kickopForcefully kick a player from their faction.
mf.force.disbandopForcefully disband a faction.
mf.force.claimopForcefully claim territory for a faction.
mf.force.unclaimopForcefully unclaim territory for a faction.

Support

Ask questions in the Discord server or open a GitHub issue.

Back to topMiniFactions plugin pageView this guide on GitHub