Class MudlibAdminCommandSession
java.lang.Object
io.github.protasm.jvmud.communication.admin.MudlibAdminCommandSession
Interprets administrative commands and maintains one administrator's working directory,
object handles, and output preferences. Connection handling and terminal input belong to
the transport and console client; this session receives complete command lines.
Attached sessions execute within InstanceHost.administer(Function)
so administrative operations share the instance execution queue with player input and ticks.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an independent command sandbox that can boot a runtime through commands. -
Method Summary
Modifier and TypeMethodDescriptionstatic MudlibAdminCommandSessionattach(PrintWriter out, LPCRuntime runtime, Path root) Creates an attached command session without booting a new world.voidvoidbootConfig(Path configFile) voidInterprets one command and writes its result to this session's output.booleanReturns whether this session still accepts commands; quit ends only this session.
-
Constructor Details
-
MudlibAdminCommandSession
Creates an independent command sandbox that can boot a runtime through commands.
-
-
Method Details
-
attach
Creates an attached command session without booting a new world. Creation and every execute call must occur inside InstanceHost.administer; runtime access never escapes that execution boundary. The host supplies its already configured runtime. -
isRunning
public boolean isRunning()Returns whether this session still accepts commands; quit ends only this session. -
execute
Interprets one command and writes its result to this session's output. -
bootConfig
-
boot
-