mirror of
https://github.com/GravitLauncher/Launcher
synced 2025-01-10 09:39:53 +03:00
23 lines
504 B
Java
23 lines
504 B
Java
package pro.gravit.launchserver;
|
|
|
|
import pro.gravit.utils.command.Command;
|
|
|
|
import java.util.HashMap;
|
|
import java.util.Map;
|
|
|
|
/**
|
|
* Allows calling commands using the config command
|
|
*/
|
|
public interface Reconfigurable {
|
|
/**
|
|
* Gets a list of commands available for this object.
|
|
*
|
|
* @return Key - Command Name
|
|
* Value is a command object
|
|
*/
|
|
Map<String, Command> getCommands();
|
|
|
|
default Map<String, Command> defaultCommandsMap() {
|
|
return new HashMap<>();
|
|
}
|
|
}
|