• 周年纪念勋章活动已圆满结束,如有已购买但仍未申请的用户,可以通过对应勋章的下载链接申请~
[🔴停更] CommandChecker - 让命令在特定区域可用/不可用

资源 [🔴停更] CommandChecker - 让命令在特定区域可用/不可用 0.2.0

engsr6982

【Lv:5】

开发者
正式会员
注册
2022/01/31
消息
435
金粒
49,592金粒
PPOUI 提交新资源:

CommandChecker - 让命令在特定区域可用 - 支持 2D和3D 的圆形、矩阵区域检测 及 白名单

如有不懂,来群424958821 看到就回
[MD]
# CommandChecker - 让命令在特定区域可用

## 插件特性

1. 支持2D/3D 圆形/方形 区域检测
2. 支持白名单

## 使用方法:

```json
[
{// 2D/3D 圆
"cmd": "", // 要限制的命令
"whiteList": [],//白名单
"type": "Circle",// 计算方式 Circle圆 Square方
"Radius": 5,// 圆半径
"CenterCoordinates": {// 圆心坐标
"x": 0,
"y": null,// 当计算方式为2D 时 此项为null
"z": 0,
"dimid": 0// 要检查的维度 0主世界 1地狱 2末地
}
},
{// 2D/3D 方...[/MD]

阅读关于此资源更多信息...
 
根据我那readme提供的格式,自己往数组里添加
额,你是不是写反了,为什么我圈起来的区域内指令不可用,在外部就可以用了
 
Is the square type area detection working? I tried it and i can't use the command anywhere. The circle type works fine though.

Also, can you make us able to provide some kind of wildcard (*) at the end of the command in the configuration file?
For example: "cmd" : "home add*"
This will prevent the player from using the home add command even if he writes an extra string after the command like "home add my_home"
 
Is the square type area detection working? I tried it and i can't use the command anywhere. The circle type works fine though.

Also, can you make us able to provide some kind of wildcard (*) at the end of the command in the configuration file?
For example: "cmd" : "home add*"
This will prevent the player from using the home add command even if he writes an extra string after the command like "home add my_home"
I had no problem with the six detection modes in my test. With regard to wildcard *, it can be implemented, but using wildcard extensively can cause performance problems.
 

附件

支持使用通配符 * 匹配 是什么意思
例如:要拦截home add命令
但是插件注册的命令是home add <家园名>
就可以用home add * 通配符过滤掉后面的所有字符串
 
[ { "cmd": "home add*", "whiteList": [], "type": "Square", "TopLeft": { "x": 94, "y": 200, "z": 42, "dimid": 0 }, "BottomRight": { "x": 77, "y": 50, "z": 18, "dimid": 0 }, "blacklistWithinRegion": false } ]

what's wrong with this configuration? i still can't use the command anywhere. i tried to log
ZoneCheckAPI.isWithinRectangle3D() to console and it returned false no matter i'm standing in the zone or not.
 
[ { "cmd": "home add*", "whiteList": [], "type": "Square", "TopLeft": { "x": 94, "y": 200, "z": 42, "dimid": 0 }, "BottomRight": { "x": 77, "y": 50, "z": 18, "dimid": 0 }, "blacklistWithinRegion": false } ]

what's wrong with this configuration? i still can't use the command anywhere. i tried to log
ZoneCheckAPI.isWithinRectangle3D() to console and it returned false no matter i'm standing in the zone or not.
Depending on the configuration you provided, the "home add *" command is disabled outside the zone. I can't determine the cause of the problem at the moment. I need to test
 
Depending on the configuration you provided, the "home add *" command is disabled outside the zone. I can't determine the cause of the problem at the moment. I need to test
for now i'll just use the SCenter since it works properly, thanks
 
[ { "cmd": "home add*", "whiteList": [], "type": "Square", "TopLeft": { "x": 94, "y": 200, "z": 42, "dimid": 0 }, "BottomRight": { "x": 77, "y": 50, "z": 18, "dimid": 0 }, "blacklistWithinRegion": false } ]

what's wrong with this configuration? i still can't use the command anywhere. i tried to log
ZoneCheckAPI.isWithinRectangle3D() to console and it returned false no matter i'm standing in the zone or not.
Fixed, need to update the front plugin
 
提几个扩展性建议:
加个功能,指定某个或某些指令每个玩家使用的次数限制
(消耗经济购买次数,或者消耗经济使用一次指令)
括号里的可以不做
 
So i'm trying to disable a command for two different areas, it seems that only the higher area specified in the configuration that has the command disabled. The same command still can be used in other areas. Is there a solution?
 

在线会员

  • s648555685
  • 648645654465456
  • 温暖舒适的熊
  • 清茶菌
  • Dieskeleton
  • 苏热
  • 离川
  • 赤_焰
  • 鲨狐
  • pingguo
  • 超级小柴
  • OneLustre
  • 赵冬云
  • 海贝壳
  • y1668445919
  • Crazy_Jky
  • fjnu_
  • with
  • 大逍遥
  • 咸鱼粥
...和 69 更多。
后退
顶部 底部