Code Monkey home page Code Monkey logo

jchatter's Introduction

JChatter - For sending JSON Chat messages

JChatter is a custom implementation of various other Libs by @dorkrepublic @Spoonyloony @bobacadodl, many thanks for doing some of the ground work.

Recently added the ability to passing in color codes and styles directly to messages and tooltips as well as using unlimited placeholders. The plugin will take care of the rest allowing for very rapid development.

The difference being this version does not use any reflection/NMS code or Packet manipulation to create OR send the messages.

Also included is the ability to add unicode symbols, using a enum call JSymbols, this works in the same way as the ChatColor class. Currently this is still a WIP and is liable to change very shortly so please don't rely on it for production code, the documentation will display what each of the current symbols looks like provided you have an up to date browser.

This plugin uses a fluentAPI to chain the creation of messages quickly. The messages are then sent using the Console and the TellRaw command.

Included is a simple method to send to a single player or send to all players.

There is also an abstract save and load method which can be used to save and load messages that are used often. This makes it more efficient due to not having to build the JSON message each time.

Maven Dependency

    <dependency>
        <groupId>org.codemine</groupId>
        <artifactId>jchat</artifactId>
        <version>1.0.4-SNAPSHOT</version>
    </dependency>

Maven Repo

    <repository>
        <id>relicum-snapshot</id>
        <url>http://repository-relicum.forge.cloudbees.com/snapshot/</url>
        <releases>
            <enabled>false</enabled>
        </releases>
        <snapshots>
            <enabled>true</enabled>
        </snapshots>
    </repository>

JavaDocs

JAVA DOCS

Jenkins

JENKINS CI

Pull requests gladly accepted, as well as feature requests, though a can't promise to impliment all requests

jchatter's People

Contributors

relicum avatar

Watchers

 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.