Skip to content

Commit 782b18c

Browse files
committed
fix: disable server commands
1 parent 5e917be commit 782b18c

File tree

1 file changed

+19
-19
lines changed

1 file changed

+19
-19
lines changed

GamingAPIPlugins/plugins/GamingAPI.cs

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -286,25 +286,25 @@ void OnPlayerReported(BasePlayer reporter, string targetName, string targetId, s
286286
});
287287
}
288288

289-
object OnServerCommand(ConsoleSystem.Arg arg)
290-
{
291-
if(arg.Args == null)
292-
{
293-
Puts("On server command args null");
294-
return null;
295-
}
296-
ServerCommand i = new ServerCommand
297-
{
298-
Timestamp = System.DateTime.Now.ToString(),
299-
Command = arg.cmd.Name,
300-
Arguments = string.Join(" ", arg.Args)
301-
};
302-
GamingApiMessageQueue.Instance.AddToMessageQueue(MessageImportance.LOW, (System.Action success, System.Action failed) =>
303-
{
304-
DefaultPluginInformation.GetInstance().NatsClient.JetStreamPublishToV0RustServersServerIdEventsCommand(i, DefaultPluginInformation.GetServerId());
305-
});
306-
return null;
307-
}
289+
// object OnServerCommand(ConsoleSystem.Arg arg)
290+
// {
291+
// if(arg.Args == null)
292+
// {
293+
// Puts("On server command args null");
294+
// return null;
295+
// }
296+
// ServerCommand i = new ServerCommand
297+
// {
298+
// Timestamp = System.DateTime.Now.ToString(),
299+
// Command = arg.cmd.Name,
300+
// Arguments = string.Join(" ", arg.Args)
301+
// };
302+
// GamingApiMessageQueue.Instance.AddToMessageQueue(MessageImportance.LOW, (System.Action success, System.Action failed) =>
303+
// {
304+
// DefaultPluginInformation.GetInstance().NatsClient.JetStreamPublishToV0RustServersServerIdEventsCommand(i, DefaultPluginInformation.GetServerId());
305+
// });
306+
// return null;
307+
// }
308308

309309
/**
310310
* When players are damaged

0 commit comments

Comments
 (0)