implementation of sendChat communication

This commit is contained in:
kremsy
2015-06-23 16:57:11 +02:00
parent 2fbb51dcd4
commit 2f25069845
4 changed files with 91 additions and 6 deletions

View File

@ -12,4 +12,15 @@ namespace ManiaControl\Communication;
interface CommunicationMethods {
/** Returns the last 200 lines of the chat (inclusive player logins and nicknames) */
const GET_SERVER_CHAT = "Chat.GetServerChat";
/** Sends a ChatMessage to the Server
* Required Params:
* - message
* Optional Params
* - prefix (use custom prefix or false for no prefix)
* - login (login of a receiver if the message don't get sent to all)
* - adminLevel (minimum Admin Level if the Message should get sent to an Admin)
* - type (type of the message (information, error, success or usage)
*/
const SEND_CHAT_MESSAGE = "Chat.SendChatMessage";
}