WoW:API ForceLogout: Difference between revisions

not actually protected
(added to protected category)
(not actually protected)
Line 1: Line 1:
{{protectedapi|?|}}
{{wowapi}}__NOTOC__
{{wowapi}}__NOTOC__
Instantly logs you out, bypassing the usual 20 seconds countdown
Equivalent to {{api|ForceQuit}}: logs the player out immediately, even if outside a resting zone.
  ForceLogout()
  ForceLogout()


===Takes===
== Notes ==
: Nothing
This function does not work for ordinary players; instead, a message saying "You do not have permission to perform that action" is returned from the server.
 
===Returns===
: Nothing
 
===Details===
: This function will only work for GMs to prevent normal players from escaping battle by logging out.