概念
本插件的概念灵感来源于 Reddit。该插件旨在为离线服务器添加登录密码功能,作为一种身份验证机制。没错,就是这样。我原本以为这一部分会写得长一些。此插件允许每个用户创建自己的独立密码。它并不是那种只允许特定玩家加入服务器的白名单式密码。本插件的核心功能是防止两名玩家共用同一个账号。
免责声明
我想现在是时候说明一下:虽然我开发了这款插件,但其预期使用场景是针对偏好离线运行或必须离线运行的服务器。我绝不鼓励使用非正版(Non-premium)账号,主要面向非正版玩家的服务器并非本插件的目标受众。(如果你不知道什么是离线服务器,那么你的服务器很可能就是在线的。)
本插件旨在解决的问题
本插件旨在解决离线服务器缺乏身份验证的问题。虽然在线服务器通常不会面临此问题,但离线服务器存在多名玩家使用相同名称登录的风险,这可能会破坏其他玩家的游戏体验。本插件通过引入玩家身份验证功能,确保玩家在登录和服务器重载时能够正常继续游戏。
密码登录
特性:
- 简单且轻量。
- 一次性设置密码。
- 可使用旧密码重置新密码。
- 提供简单的 /pw 命令供个体玩家设置,之后只需在聊天栏输入密码即可!
- 不同用户拥有不同密码,无需共享。
- 登录时将玩家传送至自定义位置的指定维度,并在身份验证成功后传送至上一次登出的位置。
- 未输入密码时采取预防措施,防止玩家死亡。
- 支持跨多个世界使用!
- 包含 messages.yml 配置文件。
- 在离线服务器中可模拟管理员权限。只有控制台和管理员(拥有文件访问权限的人)可以手动重置密码(适用于玩家忘记密码的情况)。
上一次在末地维度登出的玩家的登录界面。
为什么玩家需要输入密码
如果不登录,玩家将无法执行以下操作:
- 无法远离出生点移动
- 无法破坏方块
- 无法放置方块
- 无法击杀其他玩家
- 无法丢弃物品
- 无法拾取物品
- 难以死亡
- 无法整理背包。
因此,不输入密码的话,玩家几乎什么都做不了!
命令
- /pw set (password):为新用户设置密码。
- /pw reset (old password) (new password):为现有用户重置密码。
- /pw setarea [overworld/nether/end] (x1) (x2) (y) (z1) (z2)
要在登录时输入密码,只需像发送消息一样在聊天栏输入即可!(例如,如果我的密码是 "a",我只需在聊天中输入 "a",而不是 "/a" 或 "/pw a"。提供的命令仅有 /pw set 和 /pw reset 两个(严格来说,插件也提供了 /password 命令,但它与 /pw 的功能完全相同)。
如果用户忘记了密码,只有能够访问服务器文件的人才能进入插件的 config.yml 文件,并删除对应 UUID 的密码。这是为了防止在离线服务器中出现冒充行为而有意为之的设计。
对于 /pw setarea 命令,x1 和 x2 将是出生平台的 X 轴范围。
z1 和 z2 将是出生平台的 Z 轴范围。
y 是平台的高度级别。y 上方 1 和 2 个方块将被设置为空气,以防止玩家窒息。此命令仅可由控制台执行。你也可以在 config.yml 中更改这些值。
要求
前提是必须确保服务器文件的访问权限不被泄露,因为所有密码都将存储在 PasswordLogOn 的 config.yml 文件中。此外,控制台也不应被攻破,因为在初始设置或重置密码时,每个玩家的密码会以命令的形式对控制台可见。
bStats
本插件使用 bStats 来收集关于服务器的匿名数据。这些数据有助于我了解有多少人在使用该插件,并帮助我做出维护该插件的决策。如果你对此感到不安,可以通过前往 /files/plugins/bStats/config.yml 并将收集选项更改为 disable(禁用)来关闭 bStats。
结语
如果您发现任何问题,请不要给 Password Log On 留下负面评价,而是通过 Discord 或 Github 向我反馈。有任何建议?也请通过 Discord 或 Github 告诉我!我不会每天查看评论,相比之下会更频繁地检查这些平台。
本插件基于 1.16+ 版本开发,并已在 1.14 和 1.15 版本上测试过。该插件无法在 1.14 以下版本运行,且不会提供向后移植支持。由于这是基于 1.16+ 开发的插件,我对 1.14 和 1.15 的支持力度会相对较少。这是一个基于 Spigot 的服务器插件,因此支持的运行平台包括 PaperMC 等 Spigot 分支,但不支持 Forge。需要至少 Java 11。如果您使用的是 Java 8,请升级至 Java 11 或更高版本。
玩家无需在自己的 Minecraft 客户端安装此插件即可正常使用,只需在服务器上安装即可。只需将此插件放入您的 /plugins 文件夹即可完成安装!最后,如果您非常喜欢这个插件,不妨考虑请我喝杯咖啡。无论如何,祝您使用愉快,希望它能对您有所帮助!
Concept
The concept of this plugin is inspired by Reddit. This plugin helps to add passwords on login, as an authentication feature for offline servers. That's it. Yeah. I thought this section would be longer too. This plugin lets individual users create their own passwords. This is not a password that allows only certain players from joining. This plugin provides functionality to stop two players from using one account.
Disclaimer
I think that this is a good time to say that while I created this plugin, the intended use case is for servers that prefer to be offline, and for servers that need to be offline. I in no way encourage the use of non premium accounts, and servers which primarily have non premium players are not the target audience of this plugin. (If you don't know what an offline server is, chances is that your server is online).
What this plugin aims to solve
This plugin aims to solve the problem of lack of authentication on offline servers. While online servers do not struggle with this problem, offline servers run a risk of having multiple players log in under the same name, potentially ruining a player experience. This plugin adds player authentication in order for them to continue playing (on log in and on server reload).
Password Log On
Features:
- Simple and lightweight.
- One time setup of password.
- Reset-able password with old password.
- Simple /pw command to setup for individual players, and just enter password into chat after!
- Different users, different passwords. No need to share.
- Teleport players to a customisable location in whatever dimension they are in when enter, and teleport to last log off point on successful authentication.
- Preventive measure to stop players from dying when password is not entered.
- Usage over multiple worlds supported!
- Includes messages.yml.
- Ops can be impersonated in offline servers. Only the console and people with access to files can manually reset the password (in the case where a player forgets their password).
The log on screen for a player whose last log off was in the end dimension.
Why Players will enter their passwords
Without logging in, they can't do the following:
- Cannot move far pass spawn
- Cannot break blocks
- Cannot place blocks
- Cannot kill other players
- Cannot drop items
- Cannot pickup items
- Hard to die
- Cannot reorganize inventory.
Therefore, the player cannot do much without entering their password!
Commands
- /pw set (password): Sets a password for a new user.
- /pw reset (old password) (new password): Resets password for existing user.
- /pw setarea [overworld/nether/end] (x1) (x2) (y) (z1) (z2)
To type in password on log on, just type it into chat as if it is a message! (e.g. if my password is "a", I would type "a" into chat, and not "/a" or "/pw a". /pw set and /pw reset are the only two commands provided (Well, technically the plugin also provides /password, but it does the same thing as /pw)
In the case that a user forgets their password, only a person with access to the server files can go into the plugin's config.yml, and delete the password for the corresponding UUID. This is a purposeful design to stop impersonation in offline servers.
For /pw setarea, x1 and x2 will be the x area of the spawn platform.
z1 and z2 will be the z area of the spawn platform.
y is the level of the platform. 1 and 2 blocks above y will be set to air to prevent the player from suffocating. This command is only usable by console. You can also change the values in config.yml
Requirements
The requirements are that file access to the server must not be compromised, as all the passwords will be stored in PasswordLogOn's config.yml file. The console should not be compromised as well, due to the individual player password being visible to the console as a command during initial setup or password reset.
bStats
This plugin uses bStats to collect anonymous data about the server. This data helps me know how many people are using the plugin, and helps me makes decisions on maintaining the plugin. If you for any reason are uncomfortable with this. Disable bStats by going to /files/plugins/bStats/config.yml and changing the collection option to disable.
Closing
If there are any issues that you find, instead of negatively rating Password Log On, tell me about the issue on Discord/Github instead. Any suggestions? Discord/Github as well! I will not be reading the comments everyday, and I will be checking those platforms more often in comparison.
This is a plugin that is coded on 1.16+, and has been tested on 1.14 and 1.15. The plugin will not work below 1.14 and a back-port will not be made. As this is a 1.16+ coded plugin, I will be offering lesser support on 1.14 and 1.15. This is a Spigot based server plugin, therefore supported platforms include spigot forks like PaperMC, but not forge. A minimum of Java 11 is required. If you use Java 8, please update to Java 11 or later.
Individual players do not need to install this plugin on their instance of Minecraft for this to work, only server installation is needed. Just drop this plugin in your /plugins folder to install! Lastly, if you really enjoy this plugin, do consider buying me a coffee. Regardless, enjoy the plugin and I hope that it is useful!
下载 Password Log On
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Password Log On
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Password Log On
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Password Log On
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Password Log On
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Password Log On
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Password Log On
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Password Log On
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Password Log On
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Password Log On
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
修复所有玩家均可设置区域的问题
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
插件
ExyliaPlugins 的库。
插件
自定义你的Minecraft头像!
插件
重新定义服务器上的生物运输方式。使用高度可定制的口袋道具,安全地捕获、存储和释放任何实体。
插件
一个在游戏内运行的 Minecraft 地图编辑器! 支持选区、蓝图、复制粘贴、笔刷和脚本。 可在创造模式中使用,也可在生存模式中临时使用。
插件
创建用户友好的菜单以前往不同的世界
插件
专为 Velocity 打造的自制聊天插件,功能丰富——支持跨服群组/全局/私聊消息,并集成 LibertyBans 的禁言功能。
评论 0
登录后参与评分
还没有评论,来抢沙发吧