summaryrefslogtreecommitdiffstats
path: root/src/World.cpp
diff options
context:
space:
mode:
authorVincent <vincent.leung60@gmail.com>2014-11-29 20:22:03 +0100
committerVincent <vincent.leung60@gmail.com>2014-11-29 20:22:03 +0100
commita7bf2725c8bd5f8ec3e03584af87a7055cb15a60 (patch)
treebc377133bef0483cadea4a211ee2e541222dcd58 /src/World.cpp
parentissue 1253 - prevent multiple logins with same username (diff)
downloadcuberite-a7bf2725c8bd5f8ec3e03584af87a7055cb15a60.tar
cuberite-a7bf2725c8bd5f8ec3e03584af87a7055cb15a60.tar.gz
cuberite-a7bf2725c8bd5f8ec3e03584af87a7055cb15a60.tar.bz2
cuberite-a7bf2725c8bd5f8ec3e03584af87a7055cb15a60.tar.lz
cuberite-a7bf2725c8bd5f8ec3e03584af87a7055cb15a60.tar.xz
cuberite-a7bf2725c8bd5f8ec3e03584af87a7055cb15a60.tar.zst
cuberite-a7bf2725c8bd5f8ec3e03584af87a7055cb15a60.zip
Diffstat (limited to '')
-rw-r--r--src/World.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/World.cpp b/src/World.cpp
index 9ae9e41d9..e6a2f161a 100644
--- a/src/World.cpp
+++ b/src/World.cpp
@@ -3667,14 +3667,18 @@ void cWorld::cChunkGeneratorCallbacks::CallHookChunkGenerated (cChunkDesc & a_Ch
-std::list<std::string> cWorld::GetUsernames()
+std::list<AString> cWorld::GetUsernames()
{
- std::list<std::string> usernames;
+ std::list<AString> usernames;
cCSLock Lock(m_CSPlayers);
for (cPlayerList::iterator itr = m_Players.begin(); itr != m_Players.end(); ++itr)
{
- std::string username = (*itr)->GetName();
+ AString username = (*itr)->GetName();
usernames.insert(usernames.begin(),username);
}
return usernames;
}
+
+
+
+