C# Class LaunchServer.ServerWrapper

Show file Open project: N3X15/MineEdit Class Usage Examples

Public Properties

Property Type Description
Bans List
CurrentPlayers string>.Dictionary
KnownPlayers Player>.Dictionary
MaxPlayers int
Whitelist List

Public Methods

Method Description
Ban ( string name ) : void
Close ( ) : void
CurrentDomain_ProcessExit ( object sender, EventArgs e ) : void
Give ( string name, short what, byte num ) : void
IsBanned ( string name ) : bool
Kick ( string name ) : void
LoadConfig ( ) : void
SaveConfig ( ) : void
Say ( string val ) : void
SendCommand ( string val ) : void
ServerProcess_ErrorDataReceived ( object sender, DataReceivedEventArgs e ) : void
ServerProcess_Exited ( object sender, EventArgs e ) : void
ServerProcess_OutputDataReceived ( object sender, DataReceivedEventArgs e ) : void
ServerWrapper ( ) : System
SetupServer ( ) : void
Start ( ) : void
Stop ( bool permanently ) : void
Unban ( string name ) : void

Private Methods

Method Description
GetConfig ( string k ) : string
GetServerMemory ( ) : string
Load ( ) : void
LoadPlugins ( Assembly assembly ) : void
ProcessChat ( string line ) : void
ProcessEmote ( string line ) : void
ProcessLogin ( string line ) : void
ProcessQuit ( string line ) : void
Save ( ) : void
SetConfig ( string k, string v ) : void

Method Details

Ban() public method

public Ban ( string name ) : void
name string
return void

Close() public method

public Close ( ) : void
return void

CurrentDomain_ProcessExit() public method

public CurrentDomain_ProcessExit ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

Give() public method

public Give ( string name, short what, byte num ) : void
name string
what short
num byte
return void

IsBanned() public method

public IsBanned ( string name ) : bool
name string
return bool

Kick() public method

public Kick ( string name ) : void
name string
return void

LoadConfig() public method

public LoadConfig ( ) : void
return void

SaveConfig() public method

public SaveConfig ( ) : void
return void

Say() public method

public Say ( string val ) : void
val string
return void

SendCommand() public method

public SendCommand ( string val ) : void
val string
return void

ServerProcess_ErrorDataReceived() public method

public ServerProcess_ErrorDataReceived ( object sender, DataReceivedEventArgs e ) : void
sender object
e System.Diagnostics.DataReceivedEventArgs
return void

ServerProcess_Exited() public method

public ServerProcess_Exited ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

ServerProcess_OutputDataReceived() public method

public ServerProcess_OutputDataReceived ( object sender, DataReceivedEventArgs e ) : void
sender object
e System.Diagnostics.DataReceivedEventArgs
return void

ServerWrapper() public method

public ServerWrapper ( ) : System
return System

SetupServer() public method

public SetupServer ( ) : void
return void

Start() public method

public Start ( ) : void
return void

Stop() public method

public Stop ( bool permanently ) : void
permanently bool
return void

Unban() public method

public Unban ( string name ) : void
name string
return void

Property Details

Bans public property

public List Bans
return List

CurrentPlayers public property

public Dictionary CurrentPlayers
return string>.Dictionary

KnownPlayers public property

public Dictionary KnownPlayers
return Player>.Dictionary

MaxPlayers public property

public int MaxPlayers
return int

Whitelist public property

public List Whitelist
return List