SimplePMs
一个用于处理直接消息的简单插件,具备以下功能:
- 发送消息与回复
- 开启或关闭消息接收
- 屏蔽用户
- 通过 PlaceholderAPI 集成实现自定义格式
- 社交间谍模式(Social Spy)
- 支持从控制台向玩家发送消息,并允许玩家回复
命令
| 命令 | 权限 | 作用 |
|---|---|---|
/msg <player> <message> |
message.basic.send |
向其他玩家发送私聊消息 |
/msgtoggle |
message.basic.toggle |
启用/禁用接收私聊消息 |
/r <message> |
message.basic.send |
回复上一次与你对话的玩家 |
/block <user> <reason> |
message.basic.block |
阻止该玩家向你发送私聊消息 |
/unblock <user> |
message.basic.block |
允许该玩家再次向你发送私聊消息 |
/blocklist |
message.basic.block |
查看你已屏蔽的用户列表 |
/socialspy |
message.admin.social-spy |
切换是否可查看其他玩家的记录消息 |
/spmreload |
message.reload |
重新加载插件配置和消息文本 |
权限
| 权限 | 默认值 | 作用 |
|---|---|---|
message.reload |
OP | 允许重新加载配置文件和本地化文件 |
message.basic.* |
true |
授予所有基础聊天功能 |
message.basic.send |
true |
允许发送消息 |
message.basic.receive |
true |
允许接收消息 |
message.basic.toggle |
true |
允许开启或关闭直接消息 |
message.basic.block |
true |
允许屏蔽、取消屏蔽以及列出已屏蔽的用户 |
message.admin.* |
OP | 授予所有后续管理员权限 |
message.admin.override |
OP | 允许向那些禁用消息、将你屏蔽或没有接收权限的玩家发送消息 |
message.admin.social-spy |
OP | 显示玩家之间发送的直接消息日志 |
message.admin.console-spy |
OP | 显示控制台与玩家之间(来自此插件)发送的任何直接消息日志 |
message.bypass.social-spy |
OP | 防止你发送的消息或被发送到你的消息被拥有社交间谍功能的其他玩家看到 |
message.bypass.command-spy |
OP | 防止你发送的命令被社交间谍功能看到 |
PlaceholderAPI 集成
你可以在配置文件的消息中使用 PlaceholderAPI 占位符,格式为:<papi:placeholder>
你需要移除占位符中的任何 % 符号,仅保留纯文本部分。例如,对于占位符
%player_displayname%,你应该在文件中将其写为 <papi:player_displayname>。
你需要安装 PlaceholderAPI 才能使这些占位符生效。
注意:这仅在
config.yml中有效这在
locale.yml中的消息里无效
SimplePMs
Simple plugin for handling direct messaging that features:
- Message and Reply
- Toggle messages on or off
- Block users
- Custom formatting with Placeholder API integration
- Social Spy
- Ability to message users from the console, and them to message back
Commands
| Command | Permission | What it do |
|---|---|---|
/msg <player> <message> |
message.basic.send |
Send a private message to another user |
/msgtoggle |
message.basic.toggle |
Enables/disables recieving private messages |
/r <message> |
message.basic.send |
Replies to the last person you were talking to |
/block <user> <reason> |
message.basic.block |
Prevents this user from private messaging you |
/unblock <user> |
message.basic.block |
Allows this user to private message you again |
/blocklist |
message.basic.block |
See the list of users you have blocked |
/socialspy |
message.admin.social-spy |
Toggles whether the user can see the logged messages of other users |
/spmreload |
message.reload |
Reloads the plugin configuration and messages |
Permissions
| Permission | Default | What it do |
|---|---|---|
message.reload |
OP | Allows reloading the config/locale |
message.basic.* |
true |
Gives all basic messaging functionality |
message.basic.send |
true |
Allows sending messages |
message.basic.receive |
true |
Allows receiving messages |
message.basic.toggle |
true |
Allows toggling direct messages on or off |
message.basic.block |
true |
Allows blocking, unblocking, and listing your blocked users |
message.admin.* |
OP | Gives all subsequent admin permissions |
message.admin.override |
OP | Allows messaging users who have their messages disabled, have you blocked, or do not have the receive permission |
message.admin.social-spy |
OP | Shows a log of direct messages being sent between players |
message.admin.console-spy |
OP | Shows a log of any direct messages being sent between the console and players (from this plugin) |
message.bypass.social-spy |
OP | Prevents messages you send or messages being sent to you from being shown to others with social spy |
message.bypass.command-spy |
OP | Prevents commands you send from being shown to social spy |
PlaceholderAPI integration
You can use placeholderAPI placeholders in the messages in the config by doing: <papi:placeholder>
You will need to remove any % from the placeholder, and put in the text alone, so for the placeholder
%player_displayname% you would use <papi:player_displayname> in the file here.
You will need placeholderAPI installed for those placeholders to work
Note: This only works in the
config.ymlThis will not work for messages in the
locale.yml
下载 SimplePMs
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 SimplePMs
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 SimplePMs
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 SimplePMs
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 SimplePMs
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 SimplePMs
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 SimplePMs
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 SimplePMs
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 SimplePMs
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 SimplePMs
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
添加 Webhook 支持 (#16)
- 添加 Webhook 支持
- 使 HTTP 请求异步化
- 修复错误消息的语法
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
插件
PacketEvents 是一款专为 Minecraft Java 版打造的协议库,旨在简化数据包的处理与传输。
插件
ExyliaPlugins 的库。
插件
通过对话框或铁砧界面帮助你的 Anthme
插件
自定义你的Minecraft头像!
插件
重新定义服务器上的生物运输方式。使用高度可定制的口袋道具,安全地捕获、存储和释放任何实体。
插件
为基于 Spigot/Paper/Folia 的服务器添加对 Vivecraft 的支持
评论 0
登录后参与评分
还没有评论,来抢沙发吧