本帖最后由 xiaowanggua 于 2022-8-21 13:50 编辑
在没有赋予玩家权限时,玩家可发送彩字,通过查询,wiki中有cmi颜色相关权限节点,但强制false和负向权限后都无法阻止普通玩家权限组发送彩字,如何阻止?
答案:
Colors:
# If set to true then all public messages will be filtered from color codes and will allow to colorize them with appropriate permission node
# cmi.colors.publicmessage.[colorName]
# Colors: black(&0), darkblue(&1), darkgreen(&2), darkaqua(&3), darkred(&4), darkpurple(&5), gold(&6), gray(&7), darkgray(&8), blue(&9), green(&a), aqua(&b), red(&c), lightpurple(&d), yellow(&e), white(&f), magic(&k), bold(&l), strikethrough(&m), underline(&n), italic(&o), reset(&r)
PublicMessage: true(设置为true就好了)
PrivateMessage: true
在没有赋予玩家权限时,玩家可发送彩字,通过查询,wiki中有cmi颜色相关权限节点,但强制false和负向权限后都无法阻止普通玩家权限组发送彩字,如何阻止?
答案:
Colors:
# If set to true then all public messages will be filtered from color codes and will allow to colorize them with appropriate permission node
# cmi.colors.publicmessage.[colorName]
# Colors: black(&0), darkblue(&1), darkgreen(&2), darkaqua(&3), darkred(&4), darkpurple(&5), gold(&6), gray(&7), darkgray(&8), blue(&9), green(&a), aqua(&b), red(&c), lightpurple(&d), yellow(&e), white(&f), magic(&k), bold(&l), strikethrough(&m), underline(&n), italic(&o), reset(&r)
PublicMessage: true(设置为true就好了)
PrivateMessage: true
你有添加额外的聊天插件吗?
把一下权限改为false
trchat.color.<CODE>
使用指定颜色代码的权限
trchat.color.HEX
使用HEX颜色代码的权限
trchat.color.RAINBOW
使用彩虹颜色代码的权限
trchat.color.GRADIENTS
使用渐变色代码的权限
trchat.color.force-defaultcolor.<CODE>
默认使用该聊天代码颜色
trchat.color.anvil.*
在铁砧中使用所有颜色的权限
trchat.color.sign.*
在告示牌中使用所有颜色的权限
trchat.color.book.*
在书中使用所有颜色的权限
trchat.color.minedown
使用minedown格式聊天的权限
lp group default set permission set trchat.color.* false 试试