Files
DarkflameServer/dDashboardServer/routes/ContrabandRoutes.h
Aaron Kimbrell b2403b09ea feat: contraband list with flagging and optional removal
Staff list contraband items on a new dashboard page (item search, reason, flag or flag and remove;
contraband_manage to edit, reports_view to see). World servers check every inventory when a
character loads and every item a player receives: each find is an economy flag of the new kind
Contraband, shown with the other flags and in the character's related data. Items marked for
removal are taken away, with a character snapshot kept first so they can be given back, an audit
entry and a mail or chat message telling the player why. Staff are skipped unless
contraband_ignore_staff is off. Worlds reload the list when it changes (RELOAD_CONTRABAND, added
at the end of ePlayerAction).

Fixes #1563

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-28 22:30:52 -05:00

12 lines
534 B
C++

#pragma once
/**
* The Contraband page: items staff don't want players to have (IContraband). Each has a reason and says whether a
* character holding one is only flagged or also has it removed (see dGame/dUtilities/Contraband.h). Viewing needs
* reports_view, changing the list contraband_manage; every change is audited and running worlds reload the list.
* What was found shows up as economy flags of kind Contraband (Economy page, and the character's related data).
*/
namespace ContrabandRoutes {
void RegisterRoutes();
}