18 {
19
20
21
22
23
24
25
26
27
28
29
30
32 if (Main.netMode == 1)
33 {
35 Mod[]
client =
mods.Where((
Mod m) =>
m.Side == ModSide.Client ||
m.Side == ModSide.NoSync).ToArray();
37 {
40 foreach (
Mod mod
in array)
41 {
42 caller.Reply(mod.DisplayName);
43 }
44 }
45 return;
46 }
48 {
49 Mod[] server =
mods.Where((
Mod m) =>
m.Side == ModSide.Server ||
m.Side == ModSide.NoSync).ToArray();
50 if (server.Length != 0)
51 {
55 {
57 }
58 }
60 {
62 {
64 }
65 return;
66 }
67 }
69 {
71 }
73 {
75 }
76 }
static void SendChatMessageFromClient(ChatMessage message)
static string GetTextValue(string key)
Retrieves the text value for a specified localization key. The text returned will be for the currentl...
Contains methods to access or retrieve localization values. The Localization Guideteaches more about ...
Mod Mod
The mod this belongs to.
CommandType
A flag enum representing context where this command operates.