Quick Start Guide¶
Table of Contents
Installation¶
- Download the plugin from Poggit, or click
PiggyFactions
. - Install the plugin by placing it in the
plugins/
directory. - Start your server to generate the configuration files, then stop the server.
Configuration¶
- Navigate to
plugins/PiggyFactions/
- Open
config.yml
- Setup the data provider that PiggyFactions will be using.
- By default, PiggyFactions will use SQLite3. No additional setup is required. (RECOMMENDED)
- Optionally, PiggyFactions can also use MySQL:
- Change
database.type
fromsqlite
tomysql
. - Enter your MySQL credentials in the
database.mysql
field. - Change
worker-limit
from1
to2
.
- Change
- Changing Languages
- Navigate to
lang/
- Available languages are shown in this folder.
- To change the default language, simply change
languages.default
to the language’s file name. - A player can change their own language with
/f language <language>
.
- To change the default language, simply change
- Navigate to
- Toggle whether or not you want to enable forms with commands.
- By default, this option is enabled. You can still run commands normally, or through a form.
- Setup the data provider that PiggyFactions will be using.
Setting up your Chat Provider¶
Currently, only HRKChat and PureChat PR-17 supports PiggyFactions.
HRKChat¶
Tag Name | Description |
---|---|
piggyfacs.name |
Player’s faction name |
piggyfacs.power |
Player’s faction power |
piggyfacs.rank.name |
Your Faction’s rank name |
piggyfacs.rank.symbol |
Your Faction’s rank symbol |
piggyfacs.members.all |
Faction’s total member count |
piggyfacs.members.online |
Faction’s online member count |
chatFormat:
1: "&6{{piggyfacs.rank.symbol}}{{piggyfacs.name}} &r&7{{hrk.displayName}}&r: {{msg}}"
nameTagFormat:
1: "&6{{piggyfacs.rank.symbol}}{{piggyfacs.name}} &r&7{{hrk.displayName}}"
PureChat¶
Tag Name | Description |
---|---|
{fac_name} |
Player’s faction name |
{fac_rank} |
Player’s faction rank symbol |
groups:
Guest:
chat: '&7[Guest] &6{fac_rank}{fac_name} &r&7{display_name}&r: {msg}'
nametag: '&7[Guest] &6{fac_rank}{fac_name} &f{display_name}'
worlds: []
Warning
You must use Poggit-CI PR-17
build for PureChat support and set default-factions-plugin
to PiggyFactions
.
All other syntax remains the same. You can modify the rank symbols in PiggyFaction’s config.yml
.
Setting up Safezones / Warzones¶
- Run the command
/f admin
. This will allow you to bypass faction permissions. - Create a Safezone faction with
/f create <name>
. - Flag the faction as a Safezone with
/f flag <safezone|warzone>
.- This will remove the faction from
/f top
and prevent other factions from claiming the area. - Furthermore, the
safezone
flag will prevent combat.
- This will remove the faction from
- Claim Safezone chunks with
/f claim <auto|square|circle> <radius>
. - While you’re still in admin mode, use
/f leave
to leave the faction.- This will allow you to leave the faction without disbanding it.
- Run the command
/f admin
to exit admin mode.
Note
You’ll have to repeat this process twice: once for Safezone, once for Warzone.
You’re done!¶
- PiggyFactions is now setup.
- For further configuration, see Advanced Configuration.
- For a list of Commands & Permissions, see Commands and Permissions.