mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 16:45:20 +02:00
Add 'fly' and 'fast' privileges and the underlying privileges-to-client system
This commit is contained in:
@@ -1636,6 +1636,8 @@ void the_game(
|
||||
g_settings->set("free_move","true");
|
||||
statustext = L"free_move enabled";
|
||||
statustext_time = 0;
|
||||
if(!client.checkPrivilege("fly"))
|
||||
statustext += L" (note: no 'fly' privilege)";
|
||||
}
|
||||
}
|
||||
else if(input->wasKeyDown(getKeySetting("keymap_fastmove")))
|
||||
@@ -1651,6 +1653,8 @@ void the_game(
|
||||
g_settings->set("fast_move","true");
|
||||
statustext = L"fast_move enabled";
|
||||
statustext_time = 0;
|
||||
if(!client.checkPrivilege("fast"))
|
||||
statustext += L" (note: no 'fast' privilege)";
|
||||
}
|
||||
}
|
||||
else if(input->wasKeyDown(getKeySetting("keymap_screenshot")))
|
||||
|
Reference in New Issue
Block a user