diff options
author | STRWarrior <niels.breuker@hotmail.nl> | 2014-03-05 19:17:59 +0100 |
---|---|---|
committer | STRWarrior <niels.breuker@hotmail.nl> | 2014-03-05 19:17:59 +0100 |
commit | dc0cbd594c05395b5d71af8a8a1f24b10c2d0d50 (patch) | |
tree | 488762e1c62af5647a2bae1d8840c19ebb3b73ba | |
parent | Fixed typo (diff) | |
download | cuberite-dc0cbd594c05395b5d71af8a8a1f24b10c2d0d50.tar cuberite-dc0cbd594c05395b5d71af8a8a1f24b10c2d0d50.tar.gz cuberite-dc0cbd594c05395b5d71af8a8a1f24b10c2d0d50.tar.bz2 cuberite-dc0cbd594c05395b5d71af8a8a1f24b10c2d0d50.tar.lz cuberite-dc0cbd594c05395b5d71af8a8a1f24b10c2d0d50.tar.xz cuberite-dc0cbd594c05395b5d71af8a8a1f24b10c2d0d50.tar.zst cuberite-dc0cbd594c05395b5d71af8a8a1f24b10c2d0d50.zip |
Diffstat (limited to '')
-rw-r--r-- | MCServer/Plugins/InfoDump.lua | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/MCServer/Plugins/InfoDump.lua b/MCServer/Plugins/InfoDump.lua index 59263d056..c61f9c9e6 100644 --- a/MCServer/Plugins/InfoDump.lua +++ b/MCServer/Plugins/InfoDump.lua @@ -530,12 +530,13 @@ local function DumpPermissionsGithub(a_PluginInfo, f) -- Dump the permissions: f:write("\n# Permissions\n"); + f:write("| Permissions | Description | Commands | Recommended groups |\n") + f:write("| ----------- | ----------- | -------- | ------------------ |\n") for idx, perm in ipairs(Permissions) do - f:write("### ", perm.Name, "\n"); - f:write(GithubizeString(perm.Info.Description or "")); + f:write(perm.Name, " | "); + f:write(GithubizeString(perm.Info.Description or ""), " | "); local CommandsAffected = perm.Info.CommandsAffected or {}; if (#CommandsAffected > 0) then - f:write("\n\nCommands affected:\n - "); local Affects = {}; for idx2, cmd in ipairs(CommandsAffected) do if (type(cmd) == "string") then @@ -544,11 +545,10 @@ local function DumpPermissionsGithub(a_PluginInfo, f) table.insert(Affects, GetCommandRefGithub(cmd.Name, cmd)); end end - f:write(table.concat(Affects, "\n - ")); - f:write("\n"); + f:write(table.concat(Affects, ", "), " | "); end if (perm.Info.RecommendedGroups ~= nil) then - f:write("\n\nRecommended groups: ", perm.Info.RecommendedGroups, "\n"); + f:write(perm.Info.RecommendedGroups, " |"); end f:write("\n"); end @@ -594,7 +594,7 @@ local function DumpPluginInfoGithub(a_PluginFolder, a_PluginInfo) f:write(GithubizeString(a_PluginInfo.Description), "\n"); DumpAdditionalInfoGithub(a_PluginInfo, f); DumpCommandsGithub(a_PluginInfo, f); - --DumpPermissionsGithub(a_PluginInfo, f); -- Seems a little overkill since they are already mentioned in the commands. + DumpPermissionsGithub(a_PluginInfo, f); f:close(); end |