summaryrefslogtreecommitdiffstats
path: root/source/cPlayer.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--source/cPlayer.cpp20
1 files changed, 19 insertions, 1 deletions
diff --git a/source/cPlayer.cpp b/source/cPlayer.cpp
index 44b27e14a..d336a4616 100644
--- a/source/cPlayer.cpp
+++ b/source/cPlayer.cpp
@@ -920,6 +920,10 @@ const cPlayer::GroupList & cPlayer::GetGroups()
return m_pState->Groups;
}
+
+
+
+
cPlayer::StringList cPlayer::GetResolvedPermissions()
{
StringList Permissions;
@@ -933,17 +937,31 @@ cPlayer::StringList cPlayer::GetResolvedPermissions()
return Permissions;
}
+
+
+
+
const char* cPlayer::GetLoadedWorldName()
{
return m_pState->LoadedWorldName.c_str();
}
+
+
+
+
void cPlayer::UseEquippedItem()
{
if(GetGameMode() != 1) //No damage in creative
+ {
if (GetInventory().GetEquippedItem().DamageItem())
{
LOG("Player %s Broke ID: %i", GetClientHandle()->GetUsername().c_str(), GetInventory().GetEquippedItem().m_ItemID);
GetInventory().RemoveItem( GetInventory().GetEquippedItem());
}
-} \ No newline at end of file
+ }
+}
+
+
+
+