用户:
刘lyxAndy查看:0 回复:1 评论:0 创建时间:2021-01-29T11:41:03
今天在翻岛三API的时候
发现了entity.player.url和url.searchParams这两个东东
于是...

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); //自行脑补
}
}
})
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()