Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[功能] 将私聊权限和私聊频道进入权限分离 #353

Closed
2 tasks done
Dreeam-qwq opened this issue Jan 26, 2024 · 4 comments
Closed
2 tasks done

[功能] 将私聊权限和私聊频道进入权限分离 #353

Dreeam-qwq opened this issue Jan 26, 2024 · 4 comments
Labels
Confirmed | 已确认 Confirmed question Enhancement | 新功能 New feature or request

Comments

@Dreeam-qwq
Copy link

Dreeam-qwq commented Jan 26, 2024

是否已查阅 Wiki

  • 我已查阅 Wiki 并确定没有存在该功能.

是否存在重复 issue

  • 我已翻阅现有的 issue 没有发现内容重复, 亦或是对现有 issue 的更详细的描述.

详细的描述

RT, 将私聊频道进入权限 和 使用/msg等私聊指令进行私聊的权限分开,进入私聊频道一个权限,使用/msg id message等私聊指令私聊是另一个权限

希望的功能:

  • 玩家可以使用/msg id message私聊指令进行私聊,但是不能使用/msg id直接进入私聊频道
@Dreeam-qwq Dreeam-qwq added the Enhancement | 新功能 New feature or request label Jan 26, 2024
@ItsFlicker ItsFlicker added the Confirmed | 已确认 Confirmed question label Feb 24, 2024
@ItsFlicker
Copy link

https://github.com/TrPlugins/TrChat/actions/runs/8030903080
直接说话条件写在Speak-Condition中
禁用Join-Permission权限

@Dreeam-qwq
Copy link
Author

使用lp设置default组 trchat.admin权限false,trchat.private 权限true

image

配置文件:

Options:
  Join-Permission: 'trchat.admin'
  Speak-Condition: 'perm *trchat.private'
  Proxy: false
  Disabled-Functions: ['Mention']
  Private: true

Bindings:
  Command: ['msg', 'tell']

Sender:
  - prefix:
      sender:
        text: '&8[&a%player_name% &7➦ %trchat_toplayer%&3&8] '
    msg:
      default-color: 'f'
      hover: ''

Receiver:
  - prefix:
      receiver:
        text: '&8[&6%player_name% &7➥ &2%trchat_toplayer%&8] '
    msg:
      default-color: 'f'
      hover: ''

服务端: Leaf 1.20.4

另外能不能问一下,文档里的需要权限才能可以加入频道(听到消息) 听到消息是什么意思,只有Speak-Condition权限没有Join-Permission权限,没用/msg加入私聊频道的情况下,还可以正常发送接收私聊吗(

@ItsFlicker
Copy link

https://github.com/TrPlugins/TrChat/actions/runs/8121253118
文档还未更新,可以正常使用

@Dreeam-qwq
Copy link
Author

https://github.com/TrPlugins/TrChat/actions/runs/8121253118 文档还未更新,可以正常使用

可以用了,感谢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Confirmed | 已确认 Confirmed question Enhancement | 新功能 New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants