2018-08-02 01:05:04 +02:00
|
|
|
# WorldGuardWrapper
|
2018-08-02 01:21:36 +02:00
|
|
|
[![Build Status](https://ci.codemc.org/buildStatus/icon?job=CodeMC/WorldEditWrapper)](https://ci.codemc.org/view/Author/job/CodeMC/job/WorldEditWrapper/)
|
2018-08-20 01:32:05 +02:00
|
|
|
![Maven](https://img.shields.io/maven-metadata/v/https/repo.codemc.org/repository/maven-public/org/codemc/worldguardwrapper/worldguardwrapper/maven-metadata.xml.svg)
|
2018-08-20 01:26:53 +02:00
|
|
|
[![Javadocs](https://img.shields.io/badge/docs-javadocs-brightgreen.svg)](https://ci.codemc.org/view/Author/job/CodeMC/job/WorldEditWrapper/javadoc/)
|
2018-08-20 04:57:13 +02:00
|
|
|
[![Discord](https://img.shields.io/badge/chat-discord-blue.svg)](https://discord.gg/cnKwdsg)
|
2018-08-02 01:21:36 +02:00
|
|
|
|
2018-08-02 01:05:04 +02:00
|
|
|
A wrapper for the WorldGuard API that allows plugins to support both v6 and v7 APIs.
|
2018-08-20 00:50:15 +02:00
|
|
|
|
|
|
|
## Maven dependency
|
|
|
|
How to include WorldEditWrapper into your maven project:
|
|
|
|
|
|
|
|
```xml
|
|
|
|
<repositories>
|
|
|
|
<repository>
|
|
|
|
<id>codemc-repo</id>
|
|
|
|
<url>https://repo.codemc.org/repository/maven-public/</url>
|
|
|
|
</repository>
|
|
|
|
</repositories>
|
|
|
|
|
|
|
|
<dependencies>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.codemc.worldguardwrapper</groupId>
|
|
|
|
<artifactId>worldguardwrapper</artifactId>
|
2019-05-28 20:46:54 +02:00
|
|
|
<version>1.1.6-SNAPSHOT</version>
|
2018-08-20 00:50:15 +02:00
|
|
|
</dependency>
|
|
|
|
</dependencies>
|
|
|
|
```
|
|
|
|
|
|
|
|
Remember to include/relocate the library into your final jar, example:
|
|
|
|
|
|
|
|
```xml
|
|
|
|
<build>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-shade-plugin</artifactId>
|
2018-11-27 23:26:36 +01:00
|
|
|
<version>3.2.1</version>
|
2018-08-20 00:50:15 +02:00
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<phase>package</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>shade</goal>
|
|
|
|
</goals>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
<configuration>
|
|
|
|
<relocations>
|
|
|
|
<relocation>
|
|
|
|
<pattern>org.codemc.worldguardwrapper</pattern>
|
|
|
|
<shadedPattern>YOUR.PLUGIN.PACKAGE.libs.worldguardwrapper</shadedPattern>
|
|
|
|
</relocation>
|
|
|
|
</relocations>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
</build>
|
|
|
|
```
|