Difference between revisions of "serverCommandAvailable"

From Bohemia Interactive Community
Jump to navigation Jump to search
(see also)
(full list of all commands and availability)
Line 7: Line 7:
 
____________________________________________________________________________________________
 
____________________________________________________________________________________________
  
| Returns [[true]] if the [[serverCommand]] can be performed on the machine, [[false]] if not. serverCommand can be executed only from [[User Interface Event Handlers]], so calling this command elsewhere may return true even if serverCommand would have no effect. |= Description
+
| Returns [[true]] if the [[serverCommand]] is available on current machine, [[false]] if not. Here is the general table of availability of server commands:
 +
<br><br>
 +
* '''Available to anyone'''
 +
<blockquote><tt>#login</tt>, <tt>#userlist</tt>, <tt> #beclient</tt>, <tt> #vote</tt></blockquote>
 +
* '''Available to any (voted in or logged in) [[admin]] or [[isServer|server]]'''
 +
<blockquote><tt>#kick</tt>, <tt>#debug</tt></blockquote>
 +
* '''Available to logged in [[admin]] or [[isServer|server]]'''
 +
<blockquote><tt>#lock</tt>, <tt>#unlock</tt>, <tt>#maxping</tt>, <tt>#maxdesync</tt>, <tt>#maxpacketloss</tt></blockquote>
 +
* '''Available to any (voted in or logged in) [[admin]]'''
 +
<blockquote><tt>#logout</tt>, <tt>#restart</tt>, <tt>#mission</tt>, <tt>#missions</tt>, <tt>#reassign</tt>, <tt>#monitor</tt>, <tt>#init</tt></blockquote>
 +
* '''Available to logged in [[admin]]'''
 +
<blockquote><tt>#shutdown</tt>, <tt>#restartserver</tt>, <tt>#exec</tt>, <tt>#beserver</tt>, <tt>#monitords</tt>, <tt>#logentities</tt>, <tt>#exportjipqueue</tt></blockquote>
 +
* '''Available to logged in [[admin]] on certain game builds'''
 +
<blockquote><tt>#captureframe</tt>, <tt>#enabletest</tt>, <tt>#disabletest</tt></blockquote>
 +
To check if server command could be executed in current environment use [[serverCommandExecutable]] |= Description
 
____________________________________________________________________________________________
 
____________________________________________________________________________________________
  

Revision as of 20:28, 18 April 2017

Template:Command

Notes

Bottom Section