Skip to content

Staff tools ​

Golf staff have three permission nodes: np_golf.admin (everything), np_golf.marshal (end rounds, void bets) and np_golf.survey (measure greens). All checks go through npAdmin.can, never ACE.

np_admin staff tools ​

With np_admin running, np_golf registers four actions under Resource tools (quick menu and command palette). Ending a round, voiding bets and resetting a handicap are written to np_admin's audit log and, with np_discord, to the golf log channel.

Action Node Target What
Roll new wind np_golf.admin – New wind for everyone right away
End a golf round np_golf.marshal or np_golf.admin Round id (R0001) Ends the round as abandoned: open holds are released, played holes stay settled
Void a round's spectator bets np_golf.marshal or np_golf.admin Round id, reason After a proven exploit: every open spectator bet of the round is refunded
Reset golf handicap np_golf.admin Player Clears the player's handicap index (back to the starting value)

Round ids show in the Fairway app and through GetLiveRounds.

Commands ​

Command Node What
/golfwind np_golf.admin Roll new wind
/golfend <round> np_golf.marshal End a round
/golfsurvey <hole> np_golf.survey Measure a green (below)

The server console may run every command.

Course survey ​

Green slopes are configured per green in shared/config/course.lua (green.slope = { dir, pct }). They are estimates until somebody measures the real ground:

  1. Stand on or near the green of a hole.
  2. Run /golfsurvey <hole>. The client samples the ground around the pin (GET_GROUND_Z_FOR_3D_COORD on a grid over 90 % of the green radius).
  3. The server checks that every sample lies on that green, fits a plane through them and stores the slope in np_golf_course. It overrides the config at once for everyone (GlobalState.npGolfCourse).

The result is shown as a toast and printed to the F8 console as a config line ([np_golf] hole 5 green = { slope = { dir = 180, pct = 1.6 } }), so you can copy it into course.lua.

Anti-exploit flags ​

  • Nine Perfect snaps in a row (Config.Security.flagPerfectStreak) are flagged (flag_perfect_streak) in the audit log.
  • Stakes of 80 % of the maximum or more are logged as big bets.
  • Every golf log entry (aces, memberships, check-ins, big bets, flags, surveys, staff actions) goes to the audit log and, with np_discord, to the channel Config.DiscordChannel.