Giter Club home page Giter Club logo

syncdeathmessages's Introduction

SyncDeathMessages - Cross-Server Death Announcements

SyncDeathMessages is a Minecraft plugin that enables cross-server death message announcements using Redis. It is designed to have zero performance impact on the server, ensuring a seamless experience for players.

Features

  • ๐ŸŒ Cross-Server Announcements: Death messages are synchronized across multiple servers using Redis, providing a consistent experience for players in a networked environment.
  • โšก Fully Asynchronous: The plugin operates asynchronously, ensuring that server performance is not impacted, even during high player activity.
  • ๐ŸŽจ Customizable Messages: Death messages can be customized to suit your server's theme and language.
  • ๐Ÿ› ๏ธ Hover Event Support: Weapon and mob names in death messages can display additional information when hovered over with the mouse pointer.
  • ๐ŸŒ Client Locale Item Names: Item type names in death messages automatically adapt to the client's locale, eliminating the need for manual translation.

Installation

  1. Ensure you have a Redis server set up and accessible by your Minecraft servers.
  2. Download the SyncDeathMessages plugin JAR file.
  3. Place the JAR file in the plugins folder of your Minecraft server.
  4. Restart the server to generate the default configuration files.
  5. Restart the server again for the changes to take effect.
  6. If you want to disable the original local death messages, use /gamerule showDeathMessages false in your server console.

Usage

Once installed and configured, the plugin works automatically. When a player dies, their death message is broadcasted across all servers connected to the same Redis channel.

Command

  • /sdmreload - Reloads the plugin's configuration file. (Permission: syncdeathmessages.admin)

Configuration

The plugin's configuration file allows you to set up the Redis connection details, customize death messages, and more.

You can also visit here: https://github.com/kit8379/SyncDeathMessages/tree/master/languages to find your prefered languages and replace it with your existing messages section.

The default config.yml messages also contain some emoji. If you want to use them, you need to have a plugin that supports emoji. You can use install our resource pack to see the emoji in the chat. You can download it from here: https://github.com/kit8379/SyncDeathMessages/tree/master/resourcepack

Here's an example of the config.yml file:

# It is also called a cluster id sometimes.
# If you have different set of servers and you want to have different death message channel for each server,
# you can set the server-group to the server name.
server-group: default

# Redis configuration
redis:
  host: localhost
  port: 6379
  password: ""

# Death Messages
messages:
  PLAYER_KILL:
    default:
      - "&c{player} &e was killed by &a{killer}&r ๐Ÿ˜ต"
    with_weapon:
      - "&c{player} &e was killed by &a{killer} &e using &r{weapon}&r ๐Ÿ”ช"
  ENTITY_ATTACK:
    default:
      - "&c{player} &e was killed by &a{mob}&r ๐Ÿ’€"
  PROJECTILE:
    default:
      - "&c{player} &e was shot to death by a projectile&r ๐Ÿน"
  SUFFOCATION:
    default:
      - "&c{player} &e suffocated to death&r ๐Ÿ˜ต"
  FALL:
    default:
      - "&c{player} &e fell to death&r ๐Ÿ•ณ๏ธ"
  FIRE:
    default:
      - "&c{player} &e was burnt to death&r ๐Ÿ”ฅ"
  FIRE_TICK:
    default:
      - "&c{player} &e was burnt to death&r ๐Ÿ”ฅ"
  MELTING:
    default:
      - "&c{player} &e melted&r ๐ŸŒž"
  LAVA:
    default:
      - "&c{player} &e was burnt by lava&r ๐ŸŒ‹"
  DROWNING:
    default:
      - "&c{player} &e drowned&r ๐ŸŒŠ"
  BLOCK_EXPLOSION:
    default:
      - "&c{player} &e was blown up by an explosion&r ๐Ÿ’ฃ"
  ENTITY_EXPLOSION:
    default:
      - "&c{player} &e was blown up by an explosion&r ๐Ÿ’ฃ"
  VOID:
    default:
      - "&c{player} &e fell out of the world&r ๐Ÿ•ณ๏ธ"
  LIGHTNING:
    default:
      - "&c{player} &e was struck by lightning&r โšก"
  SUICIDE:
    default:
      - "&c{player} &e committed suicide&r ๐Ÿ˜”"
  STARVATION:
    default:
      - "&c{player} &e starved to death&r ๐Ÿฝ๏ธ"
  POISON:
    default:
      - "&c{player} &e was poisoned to death&r โ˜ ๏ธ"
  MAGIC:
    default:
      - "&c{player} &e was killed by magic&r โœจ"
  WITHER:
    default:
      - "&c{player} &e withered away&r ๐Ÿ’€"
  FALLING_BLOCK:
    default:
      - "&c{player} &e was squashed by a falling block&r ๐Ÿงฑ"
  THORNS:
    default:
      - "&c{player} &e was killed by thorns&r ๐ŸŒต"
  UNKNOWN:
    default:
      - "&c{player} &e died for unknown reasons&r โ“"

Contributing:

๐ŸŒŸ Contributions are welcome! Whether you're a developer, a writer, or just a Minecraft enthusiast, you can help by:

  • Submitting pull requests
  • Reporting bugs and suggesting features
  • Helping with documentation and the wiki
  • Sharing NewSky with others

Support:

๐Ÿ‘ฎโ€โ™‚๏ธ You can join our Discord to receive community support! Discord: https://discord.gg/UgHrFpQeEP

syncdeathmessages's People

Contributors

kit8379 avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

dagrond

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.