用户:
芜湖咸鱼查看:38 回复:48 评论:38 创建时间:2020-02-22T16:11:02
world.onChat(({ entity, message }) => {
if (entity&&entity.isPlayer) {
if(entity&&'管喵名字 用空格隔开'.split(' ').indexOf(entity.player.name)!=-1&&message.charAt(0)=='$'){
try{
world.say('<~ '+eval(message.split('$')[1]))}catch(err){
world.say('Error:'+err)
}
};
}
})
直接粘贴到你的代码里即可
如何使用:
在聊天栏输入
$代码
就可以执行了
例子:
顺便说一下shyfcka的事
只有我一个真的,我从来没在任何作品使用编程猫账号登录
目前发现唯一 一个就是shyfkc 这是假的
我换头像了,这是真的
证据:QQ群,好友,昊然,张博睿,ZNS卿本尊,吉吉喵
有人一直喷我,举报即可
喷子链接:https://shequ.codemao.cn/community/248694
seven葫中葫
world.onChat(({ entity, message }) => {
if (entity&&entity.isPlayer) {
if(entity&&'葫芦本师释迦摩尼佛大愿地藏王大智文殊观音 用空格隔开'.split(' ').indexOf(entity.player.name)!=-1&&message.charAt(0)=='$'){
try{
world.say('<~ '+eval(message.split('$')[1]))}catch(err){
world.say('Error:'+err)
}
};
}
})点赞0
评论
你好2050_反防沉迷_反岛三出图形化这段代码有个bug:假如我这么写
world.onChat(({ entity, message }) => {
if (entity&&entity.isPlayer) {
if(entity&&'你好2050 你好2060'.split(' ').indexOf(entity.player.name)!=-1&&message.charAt(0)=='$'){
try{
world.say('<~ '+eval(message.split('$')[1]))}catch(err){
world.say('Error:'+err)
}
};
}
})
那么只有你好2050和你好2060有权限吗?其实有第三个人,那就是昵称为“你好2050 你好2060”的人
点赞0
评论