You can make your own feature in kotlin language :
- Plugins
- Commands
By default, in app, you can :
- Load / unload addons
- Use custom event system (looks like Spigot event system,
EventRegister.getInstance()
) - Create custom addons directory (
PluginLoader.createInstance<T>()
orPluginLoader.getInstance<T>()
) - Get / change command error message (
App.commandUnknownMessage
) - Get / change global working directory (
App.workingDir
)
EventRegister
and PluginLoader
have been migrated into the ValLib library.
Basically : java -jar <jar-file> [working directory]
You can specify a custom working directory if you don't want to work in current jar directory.
This value can be changed when terminal is running.
{
"commandline": "java -jar EmptyTerminal-<version>.jar [working-directory]",
"elevate": true, // optional
"guid": "{7b33327f-3e51-423a-8478-91203864abf8}",
"hidden": false,
"name": "EmptyTerminal",
"startingDirectory": "<define jar directory else you can't load addons>"
}
This is an extract of the settings.json of WindowsTerminal located at :
%LOCALAPPDATA%/Packages/Microsoft.WindowsTerminal_8wekyb3d8bbwe/LocalState
or
%LOCALAPPDATA%/Packages/Microsoft.WindowsTerminalPreview_8wekyb3d8bbwe/LocalState
This directory path can be different if you have another version.
You can change the default working directory function to match with your OS.