Skip to content

Files

Latest commit

 

History

History
22 lines (14 loc) · 684 Bytes

README.md

File metadata and controls

22 lines (14 loc) · 684 Bytes

Defer Server Command

☕ fund my caffeine addiction ☕

A small utility to defer execution of commands until after all configs have been executed. Created in response to nosoop/SM-YetAnotherMapConfigPlugin#1.

Example

In a configuration file:

defer echo "Hello from defer!";
echo "Hello from config!";

"Hello from config!" will be printed out as the configuration file is being executed, and "Hello from defer!" will be printed after all configuration files have been buffered.

defer commands are processed in a first-in-first-out queue.