/setidletimeout
< Commands
This feature is exclusive to Java Edition.
/setidletimeout| Permission level required |
3 |
|---|---|
| Restrictions |
Dedicated server |
{
"title": "<code>/setidletimeout</code>",
"rows": [
{
"field": "3",
"label": "(link to Permission level article, displayed as Permission level<br>required)"
},
{
"field": "Dedicated server<br>",
"label": "(link to Commands#Restrictions article, displayed as Restrictions)"
}
],
"invimages": [],
"images": []
}
Sets the time before idle players are kicked from the server. Any players idle for <minutes> are kicked.
Syntax
setidletimeout <minutes>
Argument
<minutes>: integer
- Specifies the idle kick timer.
- If 0, idletimeout is disabled.
- Must be a [Int]32-bit integer number (from -2147483648 (-231) to 2147483647 (231-1) ). And it must be between 0 and 2147483647 (inclusive).
Result
| Command | Trigger | Java Edition |
|---|---|---|
| Any | The command is incomplete, or any argument is not specified correctly. | Unparseable |
| Otherwise | Successful |
Output
| Command | Edition | Situation | Success Count | /execute store success ... | /execute store result ... |
|---|---|---|---|---|---|
| Any | Java Edition | On success | N/A | 1 | the specified <minutes> |
History
| Java Edition | |||||||
|---|---|---|---|---|---|---|---|
| 1.7.2 | 13w38a | Added /setidletimeout. | |||||