Giter Site home page Giter Site logo

autils's Introduction

Deprecated

  • This codebase is no longer an accurate representation of my code. The server it is for is dead and the code has been deprecated and open-sourced.
  • It is highly advisable that you do not use this code anywhere.

AUtils

Powerful utilities for plugin makers who aren't defined by the type of server

Features

  • AFeatures are interfaces and therefore support both bungee/spigot unless otherwise specified
  • ADatakore - powerful HikariCP wrapper using CompletableFutures
  • AConfig - powerful abstract configuration powered by annotations
  • AMath and ALocations let developers quickly handle math related issues
  • ALogger for simple logging
  • AItemBuilder and Serializer for handling items spigot-side
  • APlugins wrapping bungee and spigot plugins respectively
  • ABinder to handle binding of dependencies to their respective instances and implementations
  • AChat for chat related things (Actionbars, Titles, and Colorstrings)
  • Leaf Framework, a ridiculously powerful and simple command framework that automatically handles tabcomplete, arguments, senders, bungee/spigot support, variables, subcommands, all without touching a single string array. (Documentation coming soon!)
  • Inappropriate comments regarding the cheese man and other misuse of java naming conventions and debugging

Dependencies

  • Google GUICE
  • A working brain

How to use

First, make sure your plugin extends either SpigotPlugin or BungeePlugin, NOT Plugin or JavaPlugin Next, you need a class that extends ABinder. Finally, create an injector via ABinder#createInjector and add your plugin instance to it! ( call) If you need to bind more classes, override configureSpecific in your binder.

class extends SpigotPlugin {
    @Override
    onEnable() {
        Injector injector = new BinderTest(this).createInjector();
        injector.injectMembers(this);
    }
}

Examples

  • For examples please check the package com.elytraforce.aExamples for a default plugin showcasing how to use dependency injection with aUtils, as well as showcasing some of the features that aUtils has to offer.

https://github.com/Auriium/AUtils/wiki

Maven integration

C'mon, you should know what to do with these (Add dependency to dependencyManagement, repository to repositories)

    <dependency>
        <groupId>com.elytraforce</groupId>
        <artifactId>aUtils</artifactId>
        <version>2.1-SNAPSHOT</version>
    </dependency>

    <repository>
        <id>repsy</id>
        <url>https://repo.repsy.io/mvn/elytraforce/default</url>
    </repository>

autils's People

Contributors

auriium 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.