Giter Club home page Giter Club logo

damage-indicator's Introduction

Damage Indicator

This is a plugin for Minecraft Bukkit/Spigot/Paper servers. It adds indicators that show how much damage you dealt to an entity.

Installing

  1. Download the newest release from the releases page

  2. Put the downloaded jar in your plugins folder

  3. Enjoy

Configuration

You can find the config file at \plugins\DamageIndicator\config.yml. By default, it should look like this:

## Should the indicator be shown to everyone(true) or just the player who dealt the damage(false)
ShowToDamagerOnly: true

## The format for showing the damage
# Read about decimal formats to learn how to configure the indicator format.
# https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/text/DecimalFormat.html

# Hex colours are supported using the legacy format (e.g. &x&F&F&F&F&F&F to represent white), but may also be defined
# using a smaller version unique to the damage indicator plugin (e.g. &#FFFFFF to represent white). Note that the usage
# of 0's in the hex code would mess with the decimal formatting, hence they should be escaped using single quotes, such
# as this:
# IndicatorFormat: "'&#FFC300'-0.#&4❤"

# using Hex colours is optional. The legacy minecraft colour codes are still supported.
IndicatorFormat: "&7-0.#&4❤"
CriticalIndicatorFormat: "&c-0.#&4❤"
PoisonIndicatorFormat: "&7-0.#'&#5e8a24'❤"
BurnIndicatorFormat: "&7-0.#'&#f59e42'❤"

## The decimal format's locale (BCP47)
# This determines the locale used for formatting. The formatter uses this e.g. when deciding between a dot ('0.0')
# or a comma ('0,0') for decimal numbers.
FormatLocale: "en-US"

## For how long an indicator should be shown. (Use seconds)
IndicatorTime: 1.5

Commands and permissions

/damageindicator reload reloads the config. requires Damageindicator.admin

Building

  1. Clone this repo
  2. open a terminal and type gradlew build
  3. The jar file is at /build/libs/DamageIndicator.jar

License

This repo is licensed under the MIT LICENSE

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.