Code Monkey home page Code Monkey logo

assemble's Introduction

Assemble

A high performance Scoreboard API for Spigot 1.7.x to 1.13 All credit goes to Joeleoli on the original plugin which you can find here: https://github.com/joeleoli/Frame

Essentially several production projects that I am apart of required very high performance components to support hundreds of concurrent players per instance. The original version of this plugin gave us this performance with the tradeoff of small features that we needed to further optimise it and give it a unique feel. So I decided to open-source my fork to build my portfolio.

Features

  • Non-flickering.
  • Supports up to 32 characters per line.
  • Extremely light weight.
  • Developer friendly. Setup your board in a few lines.
  • Custom Events for other plugins to easily hook into.
  • Several different styles (Viper, Kohi, Modern)
  • Changable timing intervals

Code Examples

@Override
public void onEnable() {
        // Start Instance.
	Assemble assemble = new Assemble(this, new ExampleAssembleAdapter());
	
	// Set Interval (Tip: 20 ticks = 1 second).
	assemble.setTicks(2);
	
	// Set Style (Tip: Viper Style starts at -1 and goes down).
	assemble.setAssembleStyle(AssembleStyle.VIPER);
}
public class ExampleAssembleAdapter implements AssembleAdapter {

	@Override
	public String getTitle(Player player) {
		return ChatColor.GOLD.toString() + "Assemble Board Example";
	}

	@Override
	public List<String> getLines(Player player) {
		final List<String> toReturn = new ArrayList<>();

		toReturn.add("&a&lThis is a line!");

		return toReturn;
	}

}
public class AssembleSampleListeners implements Listener {

    @EventHandler
    public void onBoardCreate(AssembleBoardCreateEvent event) {
        // Do what you want with the player object.
    }
}

Contact

assemble's People

Contributors

scifi9902 avatar supertassu avatar thatkawaiisam 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.