C# Class PartyCraft.Server

Inheritance: IServer
Exibir arquivo Open project: SirCmpwn/PartyCraft Class Usage Examples

Private Properties

Property Type Description
MinecraftServerOnChatMessage void
MinecraftServerOnPlayerLoggedIn void
MinecraftServerOnPlayerLoggedOut void

Public Methods

Method Description
GetUserGroups ( string user ) : List
MinecraftServer_TabComplete ( object sender, Craft.Net.Server.Events.TabCompleteEventArgs e ) : void
SendChatToGroup ( string group, string text ) : void

Sends a chat message to all members of a specified permission group.

Server ( ISettingsProvider settingsProvider ) : System
SetUserGroups ( string user, List groups ) : void
Start ( ) : void
Stop ( ) : void
TabCompleteUsername ( string text, string &matches ) : bool

Private Methods

Method Description
MinecraftServerOnChatMessage ( object sender, Craft.Net.Server.Events.ChatMessageEventArgs chatMessageEventArgs ) : void
MinecraftServerOnPlayerLoggedIn ( object sender, Craft.Net.Server.Events.PlayerLogInEventArgs playerLogInEventArgs ) : void
MinecraftServerOnPlayerLoggedOut ( object sender, Craft.Net.Server.Events.PlayerLogInEventArgs playerLogInEventArgs ) : void

Method Details

GetUserGroups() public method

public GetUserGroups ( string user ) : List
user string
return List

MinecraftServer_TabComplete() public method

public MinecraftServer_TabComplete ( object sender, Craft.Net.Server.Events.TabCompleteEventArgs e ) : void
sender object
e Craft.Net.Server.Events.TabCompleteEventArgs
return void

SendChatToGroup() public method

Sends a chat message to all members of a specified permission group.
public SendChatToGroup ( string group, string text ) : void
group string
text string
return void

Server() public method

public Server ( ISettingsProvider settingsProvider ) : System
settingsProvider ISettingsProvider
return System

SetUserGroups() public method

public SetUserGroups ( string user, List groups ) : void
user string
groups List
return void

Start() public method

public Start ( ) : void
return void

Stop() public method

public Stop ( ) : void
return void

TabCompleteUsername() public method

public TabCompleteUsername ( string text, string &matches ) : bool
text string
matches string
return bool