Launcher/LaunchServer/src/main/java/pro/gravit/launchserver/Reconfigurable.java

24 lines
504 B
Java
Raw Normal View History

package pro.gravit.launchserver;
2019-08-31 15:44:43 +03:00
import pro.gravit.utils.command.Command;
2021-03-26 17:56:17 +03:00
import java.util.HashMap;
2019-10-19 19:46:04 +03:00
import java.util.Map;
/**
* Allows calling commands using the config command
*/
public interface Reconfigurable {
/**
* Gets a list of commands available for this object.
2019-10-19 19:46:04 +03:00
*
* @return Key - Command Name
* Value is a command object
*/
Map<String, Command> getCommands();
2021-03-26 17:56:17 +03:00
default Map<String, Command> defaultCommandsMap() {
return new HashMap<>();
}
}