Esc to clear, Enter to open the best match, click an export to open it in its page
Concepts
The WHIP way
The rules WHIP's own resources follow. A resource that keeps them works on every WHIP server, survives a whip_core restart, and doesn't fight other resources.
| Rule | Because |
|---|---|
Declare in Whip.register: items, events, actions, jobs | whip_core forgets them when it restarts (the one rule) |
The server decides. Every message from a game is a SecureEvent or SecureCallback that names its values, with near where it matters | A modified game can send anything, from anywhere (Secure Events) |
Return false, 'why'; never throw or return a bare nil | Callers can tell a refusal from a bug, and players can read why (Return values) |
Save a charId, never a server id | Server ids are reused by the next player to join |
Ask WHIP for what players share: the screen (SetScreenOpen), controls (BlockControls), hands (FreeHands) | One owner each, released when your resource stops (Screens, input and controls) |
React to events; don't poll with while true do Wait(0) | A per-frame loop costs every player all the time (Timing your loops) |
One call per action: StoreMove, not RemoveItem then AddItem; your own rows with CommitWithAction | One action, one transaction (Save System) |
Prefix names with your resource's: mycafe_coffee, mycafe:buy | Names are server-wide, first come first served (Registering) |
| Put a check where every path passes: in your export, not in each caller | The next caller can't forget it |
Settings on a page, not in code: Whip.configPage | Owners change it in /whip, and it survives your updates (Settings pages) |