Skip to content

Defer execution of the given command until all configs are executed.

License

Notifications You must be signed in to change notification settings

nosoop/SM-ServerCmdDefer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Defer execution of the given command until all configs are executed.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published