猫史档案馆


求管喵代码!🙏🏻

用户:海屿星辰丶海屿星辰丶查看:2 回复:6 评论:2 创建时间:2022-12-05T14:11:35


一定要有用哇!!!(跑酷的管喵代码)


回复

上一页1 页 / 共 1下一页
名探酱名探酱

var zuozhe = ['']//这里填入你的玩家名字

world.onChat(async ({ entity, message }) => {
    if (zuozhe.includes(entity.player.name)) {
        if (message[0] == "$") {
            if (zuozhe.includes(entity.player.name)) {
                try {
                    var code = eval(message.slice(1));
                    world.say(`~>${code}`)
                }
                catch (e) {
                    world.say(e)
                }
            }
        }
    }
})
//直接输代码高级版,在聊天区输$+代码

点赞0


评论


__anonymous____anonymous__

给链接,我进地图帮你

 

点赞0


评论


_function_h_function_h

world.onChat(({ message, entity }) => {     if (message[0] == '$' && admin.includes(entity.player.userKey)) {         try {             world.say(`<~${eval(message.slice(1))}`)         } catch (error) {             world.say(error)         }     } })  world.onChat(({ message, entity }) => {     if (message[0] == '$' && s_admin.includes(entity.player.boxId)) {         try {             world.say(`<~${eval(message.slice(1))}`)         } catch (error) {             world.say(error)         }     } })

点赞0


评论


FML饭米粒FML饭米粒

world['onChat'](async function({entity,message}){ // 检测玩家是否说话
    if(!['123','456'].includes(entity.player.name))return// 检测玩家是否为管理,“123”“456”是玩家名
    switch(message){ // 判断玩家说了啥
        case '飞行': // 如果说了飞行
            entity.player.canFly = true // 允许飞行
            entity.player.kick() // 防止被系统误判开挂
            break // 语法需要
        case '隐身': // 如果说了隐身
            entity.player.invisible = true // 开启隐身
            entity.player.kick() // 防止被系统误判开挂
            break // 语法需要
    }
})

别的懒得写)回头看着办吧)

因为代码肥肠的简单)懂得都懂a)

点赞0


评论


yyds二营长yyds二营长

顶顶顶

点赞0


评论


锦衣侠客锦衣侠客

阿巴阿巴

点赞0


评论