mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Restored the auto-admin powers of the local user (via name= in the config)
--HG-- extra : rebase_source : a35aa0d978990c28fa4fc158ce47d1f4aa967c04
This commit is contained in:
parent
bc59c18503
commit
8bba9cde5c
3 changed files with 23 additions and 11 deletions
|
@ -34,14 +34,18 @@ struct ServerCommandContext
|
|||
Server* server;
|
||||
ServerEnvironment *env;
|
||||
Player* player;
|
||||
// Effective privs for the player, which may be different to their
|
||||
// stored ones - e.g. if they are named in the config as an admin.
|
||||
u64 privs;
|
||||
u32 flags;
|
||||
|
||||
ServerCommandContext(
|
||||
std::vector<std::wstring> parms,
|
||||
Server* server,
|
||||
ServerEnvironment *env,
|
||||
Player* player)
|
||||
: parms(parms), server(server), env(env), player(player)
|
||||
Player* player,
|
||||
u64 privs)
|
||||
: parms(parms), server(server), env(env), player(player), privs(privs)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue