mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-09-03 10:37:05 +02:00
* Removed the Interfaces folder. * All objects inside the GameObjects subfolders are now in the GameObjects namespace. * Added a Resharper DotSettings file to mark the GameObjects subfolders as not providing namespaces. * Simplified Robust.client.Graphics namespace. * Automated remove redundant using statements.
24 lines
871 B
C#
24 lines
871 B
C#
using Robust.Shared.Console;
|
|
using Robust.Shared.IoC;
|
|
using Robust.Shared.Network;
|
|
|
|
namespace Robust.Client.Console.Commands
|
|
{
|
|
internal sealed class SendGarbageCommand : IConsoleCommand
|
|
{
|
|
public string Command => "sendgarbage";
|
|
public string Description => "Sends garbage to the server.";
|
|
public string Help => "The server will reply with 'no u'";
|
|
|
|
public void Execute(IConsoleShell shell, string argStr, string[] args)
|
|
{
|
|
// MsgStringTableEntries is registered as NetMessageAccept.Client so the server will immediately deny it.
|
|
// And kick us.
|
|
var net = IoCManager.Resolve<IClientNetManager>();
|
|
var msg = net.CreateNetMessage<MsgStringTableEntries>();
|
|
msg.Entries = new MsgStringTableEntries.Entry[0];
|
|
net.ClientSendMessage(msg);
|
|
}
|
|
}
|
|
}
|