Module: command_meta.when_online
Overview
This module provides the /when-online <player> <cmd>
command.
To execute a specified command exactly once
when the target player is online
:
-
If the target player is
online
now, the command will be executedat once
. -
If the target player is
offline
now, the command will be executedwhen the player online
.
Besides, you use /when-online list
to manage submitted commands
.
For example:
-
/when-online Steve give %player:name% minecraft:apple 3
-
/when-online Alex delay 8 say Hi %player:name%
Configurations
The following JSON content is provided for reference only. It must NOT be copied directly into the configuration directory, as it does not represent valid JSON syntax.
- File Name:
when-online-data.json
- File Content:
Click to see the default
content...
{
"tickets": []
}
Commands
-
Command Syntax:
/when-online
-
Document: An alias command for
/when-online list
command. -
Can be executed by console:
false
-
Required Level Permission:
4
-
Required String Permission:
null
-
Command Syntax:
/when-online list
-
Document: List all submitted
when-online
tickets. -
Can be executed by console:
false
-
Required Level Permission:
4
-
Required String Permission:
null
-
Command Syntax:
/when-online <OfflinePlayerName targetPlayer> <GreedyString command>
-
Document: Execute the specified command
exactly once
, when the target playeris online
. -
Can be executed by console:
true
-
Required Level Permission:
4
-
Required String Permission:
null