summaryrefslogtreecommitdiffstats
path: root/src/Scoreboard.cpp
diff options
context:
space:
mode:
authorPlasmaPower <ljbousfield@gmail.com>2016-05-29 19:12:18 +0200
committerMattes D <github@xoft.cz>2016-05-29 19:12:18 +0200
commitb4d9732fe9281d58e6970f336054205471bec74c (patch)
treeca6ef00b088e5f0ab31f54d303a9b6acbffabdeb /src/Scoreboard.cpp
parentFixed remaining issue from #3199 (#3207) (diff)
downloadcuberite-b4d9732fe9281d58e6970f336054205471bec74c.tar
cuberite-b4d9732fe9281d58e6970f336054205471bec74c.tar.gz
cuberite-b4d9732fe9281d58e6970f336054205471bec74c.tar.bz2
cuberite-b4d9732fe9281d58e6970f336054205471bec74c.tar.lz
cuberite-b4d9732fe9281d58e6970f336054205471bec74c.tar.xz
cuberite-b4d9732fe9281d58e6970f336054205471bec74c.tar.zst
cuberite-b4d9732fe9281d58e6970f336054205471bec74c.zip
Diffstat (limited to 'src/Scoreboard.cpp')
-rw-r--r--src/Scoreboard.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/Scoreboard.cpp b/src/Scoreboard.cpp
index 5e416c0d1..4dde5b2dd 100644
--- a/src/Scoreboard.cpp
+++ b/src/Scoreboard.cpp
@@ -416,6 +416,22 @@ cTeam * cScoreboard::GetTeam(const AString & a_Name)
+AStringVector cScoreboard::GetTeamNames()
+{
+ AStringVector TeamNames;
+
+ for (const auto & Team: m_Teams)
+ {
+ TeamNames.push_back(Team.first);
+ }
+
+ return TeamNames;
+}
+
+
+
+
+
cTeam * cScoreboard::QueryPlayerTeam(const AString & a_Name)
{
cCSLock Lock(m_CSTeams);