• 因近日遭受攻击,百科现已限制新用户的编辑权限,一段时间后成为自动确认用户方可编辑。

Difference between revisions of "CrazyLogin/配置文件"

From Minecraft插件百科
Jump to: navigation, search
(关于配置文件config.yml)
(添加待翻译 模板)
(Tag: mobile edit)
Line 1: Line 1:
== 关于配置文件config.yml ==
+
{{待翻译}}
 +
= config.yml =
 
version: X.Y
 
version: X.Y
 
  此插件的版本可以在这里找到
 
  此插件的版本可以在这里找到

Revision as of 07:51, 1 February 2015

Icon-info.png
本页面已存在其他语言的内容,请协助翻译为本地化的中文。
  • 点击此处开始翻译。
  • 如本模板出现在原文存档页面,请注意更新主页面后,仍需要去除此处该模板
  • 如当前页面已经没有需要翻译的内容,请删去待翻译模板
  • 有标题的大篇幅文章,如果短时间内无法全部翻译,请先把所有的标题翻译出来,以便
  • 之后的贡献者选择与翻译章节内容。

config.yml

version: X.Y

此插件的版本可以在这里找到
https://github.com/ST-DDT/CrazyLogin/blob/master/src/main/resources/plugin.yml
提示信息头部 (它不能被任意一种reload所改变(也就是说,只能重启))

chatHeader: '&C[&ACrazyLogin&C] &F' database:

保存类型↓ 可以为: 'MYSQL'(MYSQL数据库),'FLAT'(文件name.db),'CONFIG'(不明)
 saveType: FLAT
是否在关服时写入数据
 saveOnShutdown: true
CONFIG 数据记录模式配置
 CONFIG:
path inside config.yml
   path: accounts
   columns:
     name: name
     password: password
     ips: ips
     lastAction: lastAction
FLAT 数据记录模式配置
 FLAT:
数据库文件在插件config.yml所在目录中,下面可以更改文件名
   filePath: accounts.db
MYSQL 数据库记录配置
更多MYSQL配置戳这里 → 这里
 MYSQL:
   connection:
     host: localhost     链接数据库地址
     port: '3306'        端口
     dbname: Crazy       数据库名
     user: root          用户名
     password:         密码
   tableName: CrazyLogin_accounts   表的名字
是否在没有玩家在线时让数据加载(这会消耗RAM!). 
设置为false来使插件RAM占用减少
   cached: true
如果下面的选项设置为true,那么在玩家登陆时将不会更新数据库, 
通常在多个服务器使用同一数据库时派上用场
   static: false
   columns:
     name: name
     password: password
     ips: ips
     lastAction: lastAction
SQLITE 数据库配置
 SQLITE:
   connection:
     path: plugins/CrazyLogin/accounts.sqlite   sqlite路径
   tableName: CrazyLogin_accounts               表名
是否在没有玩家在线时让数据加载(这会消耗RAM!). 
设置为false来使插件RAM占用减少
   cached: true
如果下面的选项设置为true,那么在玩家登陆时将不会更新数据库, 
通常在多个服务器使用同一数据库时派上用场
   static: false
   columns:
     name: name
     password: password
     ips: ips
     lastAction: lastAction
设置在登录时是否一定需要密码或令玩家在想登陆时输入密码,玩家没有登录(或注册)时不能聊天、合成、破坏/创建方块、扔掉/拾取物品、移动/传送或瞬移、打开容器
权限节点无效,op或者玩家一定需要输入密码或可选地输入密码

alwaysNeedPassword: true

如果设置为true你得输入两次你的密码.(}注意,这个括号表示不用输)
Ex: /register {OldPassword} <NewPassword> <NewPassword>

confirmNewPassword: false

如果设置为true你必须在改变新密码时输入旧密码.
Ex: /register <OldPassword> <NewPassword> {NewPassword}

confirmWithOldPassword: false

if true if everyone is logged in protection will be disabled to decrease overall performance usage, 
but increase join, login and quit performance 

dynamicProtection: false

hides LOGIN.FAILEDWARN & COMMAND.EXPLOITWARN messages
INFO: some other warn messages will be hidden in the future too.
WARNING: you won't notice any (blocked) attempt to hack the server (until he managed to do so). 

hideWarnings: false

you have to login again after being inactive/offline for at least x seconds
when using a new ip you are logged out automatically

autoLogout: 3600

功能开启时,在线却不登陆x秒后会被踢出 (-1=不开启)

autoKick: -1

when enabled you are banned for x seconds after being kicked for waiting to long to login (-1=不开启)

autoTempBan: -1

when enabled you are kicked when not having an account after x seconds (-1=不开启)

autoKickUnregistered: -1

功能开启时,将会在失败登陆x次后被踢出 (-1=不开启)

autoKickLoginFailer: 3

功能开启时,将会因为登陆失败而封禁x秒 (-1=不开启)

autoTempBanLoginFailer: -1

功能开启时,将会因为使用不在白名单内的命令(违禁命令)x次而被踢出 (-1=不开启,下面的false也是不开启)

autoKickCommandUsers: false

功能开启时,你将会因为使用不在白名单内的命令而被封禁x秒 (-1=不开启)

autoTempBanCommandUsers:

功能开启时,不能在未登录状态下使用命令 (同使用违禁命令自动踢出功能一起工作) (true=开启/false=不开启)

blockGuestCommands: true

功能开启时, 不能在未登录状态下发信息(true=开启/false=不开启)

blockGuestChat: false

功能开启时,不能在未注册(数据库注册)情况下加入服务器 (同SQL数据库一起工作) (true=开启/false=不开启)

blockGuestJoin: false

玩家数据将会在离开游戏后被重置 
这包括所有的crazy系列插件, playerfile (if enabled), +more (if commands are setup)
在这之后在服务器内搜索玩家名字将不会搜索到文件 (最好情况)

removeGuestData: false

if set to true ingame registrations are disabled (command and pluginChannel) (true=开启/false=不开启)

disableRegistrations: false

if set to true you cannot use adminlogin command (true=开启/false=不开启)

disableAdminLogin: false

if set to true you cannot use tokenlogin command (true=开启/false=不开启)

disableTokenLogin: false

when disabled request login/register messages are spammed every cancelled action, when enabled only every 5 or more seconds (true=开启/false=不开启)

doNotSpamAuthRequests: false

only ask the player once to create a password (if alwaysNeedPassword=false) (true=开启/false=不开启)

doNotSpamRegisterRequests: false

auth request are delayed for x ticks to prevent it from being displaced by other messages.

delayAuthRequests: 0

repeat requests every x ticks to prevent it from being displaced by other messages.

repeatAuthRequests: 200

these commands can be executed as guest (even if blockGuestCommands is enabled) or when not logged in

commandWhitelist: - /l(ogin)?(\z| .*) - /register(\z| .*) - /language(\z| [a-z]{2,3}_[a-z]{2,3}) - /language select(\z| .*) - /language list(\z| .*) - /worldedit cui

the encryption alogrithm used to encrypt your passwords. http://dev.bukkit.org/server-mods/crazylogin/pages/encryption/

encryptor:

 name: CrazyCrypt1
密码最短长度

minPasswordLength: 3

对于保护者(特定权限拥有者)的最短密码长度

protectedAccountMinPasswordLength: 7

block player join with an online players name (prevents Logged in from another location messages) (true/false)

forceSingleSession: true

bypass forceSingleSession when using the same ip (true/false)

forceSingleSessionSameIPBypass: true

activates the preLoginSecurity x ticks later (hideInventory / forceSaveLogin) (false/0, 1 , ...)
this is intended to allow customSpawns and joinRewards

delayPreRegisterSecurity: 5

activates the preLoginSecurity x ticks later (hideInventory / forceSaveLogin) (false/0, 1 , ...)
this is intended to allow customSpawns and joinRewards
WARNING: some hacked clients may be able to use that time to read the inventory/location

delayPreLoginSecurity: false

when enabled you are teleported to spawn until login if recieving damage. (true/false)

saveLoginEnabled: true

when enabled you are teleported to spawn until login. (true/false)
this fixes issues with AntiCheatPlugins whilte not logged in and being in mid air.

forceSaveLogin: false

custom saveLogin locations for each world

saveLoginLocations: {}

 world:
   x: 1500
   y: -300
   z: 0.1
this parameters are optional
   world: world
   yaw: 0
   pitch: 0
when enabled your inventory is hidden until login. (true/false)

hideInventory: false

hide every player which isn't logged in. (true/false)

hidePlayer: false

hide chat from players who aren't logged in to avoid espionage. (true/false)

hideChat: false

Delay Join messages until login / hide Quit messages if not logged in. (true/false)

delayJoinQuitMessages: false

use the multilingual messages defined in the lang files. (true/false)

useCustomJoinQuitMessages: true

hide Password from Console (Player issues command: /login Password) (true/false)
INFO: This could bypass some command protections/mechanics from other plugins in very rare cases.

hidePasswordsFromConsole: false

maximum count of ips stored per player

maxStoredIPs: 5

maximum players allowed to play on your server at once

maxOnlinesPerIP: 3

maximum players allowed to register an account using the same ip on your server

maxRegistrationsPerIP: 3

automatically delete accounts that haven't been used for x days(-1=disabled)
WARNING: deletes all data belonging to this player (including those saved in other plugins; equals "/crazycore player delete <Player>")

autoDelete: -1

call special events (do not enable it, if you don't need it)
send raw passwords to other plugins when changing passwords

pluginCommunicationEnabled: false

you can move x blocks from the location you joined when not logged in
when set to 0 you cannot move/rotate

moveRange: 5.0

when enabled only default chars are allowed in a players name (true/false/[a-zA-Z0-9_]/...)

filterNames: true

check a players name case for its char case (true/false)
when enabled a player cannot join as "PLaYer" when he registered as "Player"
some encryptions may fail when a player has different char cases.
INFO: a player cannot bypass login by using an different name case at any time.

blockDifferentNameCases: false

最短用户名限制

minNameLength: 3

最长用户名限制 (minecraft 游戏中默认是 16)

maxNameLength: 16

additional information about logging can be found here http://dev.bukkit.org/server-mods/crazycore/pages/logging/

logs:

 Join:
   path: false
   console: false
 Quit:
   path: false
   console: false
 Login:
   path: false
   console: false
 Account:
   path: false
   console: false
 Logout:
   path: false
   console: false
 LoginFail:
   path: false
   console: false
 ChatBlocked:
   path: false
   console: false
 CommandBlocked:
   path: false
   console: false
 AccessDenied:
   path: false
   console: false