diff options
author | plan1231 <47790831+plan1231@users.noreply.github.com> | 2022-10-28 15:54:02 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-28 15:54:02 +0200 |
commit | 21ec3ebe26bff24b5fc6d96f86a441c9c9628247 (patch) | |
tree | a1a541cbbdce2294059b501d1c9ab69ffe0bae79 /src/Server.h | |
parent | rework of the color code with & and standard codes (#5416) (diff) | |
download | cuberite-21ec3ebe26bff24b5fc6d96f86a441c9c9628247.tar cuberite-21ec3ebe26bff24b5fc6d96f86a441c9c9628247.tar.gz cuberite-21ec3ebe26bff24b5fc6d96f86a441c9c9628247.tar.bz2 cuberite-21ec3ebe26bff24b5fc6d96f86a441c9c9628247.tar.lz cuberite-21ec3ebe26bff24b5fc6d96f86a441c9c9628247.tar.xz cuberite-21ec3ebe26bff24b5fc6d96f86a441c9c9628247.tar.zst cuberite-21ec3ebe26bff24b5fc6d96f86a441c9c9628247.zip |
Diffstat (limited to 'src/Server.h')
-rw-r--r-- | src/Server.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Server.h b/src/Server.h index 479fbb865..171d68d48 100644 --- a/src/Server.h +++ b/src/Server.h @@ -94,6 +94,9 @@ public: // tolua_end + /** Returns true if clients must accept resource pack. This is read from the settings. */ + bool ShouldRequireResourcePack(void) { return m_RequireResourcePack; } + const AString & GetResourcePackUrl(void) { return m_ResourcePackUrl; } std::string_view GetCustomRedirectUrl(void) { return m_CustomRedirectUrl; } @@ -223,6 +226,7 @@ private: AString m_FaviconData; size_t m_MaxPlayers; bool m_bIsHardcore; + bool m_RequireResourcePack; AString m_ResourcePackUrl; AString m_CustomRedirectUrl; |