feather-rs / feather

A Minecraft server implementation in Rust
Apache License 2.0
2.58k stars 143 forks source link

# Basic permission level #477

Closed Miro-Andrin closed 2 years ago

Miro-Andrin commented 2 years ago

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.

Miro-Andrin commented 2 years ago

@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.