From 38bb77a0773fb115d4b25704fc1a30596ebd340f Mon Sep 17 00:00:00 2001 From: nullprop Date: Thu, 25 Apr 2024 05:10:20 +0300 Subject: [PATCH] Add example CON_COMMAND --- src/ServerPlugin.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/ServerPlugin.cpp b/src/ServerPlugin.cpp index be4f382..1402915 100644 --- a/src/ServerPlugin.cpp +++ b/src/ServerPlugin.cpp @@ -155,3 +155,8 @@ void ServerPlugin::ListenToGameEvent(const char* name) m_engineInterfaces.gameEventManager->AddListener(this, name, true); m_gameEventsHooked = true; } + +CON_COMMAND(example, "Example command") +{ + Msg("[ServerPlugin] Scientist: \"Do you know who ate all the donuts?\"\n"); +}