Git Product home page Git Product logo

hologramapi's Introduction

License Version Version jitpack jitpack

Features

  • Text animations
  • Minimessage support
  • Packet based
  • Per player holograms
  • ItemsAdder emoji support

Installation

  • Download packet events https://www.spigotmc.org/resources/80279/
  • Download HologramAPI-[version].jar file from the latest release
  • Upload the HologramAPI-[version].jar and packet events file on your server (yourserver/plugins folder)
  • Add the plugin as a dependency to your plugin and use it

Gradle installation

repositories {
  maven { url 'https://jitpack.io' }
}

dependencies {
  compileOnly 'com.github.max1mde:HologramAPI:1.2.5'
}

Maven installation

<repository>
  <id>jitpack.io</id>
  <url>https://jitpack.io</url>
</repository>

<dependency>
  <groupId>com.github.max1mde</groupId>
  <artifactId>HologramAPI</artifactId>
  <version>1.2.5</version>
  <scope>provided</scope>
</dependency>

Add this to your plugin plugin.yml

depend:
  - HologramAPI

Wiki

Code examples & more https://github.com/max1mde/HologramAPI/wiki/Getting-started

Example/Showcase Plugin

https://github.com/max1mde/ExampleHologramPlugin

Contributions to this repo or the example plugin are welcome!

hologramapi's People

Contributors

max1mde avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

hologramapi's Issues

HologramManager is null & line width is 0

``@EventHandler
public void onPlayerJoin(PlayerJoinEvent event) {
Player player = event.getPlayer();

    //Para que no salga cuando se une un jugador
    event.setJoinMessage("");

    TextHologram hologram = new TextHologram(player.getUniqueId().toString())
            .setText(ChatColor.AQUA + "Hello world!")
            .addLine(ChatColor.RED + "Second line")
            .addLine("Third line")
            .addLine("Another line...") // You can add as many lines as you want
            .setBillboard(Display.Billboard.CENTER)
            .setTextShadow(true)
            .setBackgroundColor(Color.fromARGB(0/*Opacity*/, 255/*Red*/, 236/*Green*/, 222/*Blue*/)) // You can use the https://htmlcolorcodes.com/color-picker/ to get the RGB color you want!
            .spawn(player.getLocation().add(0, 2, 0));

    hologramManager = HologramAPI.getHologramManager();
}

//Jugador se va del servidor
@EventHandler
public void onPlayerLeave(PlayerQuitEvent event) {
    Player player = event.getPlayer();

    hologramManager.removeAll(player.getUniqueId().toString());
}
``

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.