Skip to main content

Admin Commands

Server administration commands for HyperFactions.

Admin Commands

These commands are for server administrators to manage factions, zones, backups, and the mod itself. Admin commands require permissions from the hyperfactions.admin.* category.

Admin Menu

CommandDescriptionPermission
/f adminOpen the admin management GUIhyperfactions.admin.use

The admin menu provides GUI access to all administrative functions including faction management, zone creation, and system settings.

Configuration Commands

CommandDescriptionPermission
/f admin reloadReload the configuration filehyperfactions.admin.reload
/f admin debugToggle debug mode for troubleshootinghyperfactions.admin.debug

Reload applies:

  • config.json settings
  • Message configuration
  • Power settings
  • All other configuration changes

Info

Some changes may require a server restart. The reload command handles most configuration changes.

Debug mode:

  • Shows detailed logging for troubleshooting
  • Outputs to console and/or chat
  • Categories can be configured in config.json

Zone Management

The zone system allows admins to create named zones that span multiple chunks with customizable flags.

Creating Zones

CommandDescriptionPermission
/f admin zone create <safe|war> <name>Create a new named zone (SafeZone or WarZone)hyperfactions.admin.zones

Zone Types:

  • safe - SafeZone (no PvP, no building, protected area)
  • war - WarZone (PvP enabled, no power loss by default)

Claiming Chunks for Zones

CommandDescriptionPermission
/f admin zone claim <name>Add the current chunk to an existing zonehyperfactions.admin.zones
/f admin zone radius <name> <radius> [circle]Claim a radius of chunks for a zonehyperfactions.admin.zones

Radius claiming:

  • radius - Number of chunks from current position
  • Add circle to claim in a circular pattern instead of square

Example: /f admin zone radius spawn 5 circle claims a circular area with 5-chunk radius.

Managing Zones

CommandDescriptionPermission
/f admin zone unclaimRemove the current chunk from its zonehyperfactions.admin.zones
/f admin zone delete <name>Delete a zone entirely (unclaims all chunks)hyperfactions.admin.zones
/f admin zone list [safe|war]List all zones, optionally filtered by typehyperfactions.admin.zones

Zone Flags

Each zone type has 15 configurable flags. Use the admin GUI to modify zone flags:

FlagSafeZone DefaultWarZone DefaultDescription
pvp_enabledfalsetrueAllow PvP
friendly_firefalsefalseAllow same-faction damage
projectile_damagefalsetrueAllow projectile damage
mob_damagefalsetrueAllow mob damage
build_allowedfalsefalseAllow building
block_interacttruetrueGeneral block interaction
door_usetruetrueUse doors and gates
container_usefalsefalseAccess storage containers
bench_usefalsefalseUse crafting tables
processing_usefalsefalseUse furnaces/smelters
seat_usetruetrueSit on seats/mounts
item_dropfalsetrueAllow item dropping
item_pickuptruetrueAllow item pickup
fall_damagefalsetrueAllow fall damage
environmental_damagefalsetrueDrowning, suffocation

For full flag details, see Zones.

Bypass Mode

CommandDescriptionPermission
/f admin bypassToggle admin bypass modehyperfactions.admin.use

Bypass Mode Enables:

  • Build in any claimed territory
  • Open containers anywhere
  • Interact with mechanisms
  • Useful for investigating or fixing issues

Toggle:

  • Run once to enable
  • Run again to disable

Tip

Remember to disable bypass mode when done to avoid accidentally breaking player builds.

Faction Management

CommandDescriptionPermission
/f admin disband <faction>Force disband any factionhyperfactions.admin.disband
/f admin modify <faction> <setting> <value>Modify any faction's settingshyperfactions.admin.modify

Modifiable settings:

  • name - Change faction name
  • description - Change description
  • color - Change faction color
  • power - Set faction power
  • leader - Change faction leader
  • open - Set open/closed status

Warning

Admin faction modifications bypass role checks. Use with caution as they directly affect player factions.

Backup System

HyperFactions includes a built-in backup system with GFS (Grandfather-Father-Son) rotation.

CommandDescriptionPermission
/f admin backup create [name]Create a manual backup with optional custom namehyperfactions.admin.backup
/f admin backup listList all available backupshyperfactions.admin.backup
/f admin backup restore <name>Restore from a specific backuphyperfactions.admin.backup
/f admin backup delete <name>Delete a specific backuphyperfactions.admin.backup

Backup retention (configurable):

  • Hourly backups: 24 (1 day)
  • Daily backups: 7 (1 week)
  • Weekly backups: 4 (1 month)

Restore Warning

Restoring a backup overwrites current data. Consider creating a backup before restoring.

Quick Reference

CommandDescriptionPermission
/f adminOpen admin menuhyperfactions.admin.use
/f admin reloadReload configurationhyperfactions.admin.reload
/f admin debugToggle debug modehyperfactions.admin.debug
/f admin bypassToggle bypass modehyperfactions.admin.use
/f admin zone create <type> <name>Create a zonehyperfactions.admin.zones
/f admin zone claim <name>Add chunk to zonehyperfactions.admin.zones
/f admin zone unclaimRemove chunk from zonehyperfactions.admin.zones
/f admin zone delete <name>Delete zonehyperfactions.admin.zones
/f admin zone listList zoneshyperfactions.admin.zones
/f admin zone radius <name> <r>Claim radiushyperfactions.admin.zones
/f admin disband <faction>Force disbandhyperfactions.admin.disband
/f admin modify <faction> ...Modify factionhyperfactions.admin.modify
/f admin backup createCreate backuphyperfactions.admin.backup
/f admin backup listList backupshyperfactions.admin.backup
/f admin backup restore <name>Restore backuphyperfactions.admin.backup
/f admin backup delete <name>Delete backuphyperfactions.admin.backup

Admin Permissions

Admin Permissions

PermissionDescriptionDefault
hyperfactions.admin.useAccess admin menu and basic admin featuresop
hyperfactions.admin.reloadReload configurationop
hyperfactions.admin.debugToggle debug modeop
hyperfactions.admin.zonesManage SafeZones and WarZonesop
hyperfactions.admin.disbandForce disband any factionop
hyperfactions.admin.modifyModify any faction's settingsop
hyperfactions.admin.bypass.limitsBypass claim and power limitsop
hyperfactions.admin.backupManage backupsop
hyperfactions.admin.*All admin permissionsop

Example Workflows

Setting Up Server Spawn

  1. Create the SafeZone:

    /f admin zone create safe spawn
    
  2. Claim the spawn area:

    /f admin zone radius spawn 3 circle
    

    This claims a 3-chunk radius circle around your position.

  3. Verify:

    /f admin zone list safe
    

Creating a PvP Arena

  1. Build the arena structure first

  2. Create the WarZone:

    /f admin zone create war arena
    
  3. Stand in the arena and claim:

    /f admin zone claim arena
    

    Repeat for each chunk, or use radius:

    /f admin zone radius arena 2
    
  4. Reload configuration if needed:

    /f admin reload
    

Investigating Player Issues

  1. Enable bypass:

    /f admin bypass
    
  2. Enable debug mode if needed:

    /f admin debug
    
  3. Investigate the area

  4. Disable bypass and debug when done:

    /f admin bypass
    /f admin debug
    

Creating a Manual Backup Before Changes

  1. Create named backup:

    /f admin backup create pre-update
    
  2. Make your changes

  3. If something goes wrong:

    /f admin backup restore pre-update
    

Removing Inactive Faction

  1. Check faction info first:

    /f info InactiveFaction
    
  2. Force disband:

    /f admin disband InactiveFaction
    

Safety Guidelines

Do

  • Keep bypass mode disabled when not needed
  • Document zone changes for other admins
  • Create backups before major changes
  • Test configuration changes on a staging server first
  • Use debug mode to troubleshoot issues

Don't

  • Leave bypass enabled accidentally
  • Force disband without investigating
  • Restore backups without creating a current backup first
  • Modify factions without documenting the reason

Related Topics