summaryrefslogtreecommitdiffstats
path: root/Plugins/Core/unban.lua
diff options
context:
space:
mode:
authorfaketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-08-20 14:20:20 +0200
committerfaketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-08-20 14:20:20 +0200
commit12906c026d414c752d3c0ba9481f425b24b29c67 (patch)
treed64298334a68275e0d7c22c9dfb0e82c95654f83 /Plugins/Core/unban.lua
parentWindow, Chest, Furnace and Pawn are not using cPackets at all (diff)
downloadcuberite-12906c026d414c752d3c0ba9481f425b24b29c67.tar
cuberite-12906c026d414c752d3c0ba9481f425b24b29c67.tar.gz
cuberite-12906c026d414c752d3c0ba9481f425b24b29c67.tar.bz2
cuberite-12906c026d414c752d3c0ba9481f425b24b29c67.tar.lz
cuberite-12906c026d414c752d3c0ba9481f425b24b29c67.tar.xz
cuberite-12906c026d414c752d3c0ba9481f425b24b29c67.tar.zst
cuberite-12906c026d414c752d3c0ba9481f425b24b29c67.zip
Diffstat (limited to 'Plugins/Core/unban.lua')
-rw-r--r--Plugins/Core/unban.lua20
1 files changed, 0 insertions, 20 deletions
diff --git a/Plugins/Core/unban.lua b/Plugins/Core/unban.lua
deleted file mode 100644
index 9defbe323..000000000
--- a/Plugins/Core/unban.lua
+++ /dev/null
@@ -1,20 +0,0 @@
-function HandleUnbanCommand( Split, Player )
- if( #Split < 2 ) then
- Player:SendMessage( cChatColor.Green .. "Usage: /unban [Player]" )
- return true
- end
-
- if( BannedPlayersIni:GetValueB("Banned", Split[2], false) == false ) then
- Player:SendMessage( cChatColor.Green .. Split[2] .. " is not banned!" )
- return true
- end
-
- BannedPlayersIni:SetValueB("Banned", Split[2], false, false)
- BannedPlayersIni:WriteFile()
-
- local Server = cRoot:Get():GetServer()
- LOGINFO( Player:GetName() .. " is unbanning " .. Split[2] )
- Server:SendMessage( "Unbanning " .. Split[2] )
-
- return true
-end \ No newline at end of file