Built-in region protection
#The protection module protects areas with flags, a selection wand and a menu editor. No WorldGuard is needed. Other modules use these areas by name: portals, the RTP zone, AFK areas, shard income, item bans, sit, double jump and KOTH.
- Command:
/protection(aliasesprot,region,rg), permissionsimplesmpcore.protection.admin(OP by default). - Areas are stored in
plugins/SimpleSMPCore/data/protection/regions.yml, grouped by world. Edit them with/protectionand its menu rather than by hand; after a manual edit run/protection reload. __global__is a special area that covers a whole world.- Each area has a priority (higher wins where areas overlap), an optional parent (flags that are not set are inherited from it) and members (who may build where the area protects).
- Bypass:
simplesmpcore.protection.bypass(OP by default)./protection bypassturns it on or off for yourself, so you can test as a normal player. - On the first start, if
plugins/WorldGuard/worldsexists, WorldGuard regions are copied once (settings.import-worldguard-on-first-start). Later imports:/protection import.
Full guide: Spawn, RTP zone and portals (moving a spawn, portal or RTP zone, and which area to edit).
Areas that come with the package
#| World | Area | Used for |
|---|---|---|
Spawn | __global__, spawn | Spawn rules for the whole world and the spawn build. |
Spawn | spawn_crates | The crate square (priority 1). |
Spawn | portal_nether, portal_end, afk_portal | Portal triggers (see Portals). |
Spawn | rtpzone | The RTP zone. |
AFK | __global__, afk, afk1, shards | AFK world rules, the AFK areas and the shard income zone. |
The overworld ("wilderness") RTP portal is not a region: it is a coordinate box in modules/default/rtp/config.yml (see Random teleport).
On Minecraft 26.x these worlds are loaded as world_spawn and world_afk. SimpleSMPCore 1.16.3 and newer matches the areas stored under Spawn and AFK to them automatically; nothing has to be renamed.
Creating an area
#/protection wandgives the selection tool (a wooden axe). Left click sets corner 1, right click corner 2. The outline is shown for 15 seconds. You can also use/protection pos1andpos2where you stand./protection create <name>creates the area from your selection./protection flags <name>opens the flag editor, or set flags in chat:/protection flag <name> pvp deny. A flag without a value is cleared.- Optional:
/protection priority <name> <number>,/protection parent <name> <parent>,/protection member <name> add <player>(g:<group>adds a whole group,removetakes a member out).
Other sub-commands: redefine (new box from your selection), delete, info (no name = where you stand), list, tp, select (your selection = the area's box), reload.
Flags
#State flags take allow or deny. A few flags take a number or a text.
| Group | Flags |
|---|---|
| Special | build, passthrough |
| Building | block-break, block-place, use, interact, chest-access, use-anvil, use-dripleaf, respawn-anchors, sleep, lighter, block-trampling, item-frame-rotation, vehicle-place, vehicle-destroy, ride, damage-animals |
| Players | pvp, mob-damage, fall-damage, firework-damage, natural-hunger-drain, item-drop, item-pickup, item-stacking, exp-drops, potion-splash, enderpearl, chorus-fruit-teleport, entry, exit |
| Mobs | mob-spawning, enderman-grief, ravager-grief, snowman-trails, entity-painting-destroy, entity-item-frame-destroy |
| Explosions | creeper-explosion, tnt, other-explosion, ghast-fireball, wither-damage, enderdragon-block-damage, breeze-charge-explosion, wind-charge-burst |
| Fire and flow | fire-spread, lava-fire, lightning, water-flow, lava-flow, pistons |
| Nature | leaf-decay, snow-fall, snow-melt, ice-form, ice-melt, frosted-ice-form, frosted-ice-melt, coral-fade, copper-fade, soil-dry, grass-growth, mycelium-spread, vine-growth, rock-growth, sculk-growth, crop-growth, mushroom-growth |
| Health (numbers) | heal-amount, heal-delay, heal-min-health, heal-max-health, feed-amount, feed-delay, feed-min-hunger, feed-max-hunger |
| Messages (text) | deny-message, entry-deny-message, exit-deny-message, greeting, farewell |
mob-spawning: deny also blocks mobs spawned by plugins (settings.block-plugin-spawning: true). With the protection-messages module, deny messages appear in the action bar instead of chat.
Spawn
#The spawn module handles /spawn (alias hub), the first-join and respawn location, and the rules of the spawn world. Moving a spawn: Spawn, RTP zone and portals.
| Command | What it does | Permission |
|---|---|---|
/spawn | Teleport to spawn (or open the spawn menu when there are several) | everyone |
/spawn <player> | Send another player | simplesmpcore.spawn.others |
/setmainspawn | Set the main spawn (number 1) where you stand | simplesmpcore.spawn.set (OP) |
/setspawn <number>, /delspawn <number> | Add or delete more numbered spawns | simplesmpcore.spawn.set (OP) |
/build | Toggle the spawn protection bypass for yourself | simplesmpcore.spawn.build (OP) |
Setting (modules/default/spawn/config.yml) | Default | Description |
|---|---|---|
teleport-delay | 5s | Countdown; moving cancels it. |
menu.enabled | true | With more than one spawn, /spawn opens a selection menu. |
max-players-per-spawn | 100 | A full spawn is shown red in the menu. |
teleport-on-first-join | true | New players start at the main spawn. |
teleport-on-join | false | Send everyone to spawn on every join. |
teleport-on-respawn | true | Respawn at spawn when the player has no bed or anchor. |
first-join-target | spawn | Where the first join sends a player: spawn, rtp (random safe spot) or none (Minecraft decides). Since 1.16.6. |
respawn-target | spawn | Where a respawn without a bed or anchor sends a player: spawn, rtp or none. Since 1.16.6. |
respawn-at-bed | true | A valid bed or respawn anchor comes first. false = always use respawn-target. |
exempt-permission | "" | Players with this node are not moved by teleport-on-join and get the main spawn instead of a random spot. Empty = nobody. |
random-target.world | world | World of the rtp targets. |
random-target.use-rtp-area | true | Use this world's area in the rtp module (settings.regions, blocked blocks and biomes, allow-water); otherwise the random-respawn box. |
random-target.attempts | 10 | Random columns tried per search. |
random-target.first-join-wait | 5s | How long a new player's login may wait for the spot (0s to 10s). |
random-target.ready-spots | 3 | Spots found ahead of time in the background, so first joins and respawns do not wait for chunk generation. Kept only while a target is rtp; 0 = off. |
random-respawn.enabled | false | Old setting: respawn at the spawn, then move to a random spot in a box. respawn-target: rtp is the newer way. |
protection.enabled | true | Protect the world(s) that contain a spawn. radius: 0 = the whole world. |
protection.* | see file | Block break and place, PvP, natural mob spawns, explosions, weather change, hunger, fall damage (falling into the void returns to spawn), fire and item drops. |
Start in the wild (random first join and respawn)
#Since SimpleSMPCore 1.16.6 new players can start at a random safe spot instead of the spawn, and players without a bed
or respawn anchor can respawn at one. Players then only go to the spawn when they type /spawn.
# modules/default/spawn/config.yml
settings:
teleport-on-first-join: true
teleport-on-join: false # later joins: the player continues where they left
teleport-on-respawn: true
first-join-target: rtp
respawn-target: rtp
respawn-at-bed: true # a valid bed or anchor still comes first
random-target:
world: world
use-rtp-area: true
Apply it with /smpcore reload, no restart needed.
- First join: the spot is searched before the player enters the world, so new players appear directly in the wild.
When it takes longer than
first-join-wait, they are moved there right after joining. - Respawn: the spot is searched already when the player dies, so they respawn there directly instead of seeing the spawn first. On Folia the respawn is applied by a teleport right after the player is alive.
- Safe spots only: chunks load asynchronously (the main thread never waits), only spots inside the world border and the rtp area are used, never water, lava, magma or fire. Pre-generating the area (for example with Chunky) makes the search faster. When nothing is found after three searches, the player gets a message and stays where Minecraft put them.
- The defaults (
spawn) keep the behaviour of older versions; updating changes nothing by itself.
AFK areas and idle kick
#Part of the general module (modules/default/general/config.yml):
/afkteleports to an AFK area (with a menu when there are several, up to 100 players per area)./setafkcreates AFK areas; locations are stored indata/general/afk-areas.yml.- Idle detection (
idle.after: 5m): a player who does not move, chat or use a command counts as AFK. Daily rewards, quests and playtime use this. TheAFKworld and theafkarea count as AFK zones (idle.afk-worlds,idle.afk-regions). - Idle kick (
afk-kick): players without a tier are kicked after15midle; tier permissionssimplesmpcore.general.afk.kick.<minutes>(30, 45, 60, 90, 120 declared) give longer times. Players in an AFK zone are never kicked, warnings come at 60, 30 and 10 seconds, and the time is halved when the server is 90% full. Never kicked:simplesmpcore.general.bypass.afk-kick. - Shard income in the AFK world: see Economy.
Portals
#The portals module runs a command when a player enters a protected area:
portals:
afk:
region: afk_portal
command: '[player] afk'
end:
region: portal_end
command: '[player] rtp world_the_end'
nether:
region: portal_nether
command: '[player] rtp world_nether'
[player] runs the command as the player, [console] as the console (%player% = name). send-message: true also sends message. disable-end-portal: true makes vanilla Nether and End portals inside the area do nothing (the plugin never changes blocks).
- A portal is found by region name in the world the player stands in; the
portalsmodule has noworldkey. A region with that name in any world works. - It fires when a player walks into the region (at most once per second per player,
trigger-cooldown-ms). Teleporting into the region does not fire it. - Edit
modules/default/portals/config.ymland run/smpcore reload portals. To remove a portal delete its block undersettings.portals(removed portals are never re-added);/smpcore module portals disableswitches all of them off. - The overworld ("wilderness") portal is not here: it is a coordinate box, see Random teleport.
Move, retarget or remove a portal: Spawn, RTP zone and portals.
Random teleport
#/rtp [world] [player] (aliases randomtp, wild, wildtp, tpr) teleports to a random safe spot. Without a world it opens a menu (modules/default/rtp/menus/rtp.yml, one button per world); it never means "the world I am in". /rtp world_nether and /rtp world_the_end (or the aliases nether, end) are used by the spawn portals. A world that has no area under settings.regions or is not loaded answers "No RTP area is set for ...". Sending another player needs simplesmpcore.rtp.others.
The overworld RTP portal is a coordinate box under settings.portals.spawn (enabled, world, min-x to max-z, target, warmup). The package ships it enabled in the Spawn world (the jar default is off). After moving it run /smpcore reload rtp. Moving, retargeting and fixing portals: Spawn, RTP zone and portals.
Setting (settings. in modules/default/rtp/config.yml) | Default | Description |
|---|---|---|
cooldown | 2m | Cooldown without a tier; ranks get shorter cooldowns (cooldown-tiers). The portals share it. Bypass: simplesmpcore.rtp.bypass.cooldown. |
warmup | 6s | Countdown after a safe spot was found. |
regions.<world> | world ±5000, Y 50 to 319 | Area per world; only worlds listed here (and loaded) work. Nether ±2500 (Y 32 to 120), End ±150. |
world-aliases | overworld, nether, end | Short names for /rtp <name>. |
blocked-blocks, blocked-biomes | lava, magma; beach | Never land here. |
effects | Absorption for 10 s | Potion effects after landing. |
portal-settings | push-back 0.6 / 0.25 | What the overworld portal does when the teleport cannot start (cooldown running, refused). |
RTP zone
#The rtp-zone module turns the rtpzone area at spawn into a group teleport: everyone standing in it is sent together to one random area after a 30s countdown, each on their own safe spot 5 to 10 blocks apart (spread). Players see the title "RTP ZONE" and the subtitle "Teleporting in: 30". The target area is settings.area in modules/default/rtp-zone/config.yml: world ±1000 by default, one world, X and Z only.
/rtpzone (permission simplesmpcore.rtp-zone.admin) has info, setarea, setzone, tp, preview, test, wand and menu; /rtpzonereload reloads the module.
/rtpzone setarea radius 1000saves a square around you in the world you stand in;/rtpzone setareasaves the box of your selection in the selection's world. Run at spawn, the target area becomes the Spawn world and the group lands inside your Spawn map./rtpzone infoshows the target area and its world.- The zone is found by region name in the world the player stands in. A leftover
rtpzoneregion inside a new build starts the countdown for everyone who walks through it;/protection infothere lists it. /smpcore module rtp-zone disableswitches the zone off (saved inconfig.yml).
Setting the area, moving, removing or switching off the zone: Spawn, RTP zone and portals.
Combat tag
#The combat module tags players who hit each other for 15s:
- Logging out while tagged kills the player (
kill-on-logout: true). - Blocked while tagged:
spawn,home,warp,tpa,tpahere,rtp,afk,backandfly, and teleports by other means. - Tagged players cannot enter protected areas (
block-protected-regions). Elytra and ender pearl bans are optional. - Staff:
/combatmanager tag,untagandinfo.
Fly and double jump
#/fly works in the worlds listed in modules/default/fly/config.yml (allowed-worlds, blocked-worlds). Double jump works in the spawn and AFK areas (modules/default/double-jump/config.yml → worlds). Both lists accept the 26.x world names too.
Found a mistake or something missing? Open a ticket on Discord.
Report an issue