You've already forked Arcturus-Morningstar-Extended
mirror of
https://github.com/duckietm/Arcturus-Morningstar-Extended.git
synced 2026-06-19 15:06:19 +00:00
1a0d783ff7
Adds two new packets: * Incoming 9102 HousekeepingBanUserEvent — reads (userId, reason, hours). Unlike ModToolSanctionBanEvent which only accepts the four fixed Habbo-protocol banType buckets (18h / 7d / 30d / 100y), this one converts the hours arg straight to seconds and feeds them into ModToolManager.ban with ModToolBanType.ACCOUNT and cfhTopic=0. Duration is clamped to 100 years to keep it inside `int` range. * Outgoing 9201 HousekeepingActionResultComposer — generic ack for any HK action (ban / mute / kick / give-credits / room-close / …). Wire shape is (actionKey, ok, actionId, message). The actionKey lets the client filter multiple in-flight actions to the right Promise via `accept`, so concurrent admin operations don't cross-resolve. actionId here is the target user id because ModToolBan doesn't expose the `bans` autoinc id on the object — there's a TODO to swap this for a dedicated housekeeping_log row id once that table goes in. Same ACC_HOUSEKEEPING permission gate as the find-user packets, so operators only need to grant the permission once. `mvn compile` clean.