mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/LCEMP-Server.git
synced 2026-05-22 13:26:07 +00:00
Initial commit
This commit is contained in:
17
Commands/ToggleDownfallServerCommand.cpp
Normal file
17
Commands/ToggleDownfallServerCommand.cpp
Normal file
@@ -0,0 +1,17 @@
|
||||
#include "stdafx.h"
|
||||
#include "ToggleDownfallServerCommand.h"
|
||||
#include "ServerCommand.h"
|
||||
#include "ConsoleCommandSender.h"
|
||||
|
||||
#include "../../Minecraft.Client/MinecraftServer.h"
|
||||
#include "../../Minecraft.Client/ConsoleInputSource.h"
|
||||
#include "../../Minecraft.World/CommandDispatcher.h"
|
||||
#include "../../Minecraft.World/ByteArrayOutputStream.h"
|
||||
|
||||
void ToggleDownfallServerCommand::execute(const wstring& args, ConsoleInputSource *src, MinecraftServer *server)
|
||||
{
|
||||
shared_ptr<ConsoleCommandSender> sender(new ConsoleCommandSender(src));
|
||||
CommandDispatcher *dispatcher = server->getCommandDispatcher();
|
||||
dispatcher->performCommand(sender, eGameCommand_ToggleDownfall, byteArray());
|
||||
ServerCommand::notifyAdmins(src, server, L"Toggled downfall");
|
||||
}
|
||||
Reference in New Issue
Block a user