TModLoader v1.4.4.9
TModLoader source code documentation
Loading...
Searching...
No Matches
Terraria.ModLoader.ConsoleCommandCaller Class Reference
+ Inheritance diagram for Terraria.ModLoader.ConsoleCommandCaller:
+ Collaboration diagram for Terraria.ModLoader.ConsoleCommandCaller:

Public Member Functions

void Reply (string text, Color color=default(Color))
 Use this to respond 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.
 

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.
 

Detailed Description

Definition at line 6 of file ConsoleCommandCaller.cs.


The documentation for this class was generated from the following file: