FFA
The free-for-all event, setting up a profile and arena, how a match runs, item rules, anti-camping, random events, the shrinking border and rewards.
FFA is a free-for-all event. When it opens, players type /ffa join and wait in a lobby. When joining
closes, everyone is spread over an arena, and the last player alive wins. The
Event Manager starts it on a schedule and pays rewards by placement.
Files: configs/extensions/FFA.yml and configs/extensions/ffa-commands.yml. FFA needs WorldGuard
and the Event Manager.
Setting it up
A new FFA.yml has an empty profiles list, and FFA does not start without a profile: the console
says "No FFA profiles found" and the /ffa commands do not exist. Add the profile below by hand,
then restart or reload.
-
Make a WorldGuard region around the arena, for example
/rg define ffa_arena. -
Add a profile to
FFA.yml; the keys you leave out are filled with the defaults:enabled: true defaultProfileId: default profiles: - id: default eventName: FFA arenaRegionName: ffa_arena -
/pvpcore reload FFA. -
Stand where waiting players should be and type
/ffa admin setlobby. -
Stand where players should go when they leave or lose:
/ffa admin setexit. -
Stand in the arena and add one or more spawn areas:
/ffa admin addspawn default 10. Players are spread at random within 10 blocks of where you stand. -
/ffa admin saveconfig. The commands above change the settings in memory only; without this, a restart loses them. -
Test with
/event start FFA.
A profile is ready only with a lobby, an exit, at least one spawn area, and an arena region that
exists in WorldGuard. Until then /ffa join says the event is not set up.
How a match runs
| State | What happens |
|---|---|
WAITING | Closed. Nothing runs |
JOINABLE | The Event Manager opened it. Everyone is told, and /ffa join takes players to the lobby, up to maxPlayers. Reminders go out with 300, 60 and 30 seconds left. Lasts joinWindowSeconds (300) |
STARTING | Joining closed. With fewer than minPlayersToStart (2), the event stops and nothing is paid. Otherwise a countdown of lobbyCountdownSeconds (10) runs with titles |
RUNNING | Players are teleported to the spawn areas and fight. A player who dies or leaves is out |
ENDING | One player is left: they win, rewards are paid, and everyone goes to the exit |
Details:
| Topic | Behaviour |
|---|---|
| Items | Players fight with what they carry. On joining, health and food are filled and potion effects removed |
| Death | With useKeepInventory: true (the default) players keep their items and drop nothing. They respawn at the exit |
| Leaving | Leaving the server in the lobby takes the player out; in the arena it counts as a loss |
| Commands | Blocked in the lobby and arena, except those in whitelistCommands |
| Teleporting | Refused in the lobby. In the arena, ender pearls follow allowEnderPearl |
| Building | Never in the lobby. In the arena, by allowBlockPlace and allowBlockBreak |
| Damage | Only between two players in the arena. A player outside cannot hit one inside, or the other way |
| Combat tag | Players in the arena are never tagged, so FFA kills give no uxmPVPCore statistics, rating or battle logs |
| Rejoining | A player who logs in inside the arena while no match holds them is sent to the exit |
/ffa leave leaves the lobby or the match and teleports to the exit. In the arena, it counts as a
loss.
Profile settings
A profile is one FFA event with its own arena. Several profiles can run side by side, each with its
own id and eventName.
| Key | Default | Meaning |
|---|---|---|
id | default | The profile's id, used in commands |
eventName | FFA | The name the Event Manager schedules, eventName in EventManager.yml |
displayName | FFA Event | Shown in messages and placeholders |
minPlayersToStart | 2 | Fewer players when joining closes stops the event |
maxPlayers | 20 | The lobby is full at this many |
lobbyLocation, exitLocation | not set | Set with setlobby and setexit |
spawnAreas | empty | Added with addspawn. Each is a centre and a radius |
arenaRegionName | ffa_arena | The WorldGuard region of the arena |
arenaCenter | not set | The centre of the border. Without it, the region's centre |
joinWindowSeconds | 300 | How long joining stays open |
lobbyCountdownSeconds | 10 | The countdown before the match |
useKeepInventory | true | Players keep their items when they die in the arena |
blockedCommands | * | Commands refused in FFA. * means all |
whitelistCommands | ffa leave, msg, r, tell, mute, ban | Commands that always work in FFA |
winCommands | eco give %player% 1000, a say | Console commands for the winner. %player% |
countdownTitle, startTitle | Titles during the countdown and at the start. {time} in the countdown |
winCommands run in addition to the Event Manager's rewardTiers. Use one or the other for the
winner, or they get paid twice.
Item rules
gameSettings decides what may be used in the arena:
| Key | Default |
|---|---|
allowMace | true |
allowPotionThrow | true |
allowTridentThrow | false |
allowWindCharge | true |
allowBowUsage | true |
allowEnderPearl | false |
allowElytra | false |
allowTotem | true |
allowGoldenApple | true |
allowEnchantedGoldenApple | false |
allowBlockPlace | false |
allowBlockBreak | false |
Keeping the match moving
Player tracking
playerTracking: when nobody has hurt anyone for startAfterSeconds (120), every player in the arena
glows for revealDurationSeconds (5), and again every revealIntervalSeconds (30), until fighting
starts again.
Anti-camping and anti-teaming
stalematePrevention punishes players who avoid fighting or work together.
| Key | Default | Meaning |
|---|---|---|
enabled | true | Turns both checks on or off |
antiCampEnabled | true | Punish players who have not hurt or been hurt by anyone |
antiCampThresholdSeconds | 45 | For this long |
antiTeamEnabled | true | Punish two players who stay together without fighting |
antiTeamProximityRadius | 6 | Within this many blocks of each other |
antiTeamForgivenessSeconds | 15 | For this long without hurting each other |
antiTeamDamageThreshold | 15 | One hit of at least this much between them clears them |
actionTypes | GLOW, DAMAGE, FORCE_PUSH | The punishments: glow, damage, a push. NONE for a warning only |
actionDurationSeconds | 10 | How long the glow lasts |
actionDamageAmount | 4 | Damage dealt, in half hearts |
actionPushForce | 0.9 | How hard the push is |
broadcastWarning | true | Tell the arena with warningMessageCamping or warningMessageTeaming |
ignoreZeroDamageHits | true | Hits that deal no damage do not count as fighting |
Random events
randomEvents changes the rules for a while during the match.
| Key | Default | Meaning |
|---|---|---|
enabled | true | Turns random events on or off |
startDelaySeconds | 240 | No random event in the first 4 minutes |
intervalMinSeconds, intervalMaxSeconds | 600, 1200 | Time between two events, picked at random |
historySize | 4 | The last this many events are not picked again |
maxConsecutiveEvents | -1 | No limit |
events | seven events | The events that can be picked |
Each event has type, enabled, durationSeconds, weight (higher is picked more often),
minPlayersRequired, displayName, startMessage, endMessage, startTitle, endTitle,
startSound and endSound. The messages can use {event_name} and {duration}.
| Type | Effect |
|---|---|
NO_ENDER_PEARL, NO_MACE, NO_BOW, NO_POTION, NO_GOLDEN_APPLE | That item cannot be used. In the default list |
NO_TOTEM, NO_TRIDENT, NO_SHIELD, NO_ELYTRA | That item cannot be used |
SPEED_BOOST | Speed for everyone. In the default list |
LOW_GRAVITY | Jump boost for everyone. In the default list |
STRENGTH_BOOST, SLOWNESS, BLINDNESS | That effect for everyone |
DOUBLE_DAMAGE | Every hit deals double damage |
HALF_HEALTH | Everyone's health is halved until the event ends |
NO_HEALING | Nobody regains health |
The shrinking border
safeZone closes the arena in over time, so the match cannot last forever.
| Key | Default | Meaning |
|---|---|---|
enabled | true | Turns the border on or off |
initialRadius | 100 | The border's radius at the start, around arenaCenter |
minRadius | 15 | It never gets smaller than this |
shrinkIntervalSeconds | 60 | How often it shrinks |
shrinkAmount | 15 | By how many blocks each time |
damagePerSecond | 2 | Damage to players outside it, in half hearts |
With the defaults the border is at its smallest after 6 minutes.
Commands
| Command | Does |
|---|---|
/ffa join (profile), /ffa | Joins the open event |
/ffa leave | Leaves it |
/ffa admin gui (profile) | A menu to edit a profile |
/ffa admin profiles | Lists the profiles and their state |
/ffa admin setlobby (profile) | Sets the lobby to where you stand |
/ffa admin setexit (profile) | Sets the exit to where you stand |
/ffa admin addspawn <profile> <radius> | Adds a spawn area around where you stand |
/ffa admin clearspawns (profile) | Removes every spawn area |
/ffa admin setregion <profile> <region> | Sets the WorldGuard arena region |
/ffa admin saveconfig | Writes the changes to FFA.yml |
/ffa admin players (profile) | Who is in the lobby and the arena |
/ffa admin kick <player> | Takes a player out of FFA |
/ffa admin add (profile) <player> | Puts a player into the running match |
With a single profile, (profile) can be left out. Players need uxmpvpcore.ffa.use, staff
uxmpvpcore.ffa.admin. Messages are under messages in each profile, and the texts the
FFA placeholders show are under placeholderMessages.
Related: Event Manager, Placeholders
Was this page helpful?