#Can i change a player permission from scripting?

1 messages · Page 1 of 1 (latest)

upbeat vault
#

I want to make when I send a command like !perm change then the script change the player permission? How can I achieve that?

#

Im not really good at explaining stuff

bitter wharf
#

@upbeat vault

#

Depends

#

U want this in a world or no

livid minnow
#

I think you can with ```js
player.setOp(true);

gilded pier
#

u can just op deop

livid minnow
gilded pier
#

u dont need cmd

#

we have function for ir

livid minnow
gilded pier
#

ye we have func for that within api

livid minnow
upbeat vault
supple hinge
#

Nuh uh

upbeat vault
#

If it was that one i ain't gonna ask here

supple hinge
#

But we can make some player disable from breaking,interacting,etc when it has a specific tag

gilded pier
#

ye

upbeat vault
#

Hm that can be useful

gilded pier
#

we dont have mem and vister settings

#

but can mimic visiter

upbeat vault
#

Hm ok thats good enough

gilded pier
#

many of them are cancelable

vernal path
#

also script api commands can't run op commands

gilded pier
#

like place break interact itemUse itemUse on chat ...

#

enough to mimic vister

vernal path
#

what the different between visitor and adventure mod

gilded pier
#

idk

supple hinge
supple hinge
#

using runCommandAsync()

#

If thats what you meant

vernal path
#

or reload

stoic beacon
#

He meant stuff like setmaxplayers or op or deop