summaryrefslogtreecommitdiffstats
path: root/MCServer/Plugins/Core/console.lua
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2013-08-13 23:02:22 +0200
committermadmaxoft <github@xoft.cz>2013-08-13 23:02:22 +0200
commitaf645c62c921869a1a6569935000ece3cb909e89 (patch)
treef9947aae502b86073f55d47547ef0084a0bf2ca2 /MCServer/Plugins/Core/console.lua
parentClients are now ticked in cServer first, then in cWorld once they get assigned a world. (diff)
parentAdded ConsoleColors test for testing out linux console color codes. (diff)
downloadcuberite-af645c62c921869a1a6569935000ece3cb909e89.tar
cuberite-af645c62c921869a1a6569935000ece3cb909e89.tar.gz
cuberite-af645c62c921869a1a6569935000ece3cb909e89.tar.bz2
cuberite-af645c62c921869a1a6569935000ece3cb909e89.tar.lz
cuberite-af645c62c921869a1a6569935000ece3cb909e89.tar.xz
cuberite-af645c62c921869a1a6569935000ece3cb909e89.tar.zst
cuberite-af645c62c921869a1a6569935000ece3cb909e89.zip
Diffstat (limited to 'MCServer/Plugins/Core/console.lua')
-rw-r--r--MCServer/Plugins/Core/console.lua24
1 files changed, 0 insertions, 24 deletions
diff --git a/MCServer/Plugins/Core/console.lua b/MCServer/Plugins/Core/console.lua
index 44fdc83ff..669d7c9cb 100644
--- a/MCServer/Plugins/Core/console.lua
+++ b/MCServer/Plugins/Core/console.lua
@@ -336,27 +336,3 @@ function HandleConsoleUnload(Split)
Out = Out .. "Num loaded chunks after: " .. cRoot:Get():GetTotalChunkCount();
return true, Out;
end
-
-
--- Helper functions:
-
---- Returns the list of players banned by name, separated by ", "
-function BanListByName()
- local NumValues = BannedPlayersIni:NumValues("Banned");
- local Banned = {};
- local KeyID = BannedPlayersIni:FindKey("Banned");
- for i = 1, NumValues do
- local PlayerName = BannedPlayersIni:ValueName(KeyID, i - 1);
- if (BannedPlayersIni:GetValueB("Banned", PlayerName)) then
- -- Player listed AND banned
- table.insert(Banned, PlayerName);
- end
- end
- return table.concat(Banned, ", ");
-end
-
---- Returns the list of players banned by IP, separated by ", "
-function BanListByIPs()
- -- TODO: No IP ban implemented yet
- return "";
-end