Files
Stargate/stargate-paper/src/main/resources/config.yml
T
Michael Burgess 712af607d7 Slow default chevron animation to 1 per second
dialing.chevron-tick-delay default changed from 4 ticks (0.2s) to 20
ticks (1s) per chevron.
2026-08-09 14:23:32 -04:00

95 lines
4.5 KiB
YAML

# Stargate configuration
# Unique id for THIS server. Used to tag gates created here and to route cross-server
# dials through the proxy. Must be unique across your network and match the server's
# name as configured in the Velocity/Bungee proxy config.
server-id: "server1"
storage:
# sqlite -> single server, file-based, zero setup
# mysql -> required if you want gates to be visible/dialable across multiple
# backend servers sharing this same database
type: sqlite
mysql:
host: localhost
port: 3306
database: stargate
username: stargate
password: ""
table-prefix: "stargate_"
# Extra JDBC connection parameters, appended to the URL as ?key=value&key=value.
# Defaults to useSSL: false and autoReconnect: true if you don't set them here -
# any key you list overrides that default (e.g. set useSSL: true and add sslMode
# to actually require TLS). Values are written into the URL as-is.
properties:
# useSSL: true
# sslMode: REQUIRED
# serverTimezone: UTC
# allowPublicKeyRetrieval: true
# Enables sending players to another backend server when they dial a gate whose
# server-id differs from this one. Requires the stargate-velocity or stargate-bungee
# companion plugin installed on the proxy, and storage.type: mysql so all servers
# share gate data.
cross-server:
enabled: false
# How often (in seconds) this server checks the shared database for gates other
# servers have created, updated, or removed since it last looked. Without this, a
# server that's already running never finds out about a gate another backend made
# after it booted - the row exists, but nothing prompts a reload. Doesn't touch
# this server's own gates or any live dial/open state.
refresh-seconds: 30
gate:
# Any of these materials count as the ring's frame (and count as a valid chevron
# material too, since chevrons are just frame blocks the plugin temporarily swaps).
# Add to this list to match your build - but keep it to materials that are ONLY
# used for the ring itself. Anything also used decoratively nearby (a backdrop
# wall, a matching accent block elsewhere) risks the flood-fill picking up that
# unrelated structure as part of the frame if it touches the ring anywhere in the
# same plane. The ring can be any size or shape, as long as it's a single connected
# loop with a fully sealed hollow interior - no fixed template or size is required.
# "Connected" includes diagonal stepping (round rings need that at their corners),
# but only within the ring's own flat plane.
frame-materials:
- OBSIDIAN
# Chevrons aren't a separate material you place. The plugin flood-fills the ring,
# walks it in geometric order, and picks this many blocks, evenly spaced around the
# ring's actual perimeter (not raw scan order) - then swaps just those to
# chevron-lit-material while dialing/open, restoring whatever they looked like at
# rest when the gate closes.
chevron-lit-material: GLOWSTONE
chevron-count: 7
# The interior's look is driven by two independent things, matching SG-1:
# - The iris shield: a physical barrier toggled with a button placed directly below
# the control sign. Closed means closed - iris-shield-material, solid, blocking
# everything - REGARDLESS of whether a wormhole is even active right now.
# - Whether the shield is open: then it's iris-open-material (the event horizon)
# if the gate is actively connected, or iris-idle-material (just empty air, you
# see straight through) if it's just sitting there dialed to nothing.
iris-idle-material: AIR
iris-open-material: WATER
iris-shield-material: BEDROCK
max-frame-blocks: 300
max-iris-blocks: 200
min-frame-blocks: 8
# After placing a "[Stargate]" sign, the owner has this long to left-click (punch) a
# block of the actual gate frame to link it - the sign itself can sit anywhere, like a
# DHD console away from the gate, instead of being mounted directly on the frame.
link-timeout-seconds: 30
# How far (in blocks) the punched frame block may be from the sign.
max-link-distance: 64
# If a gate has a pin code set (/sg pin <code>), this is how long a player has to
# type it in chat after pressing the iris button while the shield is closed.
pin-timeout-seconds: 20
dialing:
# Seconds the gate stays open (iris filled) before auto-closing if nobody walks through.
open-seconds: 10
# Delay in ticks between lighting each chevron during the dial animation (20 ticks = 1 second).
chevron-tick-delay: 20
play-sounds: true
network:
default-network: "main"