Skip to content
This repository was archived by the owner on Jun 28, 2019. It is now read-only.
/ dhutils Public archive
forked from desht/dhutils

Collection of common utility classes for Bukkit plugins

Notifications You must be signed in to change notification settings

mcmonkey4eva/dhutils

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

353 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DHUtils

DHUtils is a collection of useful classes for Bukkit plugins.

Building

You will need Maven.

  1. Download DHUtils: "git clone https://github.com/desht/dhutils.git"

  2. Build DHUtils: "mvn install"

Using

DHUtils is intended to be used with Maven, and to be shaded into your plugin. To add it as a Maven dependency:

 <repositories>
   <repository>
      <id>hawkfalcon-repo</id>
      <name>Hawkfalcon Repository</name>
      <url>http://ci.hawkfalcon.com/plugin/repository/everything</url>
   </repository>
   <!-- ...other repositories... -->
 </repositories>

 <dependencies>
   <dependency>
        <groupId>me.desht</groupId>
        <artifactId>dhutils-lib</artifactId>
        <version>LATEST</version>
    </dependency>
    <!-- ...other dependencies... -->
 </dependencies>

To shade it into your plugin:

    <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-shade-plugin</artifactId>
        <version>1.5</version>
        <executions>
            <execution>
                <phase>package</phase>
                <goals>
                    <goal>shade</goal>
                </goals>
                <configuration>
                    <minimizeJar>true</minimizeJar>
                    <relocations>
                        <relocation>
                            <pattern>me.desht.dhutils</pattern>
                            <shadedPattern>YOUR.PLUGIN.PACKAGE.dhutils</shadedPattern>
                        </relocation>
                    </relocations>
                </configuration>
            </execution>
        </executions>
    </plugin>

License

DHUtils is licensed under the LGPL. You may use it freely in your own plugins, but you must make available the source to any modified versions of DHUtils that you distribute in your own plugins.

DHUtils also contains code from the following Bukkit developers:

About

Collection of common utility classes for Bukkit plugins

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 100.0%