Elbaph Factions

Complete Features Documentation · Version 1.3.3

1. Core Faction System

Faction Properties

  • Unique Identity: UUID-based identification with custom Names (max 32 chars) and Tags (max 8 chars).
  • Visuals: Random RGB color assignment on creation (24-bit color support).
  • Persistence: Automatic saving every 30 seconds and on critical operations.
  • Management: Auto-cleanup on disband removes all claims, data, and map markers.
Create Command /ef create <name> [tag]

2. Member Management & Roles

Leader
Full permissions. Can disband, manage relations, promote officers.
Officer
Can invite/kick, claim land, set home. Cannot disband.
Member
Basic participation. Can build in claims and use chat.

Invitation System

Invitations are thread-safe and expire automatically after 5 minutes.

  • /ef invite <player>Send invitation (Officer+)
  • /ef accept [faction]Accept pending invite
  • /ef kick <player>Remove member (Officer+)
  • /ef promote <player>Promote member to Officer (Leader only)
  • /ef demote <player>Demote Officer to Member (Leader only)

3.5. LuckPerms Integration

✨ NEW in v1.3.3 Full LuckPerms integration allows server admins to override faction permissions with granular control!

Dual Permission System

Elbaph Factions now supports two ways to manage permissions:

Option 1: Faction Roles
Use /ef promote and /ef demote commands. Simple and intuitive.
Option 2: LuckPerms
Grant specific permissions via LuckPerms. Centralized control.
Option 3: Hybrid
Use both systems together for maximum flexibility!

Permission Nodes

LuckPerms permissions override faction roles. If a player has the permission node, they can perform the action regardless of their faction role.

Permission Node Default Role Action
factions.permission.invite Officer+ Invite players to faction
factions.permission.kick Officer+ Remove members from faction
factions.permission.claim Officer+ Claim territory chunks
factions.permission.unclaim Officer+ Unclaim territory chunks
factions.permission.sethome Officer+ Set faction home location
factions.permission.disband Leader Disband the faction
factions.permission.manageallies Leader Manage alliances
factions.permission.manageenemies Leader Declare war, set neutral
factions.permission.promote Leader Promote members to officer
factions.permission.demote Leader Demote officers to member

Example Use Cases

Scenario 1: Trusted Builder

Grant claim permission to a builder without making them an officer:

/lp user BuilderName permission set factions.permission.claim true
/lp user BuilderName permission set factions.permission.unclaim true

Now BuilderName can claim/unclaim land even as a regular Member!

Scenario 2: Diplomat Role

Create a custom diplomat group that can manage diplomacy:

/lp creategroup diplomat
/lp group diplomat permission set factions.permission.manageallies true
/lp group diplomat permission set factions.permission.manageenemies true
/lp user DiplomatName parent add diplomat
Scenario 3: Hybrid Management

Use faction roles for most members, but grant special permissions to specific players:

# Most members use faction roles
/ef promote Officer1
/ef promote Officer2

# But grant special permission to one player
/lp user SpecialPlayer permission set factions.permission.sethome true

3. Territory & Claims

Elbaph Factions uses a Chunk-Based Claiming system (16x16 blocks). Claims update the map in real-time.

Claim Limit Formula Max Claims = floor(Members × 10)

Example: 5 Members = 50 Power = 50 Max Claims.

Visual Territory Map

Command: /ef map

  • 17x17 Chunk Grid UI
  • Click-to-claim/unclaim functionality
  • Color-coded by relationship (Ally/Enemy/Neutral)
  • Real-time updates

4. Protection & Raid Systems

Strict Protection Rules

Action Own Claim Ally Claim Enemy Claim Wilderness
Break/Place Allowed Allowed Blocked* Allowed
Interact Allowed Allowed Blocked* Allowed

* Unless the enemy faction is Overclaimed.

⚔️ Overclaim / Raid Mechanics When Claims > Power, the faction is Overclaimed.
  • ✅ Enemies can break blocks
  • ✅ Enemies can place TNT/Ladders
  • ✅ Enemies can open chests/doors

5. Power System

Base Power
10
Per Member
Death Penalty
-2.0
Power Loss
Regeneration
+0.1
Per Minute/Member
Power States
  • Healthy: Claims < Power (Protected)
  • Neutral: Claims = Power (Stable)
  • Overclaimed: Claims > Power (Raidable)

6. Combat & PvP

Combat Tag System

The CombatTagManager tracks active PvP states to prevent abuse.

  • Duration: 15 Seconds (Configurable)
  • Triggers: Any PvP damage (attacker and victim)
  • Restrictions:
    • ❌ Cannot use /ef home
    • ❌ Cannot teleport
    • ❌ Logging out causes massive power loss (-5.0)

7. Diplomacy & Relations

  • /ef ally <faction> Grant access to claims and disable friendly fire.
  • /ef enemy <faction> Declare war. Enemy markers appear red on map.
  • /ef neutral <faction> Reset relationship to default.

8. Home & Teleportation

Teleport Mechanics

Teleportation is designed to be fair and prevent escape during combat.

  • Delay: 5 Seconds with countdown.
  • Cooldown: 5 Minutes between uses.
  • Cancellation: Teleport cancels if you move > 0.5 blocks or take damage.
/ef sethome (Officer+)   /ef home (Member+)

9. Chat System

Integrated chat manager with distinct channels.

Public
Global Server Chat
Faction
[FC] Private Chat
Ally (Coming Soon)
[AC] Shared Chat

Use /ef chat or /ef c to toggle modes, or /ef chatmenu for the GUI.

10. Zones (Safe & War)

Zone Types

  • SafeZone: Protected areas (Spawn/Trading).
    ❌ No PvP | ❌ No Building | ❌ Cannot Claim
  • WarZone: PvP Arenas.
    ✅ All PvP | ✅ All Building | ❌ No Protections

Managed via /ef admin safezone and /ef admin warzone GUIs.

11. World Map Integration

Native Map Support Elbaph Factions integrates directly with Hytale's native map (Key: M).
  • Real-time claim display.
  • Faction color-coded borders.
  • Zone indicators (Green for SafeZone, Red for WarZone).
  • Performance: Updates run on a 3-tick cycle (0.15s) using queued updates to prevent lag.

12. Admin Tools

Admin Bypass Mode

Command: /ef admin bypass

Toggles a mode that allows building anywhere and bypassing all protections. Persists across sessions.

Admin Panel

Command: /ef admin

Control panel to toggle global PvP, Map Visibility, Health Bars, and perform mass operations (Reset Power, Disband All).

13. Data & Configuration

All data is stored in human-readable JSON at mods/ElbaphFactions/.

Example: Claim Data Structure

{
  "default:16:-25": {
    "dimension": "default",
    "x": 16,
    "z": -25,
    "factionId": "uuid-string-here",
    "claimedAt": 1234567890,
    "claimedBy": "uuid-string-here"
  }
}

14. Full Command Reference

Command Description Permission
/ef create <name> Create a new faction None
/ef disband Delete your faction Leader
/ef invite <player> Invite player Officer+
/ef kick <player> Remove member Officer+
/ef promote <player> Promote to Officer Leader
/ef demote <player> Demote to Member Leader
/ef claim Claim current chunk Officer+
/ef unclaim Unclaim current chunk Officer+
/ef map Open territory GUI None
/ef sethome Set faction spawn Officer+
/ef home Teleport to spawn Member
/ef ally <faction> Request alliance Leader
/ef enemy <faction> Declare war Leader
/ef chat Toggle faction chat Member
/ef admin Open Admin Panel OP/Admin