feat(admin): drizzle trade-lock + RCON sync and photo local purge
Co-authored-by: Cursor <[email protected]>
This commit is contained in:
1 parent
67656a9aad
commit
9854719cfd
7 files changed
+250
-45
No files matched your search
@@ -140,6 +140,17 @@ export class RconClient {
|
||||
unmuteUser(userId: number) {
|
||||
return this.send("unmuteuser", { user_id: userId });
|
||||
}
|
||||
/**
|
||||
* Best-effort live trade lock sync. Polaris/Arcturus forks may expose
|
||||
* `settradelock`; unknown keys are ignored by the emulator. Prefer updating
|
||||
* `users_settings.can_trade` in DB and disconnecting online users.
|
||||
*/
|
||||
setTradeLock(userId: number, locked: boolean) {
|
||||
return this.send("settradelock", {
|
||||
user_id: userId,
|
||||
enabled: locked ? 0 : 1,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
const globalForRcon = globalThis as unknown as { rcon?: RconClient };
|
||||
|
||||
Reference in new issue
Block a user