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
onlinenow, the command will be executedat once. -
If the target player is
offlinenow, 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 listcommand. -
Can be executed by console:
false -
Required Level Permission:
4 -
Required String Permission:
null
-
Command Syntax:
/when-online <OfflinePlayerName targetPlayer> <GreedyCommandString 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
-
Command Syntax:
/when-online list -
Document: List all submitted
when-onlinetickets. -
Can be executed by console:
false -
Required Level Permission:
4 -
Required String Permission:
null