A wrapper for the WorldGuard API that allows plugins to support both v6 and v7 APIs.
Go to file
Eric 4fc6f99686 Set event priority to low
Events should be handled before WorldGuard does (with normal priority),
so they can be allowed without WG sending a message to the player.
2018-11-04 14:04:01 +01:00
api Whoops, also fix WG7 implementation due to changes in the API 2018-11-04 12:40:44 +01:00
implementation Set event priority to low 2018-11-04 14:04:01 +01:00
library Whoops, also fix WG7 implementation due to changes in the API 2018-11-04 12:40:44 +01:00
.gitattributes Initial commit 2018-08-02 01:04:23 +02:00
.gitignore Update .gitignore 2018-08-02 13:24:24 +02:00
LICENSE Initial commit 2018-08-02 01:04:23 +02:00
pom.xml Bump version 2018-11-04 12:33:10 +01:00
README.md Update README.md 2018-11-03 23:15:56 +01:00

WorldGuardWrapper

Build Status Maven Javadocs Discord

A wrapper for the WorldGuard API that allows plugins to support both v6 and v7 APIs.

Maven dependency

How to include WorldEditWrapper into your maven project:

    <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>
            <version>1.0.2-SNAPSHOT</version>
        </dependency>
    </dependencies>

Remember to include/relocate the library into your final jar, example:

    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-shade-plugin</artifactId>
                <version>3.2.0</version>
                <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>