summaryrefslogtreecommitdiffstats
path: root/src/ClientHandle.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-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)