Slash Invite
凌晨三点,你的手机不停震动把你吵醒:
“嘿,能把账号 UserElaina 加到白名单里吗??”
听起来很耳熟?这类场景在 Minecraftia 各地正在上演。_你_可能就是下一个受害者。 除非让这个插件 改变你的 生活。
让你的朋友通过简单的 /invite 命令自己去邀请他们的朋友。再也不用深夜发短信了!再也不用说“等我回家再说”了!一年一度的夏季 Minecraft 生存多人服务器已改为仅限邀请制,无需管理员介入!
此插件/仅服务器模组支持:
- Spigot(Minecraft 1.17 至 26.3)
- Fabric(Minecraft 26.2 至 26.3)
- NeoForge(Minecraft 26.2 至 26.3)
这是对原版功能的一个简易封装。如果你期望这个插件能执行除了邀请之外的其他操作,那么它几乎肯定已经在原版中存在:黑名单(/ban)、取消邀请后踢出(enforce-whitelist=true),以及撤销邀请(/whitelist remove)。
如果这并非你想要的功能,那么 请分享这个插件! 去 Reddit 或者其他地方。求求了 :)
功能特性
- 允许任何人通过用户名将玩家加入白名单。 再也不用为了把朋友加入夏季 SMP 而频繁打扰了!
- 在可配置的时间窗口内撤销误发的邀请。 打字错误已被原谅!
- 利用邀请日志让朋友们互相监督。 查看是谁邀请了谁!(仅限操作员)
安装指南
- 从 GitHub releases 或 Modrinth 下载
.jar文件。 - 下载适用于你版本所需的依赖项。
- Spigot: 无
- Fabric: Minecraft SQLite JDBC, Fabric API, (可选) fabric-permissions-api
- NeoForge: Minecraft SQLite JDBC
- 将其放入服务器根目录下的
plugins/目录(Spigot)或mods/目录(Fabric, NeoForge)中。 - 启动你的服务器。
用户指南
点击查看常见问题解答
我该如何邀请某人? 使用
/invite <username>
我不小心邀请了错误的人。我该如何取消邀请某人? 使用
/uninvite撤销你最近的一次邀请。除此之外,你需要管理员使用/whitelist remove <username>将他们移除。
我不小心邀请了某人,现在他们已经在服务器上了。我该怎么办? 首先,如果你还能操作,请撤销他们的邀请。否则,请求管理员将他们从白名单中移除,然后使用
/kick <username>将其踢出。如果你希望立即踢出未获邀请的玩家,请在server.properties中设置enforce-whitelist=true。
我如何找出是谁邀请了破坏者进入服务器? 使用
/invitelog received <username>并输入破坏者的用户名。最新的一条记录就是罪魁祸首。
我的朋友一直邀请我不喜欢的人。我该如何将该玩家列入黑名单,禁止其被邀请? 这在原版中已经存在:只需使用
/ban <username>ban 掉那个麻烦的玩家(不是你的朋友,但你也可以 ban 他)。他们仍然可以被邀请,但无法加入服务器。
我的朋友生气了,邀请了大量随机路人。我该如何回滚白名单? 没有回滚功能。你应该保留一份
whitelist.json作为备份。更重要的是,你应该和朋友坐下来谈谈。
我可以在离线服务器上启用此插件吗? 意思是它能正常工作吗?可以。它能实现你想要的效果吗?不行,因为它只白名单真实的 Minecraft 账号,而离线模式的账号不属于此类。在 Velocity 后面,此插件可以正常工作,因为服务器会接收到真实的 UUID。纯粹的离线服务器?我的意思是,它能运行。但这基本上没什么用。
命令列表
点击查看命令列表
| 命令 | 用法 | 权限 | 默认使用者 | 功能描述 |
|---|---|---|---|---|
/invite |
/invite <player> |
invite.use |
所有人 | 查找 Minecraft 用户名,将该玩家添加到服务器白名单,并记录是谁邀请了他。 |
/uninvite |
/uninvite |
invite.use |
所有人 | 如果在撤销窗口期内,撤销你最近的邀请。 |
/invitelog |
/invitelog |
invite.log |
操作员 | /invitelog recent 1 的别名。 |
/invitelog |
/invitelog recent [page] |
invite.log |
操作员 | 显示最近的邀请日志条目,每页 5 条。 |
/invitelog |
/invitelog sent <player> [page] |
invite.log |
操作员 | 显示该玩家发出的邀请,每页 5 条。 |
/invitelog |
/invitelog received <player> [page] |
invite.log |
操作员 | 显示是谁邀请了该玩家,每页 5 条。 |
配置文件
点击查看配置选项
你可以在 plugins/Invitation/config.yml 中编辑插件的配置:
| 键名 | 默认值 | 作用 |
|---|---|---|
cooldown-seconds |
7 |
每个玩家尝试 /invite 之间的冷却时间。 |
undo-seconds |
60 |
发出邀请后,在多久内仍可使用 /uninvite(或 Undo)撤销该邀请。 |
贡献指南
如果你为该项目编写了代码,只要我认为不会使本插件的功能范围过于臃肿,我会欣然接受你的拉取请求。
向此仓库提交贡献即表示你同意你的贡献将遵循与本仓库相同的开源许可协议,详见 LICENSE 文件。
许可证
除非另有说明,本仓库中的所有源代码均遵循 Mozilla Public License 2.0(SPDX: MPL-2.0)。有关 MPL-2.0 下的具体条款,请查看 LICENSE 文件。
Slash Invite
At 3 AM, you're awakened by your phone buzzing incessantly:
"hey, can you whitelist the account UserElaina??"
Sound familiar? Scenes like these are happening all across Minecraftia. You could be next. That is, unless you let this plugin change your life.
Tell your friends to invite their friends themselves with a simple /invite. No more late-night texts! No more saying "wait till I get home"! The annual summer Minecraft survival multiplayer server has gone invite-only, no admin intervention needed!
This plugin / server-only mod supports:
- Spigot (Minecraft 1.17 to 26.3)
- Fabric (Minecraft 26.2 to 26.3)
- NeoForge (Minecraft 26.2 to 26.3)
This is a pretty wrapper around vanilla functionality. If there's something more than invites that you expect this plugin to do, it almost certainly already exists in vanilla: blacklists (/ban), kick on uninvite (enforce-whitelist=true), and invite revocation (/whitelist remove).
If this did want you wanted, then please share this plugin! On Reddit or something. Pls :)
Features
- Let anyone whitelist a player by username. No more pings to add friends to the summer SMP!
- Revoke mistaken invites within a configurable window. Typos have been forgiven!
- Hold your friends accountable with the invite log. See who invited whom! (operator only)
Installation
- Download the
.jarfile from GitHub releases or Modrinth. - Download the necesary dependencies for your release.
- Spigot: None
- Fabric: Minecraft SQLite JDBC, Fabric API, (optional) fabric-permissions-api
- NeoForge: Minecraft SQLite JDBC
- Place it in your
plugins/directory (Spigot) ormods/directory (Fabric, NeoForge) in your server root. - Start your server.
User guide
Click to view Frequently Asked Questions
How do I invite someone? Use
/invite <username>
I mistakenly invited the wrong person. How do I uninvite someone? Use
/uninviteto revoke your most recent invite. Beyond that, you need an admin to/whitelist remove <username>them.
I accidentally invited someone and now they are on the server. What do I do? First, revoke their invite if you can. Otherwise, ask the admin to remove them from the whitelist then
/kick <username>them. You should setenforce-whitelist=truein yourserver.propertiesif you want to kick uninvited players immediately.
How do I figure out who invited a griefer to the server? Use
/invitelog received <username>using the username of the griefer. The latest entry is your culprit.
My friend keeps inviting someone I don't like. How do I blacklist that player from being invited? This exists in vanilla already: Just ban that problematic player (not your friend, but you can do that too) with
/ban <username>. They can still be invited, but they can't join.
My friend got upset and invited a crap ton of randoms. How do I rollback the whitelist? There is no rollback. You should've kept a copy of
whitelist.jsonas a backup. More importantly, you should have a sit down with your friend.
Can I use this on an offline server? As in, will it be functional? Yes. Will it do what you want? No, because it only whitelists real Minecraft accounts and accounts in offline mode are not that. Behind Velocity, this plugin will work fine because the server receives real UUIDs. A straight up offline server? I mean, it runs. But it's kinda useless.
Commands
Click to view command list
| Command | Usage | Permission | Who can use it by default | What it does |
|---|---|---|---|---|
/invite |
/invite <player> |
invite.use |
Everyone | Looks up a Minecraft username, adds that player to the server whitelist, and logs who invited them. |
/uninvite |
/uninvite |
invite.use |
Everyone | Revokes your recent invite if still inside the undo window. |
/invitelog |
/invitelog |
invite.log |
Operators | Alias for /invitelog recent 1. |
/invitelog |
/invitelog recent [page] |
invite.log |
Operators | Shows recent invite log entries, 5 per page. |
/invitelog |
/invitelog sent <player> [page] |
invite.log |
Operators | Shows invites sent by that player, 5 per page. |
/invitelog |
/invitelog received <player> [page] |
invite.log |
Operators | Shows who invited that player, 5 per page. |
Configuration
Click to view configuration options
You can edit the plugin's configuration in plugins/Invitation/config.yml:
| Key | Default | What it does |
|---|---|---|
cooldown-seconds |
7 |
Wait between /invite attempts per player. |
undo-seconds |
60 |
How long after inviting /uninvite (or Undo) can revoke that invite. |
Contributing
If you wrote the code for it, I'll happily accept a pull request if I feel like it doesn't bloat the scope of this plugin.
By submitting a contribution to this repository, you agree that your contribution is licensed under the same license as this repository, as published in the LICENSE file.
License
Unless otherwise noted, all source code in this repository is licensed under the Mozilla Public License 2.0 (SPDX: MPL-2.0). Please view the LICENSE file for the terms you are afforded under the MPL-2.0.
下载 Slash Invite
下载 Slash Invite
下载 Slash Invite
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Slash Invite
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Slash Invite
下载 Slash Invite
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Slash Invite
下载 Slash Invite
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Slash Invite
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
Slash Invite(原 Invitation)v0.3.3 版本发布,适用于 Minecraft 26.3 的 NeoForge 和 Fabric 平台。
Spigot 的更改:
- 未进行任何更改。
Fabric 的更改:
- 将 Fabric 目标版本提升至 Minecraft 26.3。
NeoForge 的更改:
- 将 NeoForge 目标版本提升至 Minecraft 26.3。
- 在模组启动时创建 Invitation 的数据目录。
完整更新日志:
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
插件
PacketEvents 是一款专为 Minecraft Java 版打造的协议库,旨在简化数据包的处理与传输。
插件
ExyliaPlugins 的库。
插件
通过对话框或铁砧界面帮助你的 Anthme
插件
自定义你的Minecraft头像!
插件
重新定义服务器上的生物运输方式。使用高度可定制的口袋道具,安全地捕获、存储和释放任何实体。
插件
为基于 Spigot/Paper/Folia 的服务器添加对 Vivecraft 的支持
评论 0
登录后参与评分
还没有评论,来抢沙发吧