summaryrefslogtreecommitdiffstats
path: root/src/ClientHandle.cpp
diff options
context:
space:
mode:
authorplan1231 <47790831+plan1231@users.noreply.github.com>2022-10-28 15:54:02 +0200
committerGitHub <noreply@github.com>2022-10-28 15:54:02 +0200
commit21ec3ebe26bff24b5fc6d96f86a441c9c9628247 (patch)
treea1a541cbbdce2294059b501d1c9ab69ffe0bae79 /src/ClientHandle.cpp
parentrework of the color code with & and standard codes (#5416) (diff)
downloadcuberite-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/ClientHandle.cpp')
-rw-r--r--src/ClientHandle.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/ClientHandle.cpp b/src/ClientHandle.cpp
index 5a2e1d620..7fc678de0 100644
--- a/src/ClientHandle.cpp
+++ b/src/ClientHandle.cpp
@@ -1884,6 +1884,19 @@ void cClientHandle::HandleUseItem(bool a_UsedMainHand)
+void cClientHandle::HandleResourcePack(UInt8 a_Status)
+{
+ // Kick player if client declined the resource pack
+ if ((a_Status == 1) && cRoot::Get()->GetServer()->ShouldRequireResourcePack())
+ {
+ Kick("You must accept the resource pack");
+ }
+}
+
+
+
+
+
void cClientHandle::HandleRespawn(void)
{
if (m_Player->GetHealth() > 0)