Terraria ModLoader  0.11.7.5
A mod to make and play Terraria mods
Terraria.ModLoader.CommandCaller Interface Reference
+ Inheritance diagram for Terraria.ModLoader.CommandCaller:

Public Member Functions

void Reply (string text, Color color=default(Color))
 Use this to repond to the Player that invoked this command. This method handles writing to the console, writing to chat, or sending messages over the network for you depending on the CommandType used. Avoid using Main.NewText, Console.WriteLine, or NetMessage.SendChatMessageToClient directly because the logic would change depending on CommandType. More...
 

Properties

CommandType CommandType [get]
 
Player Player [get]
 The Player object corresponding to the Player that invoked this command. Use this when the Player is needed. Don't use Main.LocalPlayer because that would be incorrect for various CommandTypes. More...
 

Detailed Description

Definition at line 21 of file ModCommand.cs.

Member Function Documentation

void Terraria.ModLoader.CommandCaller.Reply ( string  text,
Color  color = default(Color) 
)

Use this to repond to the Player that invoked this command. This method handles writing to the console, writing to chat, or sending messages over the network for you depending on the CommandType used. Avoid using Main.NewText, Console.WriteLine, or NetMessage.SendChatMessageToClient directly because the logic would change depending on CommandType.

Parameters
text
color

Referenced by Terraria.ModLoader.CommandManager.Matches().

+ Here is the caller graph for this function:

Property Documentation

CommandType Terraria.ModLoader.CommandCaller.CommandType
get

Definition at line 23 of file ModCommand.cs.

Referenced by Terraria.ModLoader.CommandManager.Matches().

Player Terraria.ModLoader.CommandCaller.Player
get

The Player object corresponding to the Player that invoked this command. Use this when the Player is needed. Don't use Main.LocalPlayer because that would be incorrect for various CommandTypes.

Definition at line 28 of file ModCommand.cs.