summaryrefslogtreecommitdiffstats
path: root/Server/Plugins/Debuggers
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--Server/Plugins/Debuggers/Debuggers.lua13
-rw-r--r--Server/Plugins/Debuggers/Info.lua6
2 files changed, 19 insertions, 0 deletions
diff --git a/Server/Plugins/Debuggers/Debuggers.lua b/Server/Plugins/Debuggers/Debuggers.lua
index c11052071..ae06b4fc9 100644
--- a/Server/Plugins/Debuggers/Debuggers.lua
+++ b/Server/Plugins/Debuggers/Debuggers.lua
@@ -2184,3 +2184,16 @@ end
+
+function HandleTeamsCmd(a_Split, a_Player)
+ local Scoreboard = a_Player:GetWorld():GetScoreBoard()
+
+ a_Player:SendMessage("Teams: " .. table.concat(Scoreboard:GetTeamNames(), ", "))
+
+ return true
+end
+
+
+
+
+
diff --git a/Server/Plugins/Debuggers/Info.lua b/Server/Plugins/Debuggers/Info.lua
index 51406c27c..fa85f0532 100644
--- a/Server/Plugins/Debuggers/Info.lua
+++ b/Server/Plugins/Debuggers/Info.lua
@@ -208,6 +208,12 @@ g_PluginInfo =
Handler = HandleBlkCmd,
HelpString = "Gets info about the block you are looking at"
},
+ ["/teams"] =
+ {
+ Permission = "debuggers",
+ Handler = HandleTeamsCmd,
+ HelpString = "List the teams"
+ },
}, -- Commands
ConsoleCommands =