We need a way to set the opt level on clients. Certain packets are never sent from clients unless they are opt level 2 (admin). To completely integrate this however, we would need a way to give someone a different op level in the server's config file.
I don’t know where to best place this code in the project, but the opt level of any player should probably be a component. If you want to know how to add a component I would suggest having a look at https://github.com/feather-rs/feather/pull/428.
If you are wondering what packet to send the client it’s entity status.
@ambeeeeee Has opened a issue #484 that is almost identical to this, but its just more ambitious in it's scope. Any further discussion about permission levels should probably happen there.
Permission/Admin system
We need a way to set the opt level on clients. Certain packets are never sent from clients unless they are opt level 2 (admin). To completely integrate this however, we would need a way to give someone a different op level in the server's config file.
Related files: feather/common/src/game.rs
feather/server/src/config
I don’t know where to best place this code in the project, but the opt level of any player should probably be a component. If you want to know how to add a component I would suggest having a look at https://github.com/feather-rs/feather/pull/428.
If you are wondering what packet to send the client it’s entity status.