- package ${MAIN_CLASS.packageName};
-
- import com.google.inject.Inject
- import com.velocitypowered.api.event.Subscribe
- import com.velocitypowered.api.event.proxy.ProxyInitializeEvent
- import com.velocitypowered.api.plugin.Plugin
- import org.slf4j.Logger
-
- @Plugin(
- id = "${PLUGIN_ID}",
- name = "${PLUGIN_NAME}",
- #if ($BUILD_SYSTEM == 'Gradle')
- version = BuildConstants.VERSION
- #elseif ($BUILD_SYSTEM == 'Maven')
- version = "${BUILD_COORDS.version}"
- #end
- #if ($DESCRIPTION)
- ,description = "${DESCRIPTION}"
- #end
- #if ($WEBSITE)
- ,url = "${WEBSITE}"
- #end
- #if ($AUTHORS)
- ,authors = [${AUTHORS.toString('", "', '"', '"')}]
- #end
- )
- class ${MAIN_CLASS.className} @Inject constructor(val logger: Logger) {
-
- @Subscribe
- fun onProxyInitialization(event: ProxyInitializeEvent) {
- }
- }
- package ${MAIN_CLASS.packageName};
-
- import com.google.inject.Inject
- import com.velocitypowered.api.event.Subscribe
- import com.velocitypowered.api.event.proxy.ProxyInitializeEvent
- #if ($USE_ANNOTATION_PROCESSOR)
- import com.velocitypowered.api.plugin.Plugin
- #end
- import org.slf4j.Logger
-
- #if ($USE_ANNOTATION_PROCESSOR)
- @Plugin(
- id = "${PLUGIN_ID}",
- name = "${PLUGIN_NAME}",
- #if ($USE_BUILD_CONSTANTS_TEMPLATING)
- version = BuildConstants.VERSION
- #else
- version = "${BUILD_COORDS.version}"
- #end
- #if ($DESCRIPTION)
- ,description = "${DESCRIPTION}"
- #end
- #if ($WEBSITE)
- ,url = "${WEBSITE}"
- #end
- #if ($AUTHORS)
- ,authors = [${AUTHORS.toString('", "', '"', '"')}]
- #end
- )
- #end
- class ${MAIN_CLASS.className} @Inject constructor(val logger: Logger) {
-
- @Subscribe
- fun onProxyInitialization(event: ProxyInitializeEvent) {
- }
- }