From beb36ee1496fa54ae9a0abcef4251d71512d48c5 Mon Sep 17 00:00:00 2001 From: "nielsbreu@gmail.com" Date: Fri, 28 Jun 2013 10:18:55 +0000 Subject: Added /listworlds command and fixed bug in /listgroups where you have an extra comma at the end. git-svn-id: http://mc-server.googlecode.com/svn/trunk@1629 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- MCServer/Plugins/Core/listgroups.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'MCServer/Plugins/Core/listgroups.lua') diff --git a/MCServer/Plugins/Core/listgroups.lua b/MCServer/Plugins/Core/listgroups.lua index da9a6ce67..531b46463 100644 --- a/MCServer/Plugins/Core/listgroups.lua +++ b/MCServer/Plugins/Core/listgroups.lua @@ -3,7 +3,7 @@ function HandleListGroupsCommand( Split, Player ) if GroupsIni:ReadFile() == false then Player:SendMessage( cChatColor.Green .. "No groups found" ) end - Number = GroupsIni:NumKeys() + Number = GroupsIni:NumKeys() - 1 Groups = {} for i=0, Number do table.insert( Groups, GroupsIni:KeyName(i) ) -- cgit v1.2.3