Skip to content
WebMCDevelopmentPublic

About

No description or website provided.

Topics

Resources

Stars

3 stars

Watchers

0 watching

Forks

Latest commit

 

History

133 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


Developers

Project Config

Maven

<properties>
  <!-- Replace with the latest WLIB version -->
  <wlib.version>{version}</wlib.version>
</properties>

<repositories>
  <repository>
    <id>webmc</id>
    <url>https://codeberg.org/api/packages/WebMCDevelopment/maven/</url>
  </repository>
</repositories>

<dependencies>
  <dependency>
    <groupId>xyz.webmc.wlib</groupId>
    <artifactId>wlib-plugin</artifactId>
    <version>${wlib.version}</version>
    <scope>provided</scope>
  </dependency>

  <dependency>
    <groupId>xyz.webmc.wlib</groupId>
    <artifactId>wlib-devkit</artifactId>
    <version>${wlib.version}</version>
    <scope>provided</scope>
  </dependency>
</dependencies>

<build>
  <plugins>
    <plugin>
      <groupId>org.apache.maven.plugins</groupId>
      <artifactId>maven-compiler-plugin</artifactId>
      <configuration>
        <annotationProcessorPaths>
          <path>
            <groupId>xyz.webmc.wlib</groupId>
            <artifactId>wlib-devkit</artifactId>
            <version>${wlib.version}</version>
          </path>
        </annotationProcessorPaths>
      </configuration>
    </plugin>
  </plugins>
</build>

Gradle

// Replace with the latest WLIB version
val WLIB_VERSION = "{version}"

repositories {
  maven("https://codeberg.org/api/packages/WebMCDevelopment/maven/")
}

dependencies {
  compileOnly("xyz.webmc.wlib:wlib-plugin:$WLIB_VERSION")
  compileOnly("xyz.webmc.wlib:wlib-devkit:$WLIB_VERSION")
  annotationProcessor("xyz.webmc.wlib:wlib-devkit:$WLIB_VERSION")
}

Example Plugin

package com.example;

import xyz.webmc.wlib.api.plugin.WPlugin;
import xyz.webmc.wlib.devkit.annotation.PluginMeta;

@PluginMeta(
  name = "ExamplePlugin",
  version = "1.0-SNAPSHOT",
  foliaSupported = true
)
public final class ExamplePlugin extends WPlugin {
  @Override
  protected void load() {}

  @Override
  protected void enable() {}

  @Override
  protected void disable() {}
}

About

No description or website provided.

Topics

Resources

Stars

3 stars

Watchers

0 watching

Forks

Packages

Contributors

Languages