add config files

This commit is contained in:
Satria 2026-06-21 13:22:51 +07:00
commit 2c3eeb7fc1
26 changed files with 2284 additions and 1 deletions

View file

@ -0,0 +1,190 @@
# ## ##
# ## EasyAuth ##
# ## Extended Configuration ##
# ## ##
# Allow chat messages to be sent by players who are not logged in.
allow-chat=false
#
# Allow players to use all commands while not logged in.
allow-commands=false
#
# List of allowed commands for players who are not logged in.
allowed-commands=[]
#
# Allow players to move while not logged in.
allow-movement=false
#
# Allow players to interact with blocks while not logged in.
allow-block-interaction=false
#
# Allow "right-clicking" on an entity (e.g. clicking on villagers) by players who are not logged in.
allow-entity-interaction=false
#
# Allow players to punch blocks while not logged in.
allow-block-breaking=false
#
# Allow players to attack entities while not logged in.
allow-entity-attacking=false
#
# Allow players to drop items while not logged in.
allow-item-dropping=false
#
# Allow players to move items in their inventory while not logged in.
allow-item-moving=false
#
# Allow players to use items while not logged in.
allow-item-using=false
#
# Allow custom payload and custom click action packets to be processed by non-op players (op level 0 or 1) while not logged in.
allow-custom-packets-for-non-op=false
#
# Allow custom payload and custom click action packets to be processed by all players while not logged in.
# Note: this setting overrides allowCustomPacketsForNonOp.
allow-custom-packets=false
#
# List of allowed custom packet identifiers for players who are not logged in.
# Works similarly to allowedCommands by checking packet identifier prefix.
# For custom payload packets, use channel identifiers (e.g. voicechat:request_secret).
# With debug logging enabled, you can see declined custom packets in the console with their identifiers.
allowed-custom-packets=[]
#
# Allow all packets to be processed while not logged in.
# Note: this setting overrides allowCustomPackets.
allow-all-packets=false
#
# Hide player's inventory from them while not logged in.
hide-inventory=true
#
# If player should be invulnerable before authentication.
player-invulnerable=true
#
# If player should be ignored by mobs before authentication.
player-ignored=true
#
# Cancellation of packets with player's movement and teleportation back leads to an increase number of these packets.
# That setting limits players teleportation.
# This setting is per-player so maximum rate would be (1000/teleportation-timeout-ms) per seconds for each unauthorised player.
# Value 0 would effectively disable this setting so players will be teleported after each packet.
teleportation-timeout-ms=20
#
# List of aliases for commands.
aliases {
#
# `/l` for `/login`
login=true
#
# `/reg` for `/register`
register=true
}
#
# Try to rescue player if they are stuck inside a portal on logging in.
# For more information, see https://github.com/NikitaCartes/EasyAuth/wiki/Portal-Rescue
try-portal-rescue=true
#
# Minimum length of a password.
min-password-length=4
#
# Maximum length of a password.
# -1 for no limit.
max-password-length=-1
#
# Regex for validation of player names.
# For more information, see https://github.com/NikitaCartes/EasyAuth/wiki/Username-Restriction
username-regexp="^[a-zA-Z0-9_]{3,16}$"
#
# Allow floodgate players to bypass regex check.
floodgate-bypass-regex=true
#
# Prevents player being kicked because another player with the same name has joined the server.
prevent-another-location-kick=true
#
# Whether to modify player uuids to offline style.
# Note: this should be used only if you had your server
# running in offline mode, and you made the switch to use
# AuthConfig#premiumAutoLogin AND your players already
# have e.g. villager discounts, which are based on uuid.
# Other things (advancements, playerdata) are migrated
# automatically, so think before enabling this. In case
# an online-mode player changes username, they'll lose all
# their stuff, unless you migrate it manually.
forced-offline-uuid=false
#
# Skip all authentication checks for all players.
# Intended for use with proxies that handle authentication
skip-all-auth-checks=false
#
# If true, 'skipAllAuthChecks' does not apply to registered players.
skip-all-auth-checks-not-for-registered-players=true
#
# If true, 'skipAllAuthChecks' does not apply to operator (op level >=2) players.
skip-all-auth-checks-not-for-operators=true
#
# Allow players to join the server with same username as previously registered player, but in different case.
allow-case-insensitive-username=false
#
# Time in seconds before a player is prompted to authenticate again.
authentication-prompt-interval=10
#
# Connection settings for the Mojang API.
mojang-api-settings {
#
# URL of the Mojang API.
url="https://api.minecraftservices.com/minecraft/profile/lookup/name/"
#
# Connection timeout in milliseconds.
connection-timeout=5000
#
# Read timeout in milliseconds.
read-timeout=5000
}
#
# Log player registration as info level log.
log-player-registration=false
#
# Log player login as info level log.
log-player-login=false
#
# Prevent offline players from joining the server using online usernames.
prevent-offline-players-with-online-usernames=false
#
# Check offline players with online usernames every time they join the server for online account.
check-offline-players-with-online-usernames=false
#
# IP Limit Settings - Restrict the number of accounts that can be registered/logged in from the same IP address.
ip-limit {
#
# Enable IP-based account limit.
# When enabled, limits the number of accounts that can be registered/logged in from the same IP address.
enabled=false
#
# Maximum number of accounts allowed per IP address.
# Set to -1 to disable the limit.
max-accounts-per-ip=2
#
# Block registration attempts when the IP limit is exceeded.
# If false, players can still register but admins will be notified.
block-excess-registration=true
#
# Notify admins (players with op level >=3) when a new IP address attempts to exceed the account limit.
notify-admins=true
#
# List of IP addresses that are exempt from the limit (e.g., localhost, trusted IPs).
exempt-ips=[
"127.0.0.1",
localhost
]
#
# Cache expiry time in seconds for IP account count cache.
# Lower values mean more frequent database queries but more accurate counts.
cache-expiry-seconds=300
#
# Maximum number of concurrent online sessions allowed from the same IP address.
# Set to -1 to disable the limit.
# This check is performed at player join time.
max-concurrent-sessions-per-ip=-1
#
# Whether online (premium) players are exempt from the concurrent session limit.
# If true, premium players that auto-login will not be blocked by the session limit.
exempt-online-players=false
}

72
config/EasyAuth/main.conf Normal file
View file

@ -0,0 +1,72 @@
# ## ##
# ## EasyAuth ##
# ## Main Configuration ##
# ## ##
# Whether online players should skip the authentication process.
# You have to set online-mode to true in server.properties!
# (cracked players will still be able to enter, but they'll need to log in)
premium-auto-login=true
#
# Consider all players as offline players until they set online status by themselves with /account online command.
# Also this status can be set with /auth markAsOnline/markAsOffline <player> command by admin.
# Enabling this option will prevent "invalid session" errors
# For more information, see https://github.com/NikitaCartes/EasyAuth/wiki/AutoLogin-Mojang-accounts
offline-by-default=false
#
# Whether bedrock players should skip the authentication process.
# You have to set online-mode to true in server.properties!
floodgate-auto-login=true
#
# How long to keep session (auto-logging in the player), in seconds.
# Set to -1 to disable.
# For more information, see https://github.com/NikitaCartes/EasyAuth/wiki/Sessions
session-timeout=86400
#
# Maximum login tries before kicking the player from server.
# Set to -1 to allow unlimited, not recommended, however.
max-login-tries=3
#
# Time in seconds before a player is kicked for not logging in.
kick-timeout=60
#
# Time in seconds player to be allowed back in after kicked for too many login attempts.
reset-login-attempts-timeout=120
#
# To login or register, player must use global password or password set by admin.
# Global password should be set with next command: /auth setGlobalPassword <password>
# For more information, see https://github.com/NikitaCartes/EasyAuth/wiki/Global-password
enable-global-password=false
#
# Global password can be used only for registration, after that, the player should log in with their own password.
# You need to restart the server to apply changes.
# | enable-global-password | single-use-global-password | Description |
# | true | true | Global password can be used only for registration, after that, the player should log in with their own password. |
# | true | false | Registration is disabled, players should log in with global password (or password set by admin). |
# | false | true / false | Normal registration/login process, global password is not used. |
single-use-global-password=false
#
# Whether to teleport player to chosen location when joining (to hide original player coordinates).
hide-player-coords=false
#
# Whether to hide player from other players until they are authenticated
# This option requires the Vanish mod to be installed: https://github.com/DrexHD/Vanish
vanish-until-auth=true
#
# Location where player will be teleported when joining.
# For more information, see https://github.com/NikitaCartes/EasyAuth/wiki/Coordinate-Hiding
world-spawn {
dimension="minecraft:overworld"
x=0.0
y=64.0
z=0.0
yaw=0
pitch=0
}
#
# Debug mode. Prints more information to debug.log.
debug=false
#
# Config Version. Used for automatic migration of config files.
# Do not change this value manually.
config-version=8

View file

@ -0,0 +1,67 @@
# ## ##
# ## EasyAuth ##
# ## Storage Configuration ##
# ## ##
#
# Note: If your string contains special characters, you should enclose it in double quotes.
# Database type. Can be sqlite, mysql, mongodb or postgresql. SQLite is set by default.
database-type=sqlite
#
# SQLite configuration.
sqlite {
#
# SQLite database path.
sqlite-path="EasyAuth/easyauth.db"
#
# SQLite table name.
sqlite-table=easyauth
}
#
# MySQL configuration.
mysql {
#
# MySQL host.
mysql-host=localhost
#
# MySQL user.
mysql-user=root
#
# MySQL password.
mysql-password=password
#
# MySQL database.
mysql-database=easyauth
#
# MySQL table name.
mysql-table=easyauth
}
#
# MongoDB configuration.
mongodb {
#
# MongoDB connection string.
mongodb-connection-string="mongodb://username:password@host:port/?options"
#
# MongoDB database name.
mongodb-database=easyauth
}
#
# PostgreSQL configuration.
postgresql {
#
# PostgreSQL host and port (e.g. localhost:5432).
pg-host="localhost:5432"
#
# PostgreSQL user.
pg-user=postgres
#
# PostgreSQL password.
pg-password=password
#
# PostgreSQL database name.
pg-database=easyauth
#
# PostgreSQL table name.
pg-table=easyauth
}

View file

@ -0,0 +1,6 @@
# ## ##
# ## EasyAuth ##
# ## Technical Config ##
# ## ##

View file

@ -0,0 +1,281 @@
# ## ##
# ## EasyAuth ##
# ## Translation Configuration ##
# ## ##
# Enable server-side translation.
# While enabled EasyAuth sends messages, translated to player's client language.
# List of available languages: https://github.com/NikitaCartes/EasyAuth/tree/HEAD/src/main/resources/data/easyauth/lang
# Disabling this option will force EasyAuth to send all messaged from that file.
enable-server-side-translation=true
#
# Default language for EasyAuth.
#
# Note: with server-side translation enabled, this language will be used for non-translatable messages
# Note: with disable server-side translation, message from "text" field have higher priority than defaultLanguage.
default-language="en_us"
enter-password {
text=""
enabled=true
serverSide=true
}
enter-new-password {
text=""
enabled=true
serverSide=true
}
wrong-password {
text=""
enabled=true
serverSide=true
}
match-password {
text=""
enabled=true
serverSide=true
}
password-updated {
text=""
enabled=true
serverSide=true
}
login-required {
text=""
enabled=true
serverSide=true
}
login-tries-exceeded {
text=""
enabled=true
serverSide=true
}
global-password-set {
text=""
enabled=true
serverSide=true
}
cannot-change-password {
text=""
enabled=true
serverSide=true
}
cannot-unregister {
text=""
enabled=true
serverSide=true
}
not-authenticated {
text=""
enabled=true
serverSide=true
}
already-authenticated {
text=""
enabled=true
serverSide=true
}
successfully-authenticated {
text=""
enabled=true
serverSide=true
}
successful-logout {
text=""
enabled=true
serverSide=true
}
time-expired {
text=""
enabled=true
serverSide=true
}
register-required {
text=""
enabled=true
serverSide=true
}
already-registered {
text=""
enabled=true
serverSide=true
}
register-success {
text=""
enabled=true
serverSide=true
}
userdata-deleted {
text=""
enabled=true
serverSide=true
}
userdata-updated {
text=""
enabled=true
serverSide=true
}
account-deleted {
text=""
enabled=true
serverSide=true
}
configuration-reloaded {
text=""
enabled=true
serverSide=true
}
max-password-chars {
text=""
enabled=true
serverSide=true
}
min-password-chars {
text=""
enabled=true
serverSide=true
}
disallowed-username {
text=""
enabled=true
serverSide=true
}
player-already-online {
text=""
enabled=true
serverSide=true
}
world-spawn-set {
text=""
enabled=true
serverSide=true
}
corrupted-player-data {
text=""
enabled=true
serverSide=true
}
user-not-registered {
text=""
enabled=true
serverSide=true
}
cannot-logout {
text=""
enabled=true
serverSide=true
}
offline-uuid {
text=""
enabled=true
serverSide=true
}
registered-players {
text=""
enabled=true
serverSide=true
}
valid-session {
text=""
enabled=true
serverSide=true
}
online-player-login {
text=""
enabled=true
serverSide=true
}
different-username-case {
text=""
enabled=true
serverSide=true
}
wrong-global-password {
text=""
enabled=true
serverSide=true
}
register-required-with-global-password {
text=""
enabled=true
serverSide=true
}
mark-as-offline {
text=""
enabled=true
serverSide=true
}
mark-as-online {
text=""
enabled=true
serverSide=true
}
self-mark-as-online {
text=""
enabled=true
serverSide=true
}
self-mark-as-online-warning {
text=""
enabled=true
serverSide=true
}
account-not-found {
text=""
enabled=true
serverSide=true
}
account-check-failed {
text=""
enabled=true
serverSide=true
}
database-error {
text=""
enabled=true
serverSide=true
}
unknown-error {
text=""
enabled=true
serverSide=true
}
ip-limit-exceeded {
text=""
enabled=true
serverSide=true
}
ip-limit-admin-notify {
text=""
enabled=true
serverSide=true
}
session-limit-exceeded {
text=""
enabled=true
serverSide=true
}
uuid-set {
text=""
enabled=true
serverSide=true
}
uuid-cleared {
text=""
enabled=true
serverSide=true
}
uuid-changed {
text=""
enabled=true
serverSide=true
}
invalid-uuid {
text=""
enabled=true
serverSide=true
}
no-forced-uuid {
text=""
enabled=true
serverSide=true
}