aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--spec/afk_spec.lua8
1 files changed, 7 insertions, 1 deletions
diff --git a/spec/afk_spec.lua b/spec/afk_spec.lua
index fb63339..c8b0aaa 100644
--- a/spec/afk_spec.lua
+++ b/spec/afk_spec.lua
@@ -59,5 +59,11 @@ describe("Afk works", function()
local newplayer2 = Player("newplayer4")
mineunit:execute_on_joinplayer(admin)
assert.is_false(newplayer2._online)
- end)
+ end)
+ it("Can force moderators to be marked afk", function ()
+ local moderator = Player("moderator", {kick = true, ban = true})
+ assert.is_true(xban.present["admin"])
+ moderator:send_chat_message('/force_afk admin')
+ assert.is_not_true(xban.present["admin"])
+ end)
end)