2015-06-21 22:24:10 +02:00
|
|
|
<?php
|
|
|
|
|
2015-06-22 20:22:17 +02:00
|
|
|
namespace ManiaControl\Communication;
|
2015-06-21 22:24:10 +02:00
|
|
|
|
2015-06-22 22:52:26 +02:00
|
|
|
/**
|
|
|
|
* Communication Methods Interface
|
|
|
|
*
|
|
|
|
* @author ManiaControl Team <mail@maniacontrol.com>
|
|
|
|
* @copyright 2014-2015 ManiaControl Team
|
|
|
|
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
|
|
|
|
*/
|
2015-06-22 20:22:17 +02:00
|
|
|
interface CommunicationMethods {
|
2015-06-23 17:12:23 +02:00
|
|
|
/** Restarts Mania Control
|
|
|
|
* Optional Params
|
|
|
|
* - message
|
|
|
|
*/
|
|
|
|
const RESTART_MANIA_CONTROL = "ManiaControl.Restart";
|
|
|
|
|
2015-06-23 21:20:44 +02:00
|
|
|
/** Gets Mania Control PlayerList
|
|
|
|
* no Parameters
|
|
|
|
*/
|
|
|
|
const GET_PLAYER_LIST = "PlayerManager.GetPlayerList";
|
|
|
|
|
|
|
|
/** Warns a Player
|
|
|
|
* Required Params
|
|
|
|
* - login
|
|
|
|
*/
|
|
|
|
const WARN_PLAYER = "PlayerActions.WarnPlayer";
|
|
|
|
|
|
|
|
/** Mutes a Player
|
|
|
|
* Required Params
|
|
|
|
* - login
|
|
|
|
*/
|
|
|
|
const MUTE_PLAYER = "PlayerActions.MutePlayer";
|
|
|
|
|
|
|
|
/** UnMutes a Player
|
|
|
|
* Required Params
|
|
|
|
* - login
|
|
|
|
*/
|
|
|
|
const UNMUTE_PLAYER = "PlayerActions.UnMutePlayer";
|
|
|
|
|
|
|
|
/** UnMutes a Player
|
|
|
|
* Required Params
|
|
|
|
* - login
|
|
|
|
* Optional Params
|
|
|
|
* - message
|
|
|
|
*/
|
|
|
|
const KICK_PLAYER = "PlayerActions.KickPlayer";
|
|
|
|
|
2015-06-26 13:06:05 +02:00
|
|
|
/** Forces a player to Spectator
|
|
|
|
* Required Params
|
|
|
|
* - login
|
|
|
|
*/
|
2015-06-23 21:20:44 +02:00
|
|
|
const FORCE_PLAYER_TO_SPEC = "PlayerActions.ForcePlayerToSpec";
|
2015-06-26 13:06:05 +02:00
|
|
|
|
|
|
|
/** Forces a player to Spectator
|
|
|
|
* Required Params
|
|
|
|
* - login
|
|
|
|
* Optional Params
|
|
|
|
* - teamId (id of the team the player shoudl get forced into it)
|
|
|
|
*/
|
2015-06-23 21:20:44 +02:00
|
|
|
const FORCE_PLAYER_TO_PLAY = "PlayerActions.ForcePlayerToPlay";
|
|
|
|
|
2015-06-23 17:12:23 +02:00
|
|
|
/** Returns the last 200 lines of the chat (inclusive player logins and nicknames)
|
|
|
|
* No Params
|
|
|
|
*/
|
2015-06-21 22:24:10 +02:00
|
|
|
const GET_SERVER_CHAT = "Chat.GetServerChat";
|
2015-06-23 16:57:11 +02:00
|
|
|
|
|
|
|
/** 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";
|
2015-06-21 22:24:10 +02:00
|
|
|
}
|