1
0
mirror of https://e.coding.net/circlecloud/AuthMe.git synced 2025-11-24 21:26:20 +00:00

modify config and message...

Signed-off-by: 502647092 <jtb1@163.com>
This commit is contained in:
502647092
2015-10-12 19:49:06 +08:00
parent 5a00c165dc
commit 48650c7621
4 changed files with 67 additions and 74 deletions

View File

@@ -1,72 +1,65 @@
DataSource:
# What type of database do you want to use?
# Can be set to: sqlite, sqlitehikari, mysql
# (sqlitehikari should be more fast than normal sqlite but it's an experimental feature!)
# 你希望如何存储登陆数据?
# 允许设置的值: sqlite, sqlitehikari, mysql
# (sqlitehikari 比普通的 sqlite 更快 但这只是一个实验功能!)
backend: sqlite
# Enable database caching
# 开启数据缓存
caching: true
# Database location
# MySql 数据库地址
mySQLHost: 127.0.0.1
# Database Port
# MySql 数据库端口
mySQLPort: '3306'
# MySql Max Connections
# MySql 最大连接数
mySQLMaxConections: 25
# Username about Database Connection Infos
# MySql 用户名
mySQLUsername: authme
# Password about Database Connection Infos
# MySql 密码
mySQLPassword: '12345'
# Database Name, use with converters or as SQLITE database name
# MySql 数据库名称, 或者是 SQLITE 数据库名称
mySQLDatabase: authme
# Table of the database
# 数据库表名
mySQLTablename: authme
# Column of IDs to sort data
# 字段 id 字段名
mySQLColumnId: id
# Column for storing or checking players nickname
# 字段 username 字段名
mySQLColumnName: username
# Column for storing players passwords
# 字段 password 字段名
mySQLColumnPassword: password
# Column for storing players emails
# 字段 email 字段名
mySQLColumnEmail: email
# Column for Saving if a player is logged in or not
# 字段 isLogged 字段名
mySQLColumnLogged: isLogged
# Column for storing players IPs
# 字段 ip 字段名
mySQLColumnIp: ip
# Column for storing players lastlogins
# 字段 lastlogin 字段名
mySQLColumnLastLogin: lastlogin
# Column for SaveQuitLocation - X
# 字段 x 字段名
mySQLlastlocX: x
# Column for SaveQuitLocation - Y
# 字段 y 字段名
mySQLlastlocY: y
# Column for SaveQuitLocation - Z
# 字段 z 字段名
mySQLlastlocZ: z
# Column for SaveQuitLocation - World name
# 字段 world 字段名
mySQLlastlocWorld: world
# Column for RealName
# 字段 realname 字段名
mySQLRealName: realname
settings:
sessions:
# Do you want to enable the session feature?
# If enabled, when a player authenticates successfully,
# his IP and his nickname is saved.
# The next time the player joins the server, if his IP
# is the same of the last time, and the timeout time
# hasn't expired, he will not need to authenticate.
# 是否开启 Session 缓存.
# 如果开启 Session 玩家可以在特殊情况下自动登录.
# 他的IP和名称将会被保存.
# 在他下次进入服务器时.
# 如果 名称 IP 都相同 并且没有超出缓存时间.
# 那么他可以自动登录到服务器.
enabled: false
# After how many minutes a session should expire?
# 0 for unlimited time (Very dangerous, use it at your own risk!)
# Consider that session will end only after the timeout time, and
# if the player's ip has changed but the timeout hasn't expired,
# player will be kicked out of sever due to invalidSession!
# Session 缓存时间
timeout: 10
# Should the session expire if the player try to login with an
# another IP Address?
# 下次登陆是否需要检查 IP
sessionExpireOnIpChange: true
restrictions:
# Can not authenticated players chat and see the chat log?
# Care that this feature blocks also all the commands not
# listed in the list below.
# 未登录情况下是否允许聊天.
allowChat: false
# Commands allowed when a player is not authenticated
# 未登录情况下允许使用的命令.
allowCommands:
- /login
- /register
@@ -74,9 +67,9 @@ settings:
- /reg
- /email
- /captcha
# Max number of allowed registrations per IP (default: 1)
# 每一个 IP 允许注册的账号 (默认: 1)
maxRegPerIp: 1
# Max allowed username length
# 允许的最大用户名长度
maxNicknameLength: 16
# When this setting is enabled, online players can't be kicked out
# due to "Logged in from another Location"
@@ -140,8 +133,8 @@ settings:
- world_the_end
# Ban ip when the ip is not the ip registered in database
banUnsafedIP: false
# Spawn Priority, Values : authme, essentials, multiverse, default
spawnPriority: authme,essentials,multiverse,default
# Spawn Priority, Values : authme, essentials, default
spawnPriority: authme,essentials,default
# Maximum Login authorized by IP
maxLoginPerIp: 0
# Maximum Join authorized by IP
@@ -234,7 +227,7 @@ settings:
# It is CaseSensitive!
UnrestrictedName: []
# Message language, available : en, de, br, cz, pl, fr, ru, hu, sk, es, zhtw, fi, zhcn, lt, it, ko, pt
messagesLanguage: en
messagesLanguage: zhcn
# Force these commands after /login, without any '/', use %p for replace with player name
forceCommands: []
# Force these commands after /login as a server console, without any '/', use %p for replace with player name
@@ -351,8 +344,6 @@ Email:
# WhiteList only these domains for emails
emailWhitelisted: []
Hooks:
# Do we need to hook with multiverse for spawn checking?
multiverse: true
# Do we need to hook with BungeeCord for get the real Player ip ?
bungeecord: false
# Do we need to disable Essentials SocialSpy on join ?
@@ -385,6 +376,7 @@ Protection:
countries:
- US
- GB
- CN
# Countries blacklisted automatically ( without any needed to enable protection )
countriesBlacklist:
- A1