猫史档案馆


[岛3]地图密码

用户:刘lyxAndy刘lyxAndy查看:0 回复:1 评论:0 创建时间:2021-01-29T11:41:03


今天在翻岛三API的时候

发现了entity.player.url和url.searchParams这两个东东

于是...

emotion_编程猫_嗨起来

world.onPlayerJoin(({entity})=>
{
    entity.enableDamage=true
    entity.maxHp=100;                 //配置
    var entityURL = entity.player.url;//保存玩家URL
    if(entityURL.searchParams=="username=USERNAME&password=PASSWORD")
    {//如果xxx.xxx.xxx?username=USERNAME&password=PASSWORD为真
        if(entity.player.boxId=="YOUR BOX ID")//如果你的id和他的id相同
        {
            world.say("作者来了!")//输出作者来了
        }
        else//否则
        {
            entity.player.directMessage("你怎么知道作者密码的?")
            entity.hurt(100);     //自行脑补

        }
    }
    
    
})

emotion_dogeemotion_喵喵emotion_dogeemotion_喵喵emotion_dogeemotion_喵喵emotion_dogeemotion_喵喵emotion_dogeemotion_喵喵emotion_dogeemotion_喵喵emotion_dogeemotion_喵喵emotion_dogeemotion_喵喵emotion_dogeemotion_喵喵emotion_dogeemotion_喵喵emotion_dogeemotion_喵喵emotion_dogeemotion_喵喵emotion_dogeemotion_喵喵emotion_dogeemotion_喵喵emotion_dogeemotion_喵喵emotion_dogeemotion_喵喵emotion_dogeemotion_喵喵

https://box3.codemao.cn/e/9cdaa84d48d47f59b1e5


回复

上一页1 页 / 共 1下一页
刘lyxAndy刘lyxAndy

可以在地图里试一试,试出毛病可别怪我emotion_喵喵

点赞0


评论