GithubHelp home page GithubHelp logo

dhutils's Introduction

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:

  • mbaxter - Maven modularisation and NMS library abstraction (see https://github.com/mbax/AbstractionExamplePlugin)

  • codenameB - FireworkEffectPlayer class

  • jascotty2 - Str class

  • sk89q - StringUtils, BlockData, BlockID, BlockType & ClothColor classes

dhutils's People

Contributors

desht avatar doctordark avatar eymaddis avatar mcmonkey4eva avatar morphan1 avatar rmichela avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.