summaryrefslogtreecommitdiffstats
path: root/src/Root.h
diff options
context:
space:
mode:
authorLogicParrot <LogicParrot@users.noreply.github.com>2016-02-04 15:06:37 +0100
committerLogicParrot <LogicParrot@users.noreply.github.com>2016-02-05 14:34:16 +0100
commitd8861da5990315c415cd250c9d2a8a4f2b9d122b (patch)
treeffc94dd94cbb5029b66bf6cf2555bb825392d77f /src/Root.h
parentMerge pull request #2960 from LogicParrot/interspecies (diff)
downloadcuberite-d8861da5990315c415cd250c9d2a8a4f2b9d122b.tar
cuberite-d8861da5990315c415cd250c9d2a8a4f2b9d122b.tar.gz
cuberite-d8861da5990315c415cd250c9d2a8a4f2b9d122b.tar.bz2
cuberite-d8861da5990315c415cd250c9d2a8a4f2b9d122b.tar.lz
cuberite-d8861da5990315c415cd250c9d2a8a4f2b9d122b.tar.xz
cuberite-d8861da5990315c415cd250c9d2a8a4f2b9d122b.tar.zst
cuberite-d8861da5990315c415cd250c9d2a8a4f2b9d122b.zip
Diffstat (limited to '')
-rw-r--r--src/Root.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Root.h b/src/Root.h
index 261dac29f..2ce0e7c32 100644
--- a/src/Root.h
+++ b/src/Root.h
@@ -57,6 +57,9 @@ public:
void Start(std::unique_ptr<cSettingsRepositoryInterface> a_OverridesRepo);
+ /** Stops the server, as if "/stop" was typed in the console. */
+ void StopServer();
+
// tolua_begin
cServer * GetServer(void) { return m_Server; }
cWorld * GetDefaultWorld(void);
@@ -66,6 +69,7 @@ public:
*/
cWorld * GetWorld(const AString & a_WorldName, bool a_SearchForFolder = false);
+
/** Returns a pointer to a world of specified name - will search loaded worlds first, then create anew if not found
The dimension parameter is used to create a world with a specific dimension
a_OverworldName should be set for non-overworld dimensions if one wishes that world to link back to an overworld via portals