查看: 16958|回复: 3
打印 上一主题 下一主题

AuthMe-Reloaded 登录插件

[复制链接]

OP

萌新

Rank: 9Rank: 9Rank: 9

Sama

编写任务
2 个个
建筑作品
0 个个
论坛金币
3758 个

荒川4周目荒川一周年任务编写达人月刊贡献者月刊首刊

跳转到指定楼层
1#
发表于 2013-6-17 19:19 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
插件教材
插件分类: 管理工具
插件名称(英文): AuthMe
插件名称(中文): 登入插件
适用版本: 1.5.2版本
插件简介: 比xauth更加完善健全的安全登录插件。
插件特性: - 支持邮箱认证
- 禁止恶意ID
- 管理员可以登录其他玩家账户检验[需额外设置]
- 取消因为另外一个相同的ID登录造成的掉线问题
- 未登录也可以发言,但是需要额外设置
- 支持各种加密算法: MD5, SHA1, SHA256, xAuth, Whirlpool
- 非常方便的自定义各种提醒消息。
- 支持PHPBB网站接口
- 支持IPB3网站接口
- 支持PHPFUSION网站接口
- 支持Xenforo论坛接口
- 支持JOOMLA网站接口
- 支持双重MD5认证
- 自定义SQL表单结构
- 如果没有SQL可以建立缓存数据库文件。
- 支持Citizens公民插件
- 为注册与未注册用户分组以及区分权限
- 智能检测IP地址防范小号
- 保全登录/登出后的物品以及物品附魔效果
- 如果你装有Spout,那么他也将支持GUI登录
- 多国语言支持
- 自动备份所有账户
- 支持保存可以向SQL数据库导入转换的数据库文件
设置说明: -
命令: -
权限: #默认拥有的权限
- 注册权限 authme.register
- 登录权限 authme.login
- 登出权限 authme.logout
- 修改密码 authme.changepassword
- 取消注册 authme.unregister
#管理员权限
/authme register authme.admin.register
/authme unregister authme.admin.unregister
/authme reload authme.admin.reload
/authme changepassword authme.admin.changepassword
/authme convertflattosql authme.admin.convertflattosql

现在注册登录即可获得来自贴吧的土豪金铭牌!赶紧加入吧!

您需要 登录 才可以下载或查看,没有帐号?入住荒川

x
插件配置说明[config.yml]部分
  1. DataSource:
  2. # copyright(c) 233sama<span id="kM0.5909446803852916">@inrrr.com 2013 请勿转载</span>
  3. ############SQL设置部分未采用SQL数据库的用户可以跳过此步############
  4.     #MySQL column for players names
  5.     mySQLColumnName: username
  6.     #MySQL name of the table
  7.     mySQLTablename: authme
  8.     #MySQL Username for database connection
  9.     mySQLUsername: authme
  10.     #file, mysql or sqlite
  11.     backend: file
  12.     #MySQL column for players lastlogin
  13.     mySQLColumnLastLogin: lastlogin
  14.     #MySQL database name
  15.     mySQLDatabase: authme
  16.     #MySQL port for connection
  17.     mySQLPort: '3306'
  18.     #MySQL column for players ips
  19.     mySQLColumnIp: ip
  20.     #MySQL host for database connection
  21.     mySQLHost: 127.0.0.1
  22.     #MySQL column for players password
  23.     mySQLColumnPassword: password
  24.     #MySQL password for database connection
  25.     mySQLPassword: '12345'
  26.     # do you want caching? Only needed when the file
  27.     # backend is used or the MySQL database is on
  28.     # another host than the mc server
  29.     caching: true
  30.     #MySQL column for players last location X
  31.     mySQLlastlocX: x
  32.     #MySQL column for players last location Y
  33.     mySQLlastlocY : y
  34.     #MySQL column for players last location Z
  35.     mySQLlastlocZ : z
  36.     #MySQL column for players emails
  37.     mySQLColumnEmail: email
  38.     #MySQL column for id, keep default if you do not know what you're doing
  39.     mySQLColumnId: id
  40. #####################################
  41. GroupOptions:
  42.     # if you want to set up a particulary Permission Group for
  43.     # users that arent registered yet. Pay attention this option
  44.     # is casesensitive!
  45.     # Example: UnregisteredPlayerGroup: GuestUser
  46.     UnregisteredPlayerGroup: ''
  47.     # Same as UnregisteredGroup if u want to set a switch
  48.     # between unregistered and registered player group
  49.     # set the group name below
  50.     RegisteredPlayerGroup: ''
  51.     # with this option you can add specified permission onJoin
  52.     # like for example LoginBonus from another plugins, AuthMe
  53.     # will check onJoin if player has that permissions in his Group
  54.     # if true it add a temporany permissions to that user. This Field
  55.     # is needed beacuse AuthMe switch all unlogged players on a
  56.     # specified restricted Permission Group, so plugins that will use
  57.     # some particolary permissions on join doesnt work, without
  58.     # compiling option below!
  59.     Permissions:
  60.         PermissionsOnJoin: []
  61. settings:
  62.     sessions:
  63.         # Do you want to enable session? When enabled
  64.         # the ip of a player will be bound to the nickname
  65.         # of the player on login. As long as neither of those
  66.         # two change players don't have to login on a reconnect
  67.         enabled: false
  68.         # After how many minutes a session should timeout?
  69.         # 0 for unlimitted sessions, use 0 at your own risk!
  70.         # consider that session will end only after timeout, and
  71.         # if player's ip is changed but the timeout treshould isent
  72.         # ended, player will kick out of sever for unvalidSession!
  73.         timeout: 10
  74.         # Do we need to timeout the session if the player is offline
  75.         # And try to login with an another IP Address?
  76.         sessionExpireOnIpChange: false
  77.     restrictions:
  78.         # Can unregistered players chat, care , that block all commands except followers
  79.         allowChat: false
  80.         # Commands allowed when a player is unlogged
  81.         allowCommands:
  82.         - /login
  83.         - /register
  84.         - /l
  85.         - /reg
  86.         - /passpartu
  87.         - /email
  88.         - /captcha
  89.         # Maximum Registraion per IP default: 1
  90.         maxRegPerIp: 1
  91.         # max allowed nick length (Warning when you use
  92.         # mysql and choose a value >20 you have to
  93.         # increase the size of the nickname column in your
  94.         # mysql table)
  95.         maxNicknameLength: 20
  96.         # Player that is online arent
  97.         # kick out for "logged in from another
  98.         # Location", this options will prevent players that would exploit
  99.         # your account when you are playing
  100.         ForceSingleSession: true
  101.         # Teleport every time player join at World Spawn location,
  102.         # even if they loggedin successfully,
  103.         #  all quit and previus location will
  104.         # overwrite with World Spawn. Different From
  105.         #  "teleportUnAuthedToSpawn"
  106.         # that teleport player back to his quit or kick position,
  107.         # when he loggedin
  108.         ForceSpawnLocOnJoinEnabled: false
  109.         # This will prevent all lost of quit position, when player
  110.         # isent loggedin
  111.         SaveQuitLocation: false
  112.         # For activate Restricted user by ip u need
  113.         # to set True this option and configure the field
  114.         # AllowedRestrctedUser as show below
  115.         AllowRestrictedUser: false
  116.         # Restricted user will kick players that
  117.         # is listed below and they dont
  118.         # meet the match of username;ip
  119.         # Example playername;127.0.0.1 , if playername
  120.         # hasent 127.0.0.1 as ip address
  121.         # he will not be allowed to join the server
  122.         AllowedRestrictedUser:
  123.         - playername;127.0.0.1
  124.         # Should unregistered players be kicked immediatly?
  125.         kickNonRegistered: false
  126.         # Should fail password players be kicked immediatly?
  127.         kickOnWrongPassword: false
  128.         # should not loged in players be teleported to spawn?
  129.         # On login they will be teleported back to their normal
  130.         # position
  131.         teleportUnAuthedToSpawn: false
  132.         # min allowed nick length
  133.         minNicknameLength: 3
  134.         # Can unregistered players walk around?
  135.         allowMovement: false
  136.         # After what time players who fail to login or register
  137.         # should be kicked. Set to 0 to disable.
  138.         timeout: 30
  139.         # Regex sintax for allowed Char in player name.
  140.         allowedNicknameCharacters: '[a-zA-Z0-9_?]*'
  141.         # How far can unregistered players walk? Set to 0
  142.         # for unlimited radius
  143.         allowedMovementRadius: 100
  144.         # Enable double check of password when you register
  145.         # when it's true, registration require that kind of command:
  146.         # /register <password> <confirmPassword>
  147.         enablePasswordVerifier: true
  148.         # Should we protect the player inventory before logging in?
  149.         ProtectInventoryBeforeLogIn: true
  150.         # Should we display all other accounts from a player when he joins?
  151.         # permission: /authme.admin.accounts
  152.         displayOtherAccounts: true
  153.         # WorldNames where we need to force the spawn location for ForceSpawnLocOnJoinEnabled
  154.         ForceSpawnOnTheseWorlds:
  155.         - world
  156.         - world_nether
  157.         - world_the_end
  158.         # Ban ip when the ip is not the ip registered in database
  159.         banUnsafedIP: false
  160.     GameMode:
  161.         # ForceSurvivalMode to player when join ?
  162.         ForceSurvivalMode: false
  163.         # if player join with CreativeMode and ForceSurvivalMode: true
  164.         # inventory will be wipped
  165.         ResetInventoryIfCreative: false
  166.     security:
  167.         # minimum Length of password
  168.         minPasswordLength: 4
  169.         # this is very important options,
  170.         # every time player join the server,
  171.         # if they are registered, AuthMe will switch him
  172.         # to unLoggedInGroup, this
  173.         # should prevent all major exploit.
  174.         # So you can set up on your Permission Plugin
  175.         # this special group with 0 permissions, or permissions to chat,
  176.         # or permission to
  177.         # send private message or all other perms that you want,
  178.         # the better way is to set up
  179.         # this group with few permissions,
  180.         # so if player try to exploit some account,
  181.         # they can
  182.         # do anithing exept what you set in perm Group.
  183.         # After a correct logged-in player will be
  184.         # moved to his correct permissions group!
  185.         # Pay attention group name is casesensitive,
  186.         # so Admin is different from admin,
  187.         # otherwise your group will be wipped,
  188.         # and player join in default group []!
  189.         # Example unLoggedinGroup: NotLogged
  190.         unLoggedinGroup: unLoggedinGroup
  191.         # possible values: MD5, SHA1, SHA256, WHIRLPOOL, XAUTH, MD5VB, PHPBB,
  192.         # PLAINTEXT ( unhashed password),
  193.         # MYBB, IPB3, PHPFUSION, SMF, XFSHA1, XFSHA256, SALTED2MD5, JOOMLA
  194.         passwordHash: SHA256
  195.         # salt length for the SALTED2MD5 MD5(MD5(password)+salt)
  196.         doubleMD5SaltLength: 8
  197.     registration:
  198.         # enable registration on the server?
  199.         enabled: true
  200.         # Send every X seconds a message to a player to
  201.         # remind him that he has to login/register
  202.         messageInterval: 5
  203.         # Only registered and logged in players can play.
  204.         # See restrictions for exceptions
  205.         force: true
  206.         # Does we replace password registration by an Email registration method ?
  207.         enableEmailRegistrationSystem: false
  208.         # Enable double check of email when you register
  209.         # when it's true, registration require that kind of command:
  210.         # /register <email> <confirmEmail>
  211.         doubleEmailCheck: false
  212.     unrestrictions:
  213.         # below you can list all your account name, that
  214.         # AuthMe will ignore for registration or login, configure it
  215.         # at your own risk!! Remember that if you are goind to add
  216.         # nickname with [], you have to delimit name with ' '.
  217.         # this option add compatibility with BuildCraft and some
  218.         # other mods.
  219.         # It is CaseSensitive!
  220.         UnrestrictedName: []
  221.     # Message language, available : en, de, br, cz, pl, fr, ru, hu, sk, es, zhtw, fi, zhcn
  222.     messagesLanguage: en
  223. ExternalBoardOptions:
  224.     # MySQL column for the salt , needed for some forum/cms support
  225.     mySQLColumnSalt: ''
  226.     # MySQL column for the group, needed for some forum/cms support
  227.     mySQLColumnGroup: ''
  228.     # -1 mean disabled. If u want that only
  229.     # activated player can login in your server
  230.     # u can put in this options the group number
  231.     # of unactivated user, needed for some forum/cms support
  232.     nonActivedUserGroup: -1
  233.     # Other MySQL columns where we need to put the Username
  234.     mySQLOtherUsernameColumns: []
  235. Xenoforo:
  236.     # PredefineSalt for xenforo password hashing , can be find in system files
  237.     predefinedSalt: ''
  238. permission:
  239.     # take care with this options, if u dont want
  240.     # to use Vault and Group Switching of
  241.     # AuthMe for unloggedIn players put False
  242.     # below, default is true.
  243.     EnablePermissionCheck: false
  244. BackupSystem:
  245.    # Enable or Disable Automatic Backup
  246.     ActivateBackup: false
  247.    # set Backup at every start of Server
  248.     OnServerStart: false
  249.    # set Backup at every stop of Server
  250.     OnServerStop: true
  251.    # Windows only mysql installation Path
  252.     MysqlWindowsPath: 'C:\\Program Files\\MySQL\\MySQL Server 5.1\\'
  253. Passpartu:
  254.     # Enable or Disable Passpartu Feature,
  255.     # this feature let Admin Login with all registered
  256.     # Account they need, for example inspecting Player that
  257.     # is doing shit, they can login without know any
  258.     # Player password! More info on How TO
  259.     enablePasspartu: false
  260. Security:
  261.     SQLProblem:
  262.         # Stop the server if we can't contact the sql database
  263.         # Take care with this, if you set that to false,
  264.         # AuthMe automatically disable and the server is not protected!
  265.         stopServer: true
  266.     ReloadCommand:
  267.         # /reload support
  268.         useReloadCommandSupport: true
  269.     console:
  270.         # Remove spam console
  271.         noConsoleSpam: false
  272.         # Replace passwords in the console when player type a command like /login
  273.         removePassword: true
  274.     captcha:
  275.         # Player need to put a captcha when he fails too lot the password
  276.         useCaptcha: false
  277.         # Max allowed tries before request a captcha
  278.         maxLoginTry: 5
  279.         # Captcha length
  280.         captchaLength: 5
  281. Converter:
  282.     Rakamak:
  283.         # Rakamak file name
  284.         fileName: users.rak
  285.         # Rakamak use ip ?
  286.         useIP: false
  287.         # IP file name for rakamak
  288.         ipFileName: UsersIp.rak
  289.         # possible values: MD5, SHA1, SHA256, WHIRLPOOL, XAUTH, MD5VB, PHPBB,
  290.         # PLAINTEXT ( unhashed password),
  291.         # MYBB, IPB3, PHPFUSION, SMF, XFSHA1, XFSHA256, SALTED2MD5, JOOMLA
  292.         newPasswordHash: SHA256
  293. Email:
  294.     # Email SMTP server host
  295.     mailSMTP: smtp.gmail.com
  296.     # Email SMTP server port
  297.     mailPort: 465
  298.     # Email account that send the mail
  299.     mailAccount: ''
  300.     # Email account password
  301.     mailPassword: ''
  302.     # Custom SenderName, that replace the mailAccount name in the email
  303.     mailSenderName: ''
  304.     # Random password length
  305.     RecoveryPasswordLength: 8
  306.     # Email subject of password get
  307.     mailSubject: 'Your new AuthMe Password'
  308.     # Email text here
  309.     mailText: 'Dear <playername>, \n\n This is your new AuthMe password for the server \n\n <servername> : \n\n <generatedpass>\n\nDo not forget to change password after login! \n /changepassword <generatedpass> newPassword'
  310.     # Like maxRegPerIp but with email
  311.     maxRegPerEmail: 1
  312. Hooks:
  313.     # Do we need to hook with multiverse for spawn checking?
  314.     multiverse: true
  315.     # Do we need to hook with ChestShop for prevent buy or selling ?
  316.     chestshop: true
  317.     # Do we need to hook with BungeeCord for get the real Player ip ?
  318.     bungeecord: false
  319.     # Do we need to hook with Notifications for Notifs sending ?
  320.     notifications: true
复制代码
回复

使用道具 举报

OP

Rank: 9Rank: 9Rank: 9

gzhsuny

编写任务
0 个个
建筑作品
0 个个
论坛金币
4162 个

荒川一周年给荒川点一个赞

2#
发表于 2013-6-17 20:51 | 只看该作者
新的注册插件?具体能做什么呢?登录方法没变吧
回复 支持 反对

使用道具 举报

OP

Rank: 9Rank: 9Rank: 9

heizi_maoyu

编写任务
0 个个
建筑作品
0 个个
论坛金币
892 个

给荒川点一个赞

3#
发表于 2013-7-31 09:20 | 只看该作者
gzhsuny 发表于 2013-6-17 20:51
新的注册插件?具体能做什么呢?登录方法没变吧

可以允许管理员来帮人注册,反注册和blablabla........
回复 支持 反对

使用道具 举报

Lv1

Rank: 1

NPC

编写任务
0 个个
建筑作品
0 个个
论坛金币
1 个
4#
发表于 2014-8-5 13:29 | 只看该作者
不错 可以帮别人注册账号了 我限制了一个IP只能注册一个号  现在可以用命令注册了
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 入住荒川

本版积分规则

申请友链|帮助|手机版|Archiver|荒川

GMT+8, 2024-11-24 04:19 , Processed in 0.049838 second(s), 15 queries , Apc On.

Powered by Discuz! X3.2

© 2001-2012 Comsenz Inc.