diff options
| author | historia <[not public]> | 2026-06-28 02:40:30 -0400 |
|---|---|---|
| committer | historia <[not public]> | 2026-06-28 02:40:30 -0400 |
| commit | a1b6613c6c6a2f8d6e1ecd47e766bd40f92ac295 (patch) | |
| tree | 4ff8fefb029c93f2aa3db7361658b0b4e9805b66 /internal/game/core_admin.go | |
| parent | 87dacfbb3dd16e7f55a82361eace98f9a39d75c8 (diff) | |
| download | thehouseoficarus-a1b6613c6c6a2f8d6e1ecd47e766bd40f92ac295.tar.gz | |
feat: admin accounts, god mode, OLC commands like dig/room, 'inline' objects changed to 'local' objects
Diffstat (limited to 'internal/game/core_admin.go')
| -rw-r--r-- | internal/game/core_admin.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/internal/game/core_admin.go b/internal/game/core_admin.go new file mode 100644 index 0000000..e1236ab --- /dev/null +++ b/internal/game/core_admin.go @@ -0,0 +1,7 @@ +package game + +import "thehouseoficarus/internal/net" + +func (g *Game) checkAdmin(sess *net.Session) bool { + return sess.Account != nil && sess.Account.Admin +} |
