Coder Social home page Coder Social logo

deathlocation's Introduction

Minecraft DeathLocation

I'm sure you already have had that problem. You died, lost your items, but you can't remember exactly where you died and your items will be lost. This plugin helps you with that. If you (or any other player on your server) dies, the location will be displayed in the chat / actionbar / title.

Features

  • Displays the location in the chat (It's also possible to append the location to the existing death message).
  • Displays the location in the ActionBar.
  • Displays the location as title.
  • The death message is customizable.
  • The message with the death location can be broadcast to all players on the server.

Info

  • View the source code, report bugs, request features and contribute here at GitHub.
  • Get support at Discord.
  • This plugin is also published at: SpigotMC and Modrinth

Download

Check out the releases

Install

  1. Download the plugin and put it on your Minecraft Server in the plugins folder.
  2. Restart your Server.
  3. Go into the config file and edit it as you want (plugins/DeathLocation/config.yml).
  4. Restart your Server again to apply the changes.
  5. Enjoy the plugin!

Compatibility

This plugin has been tested with Minecraft Version 1.20.1 on Spigot.
However, it should be compatible with almost all versions. Just put it on your server and see if it works.

deathlocation's People

Stargazers

 avatar

Watchers

 avatar

deathlocation's Issues

Plugin generating Exception on Purple 1.20.2

Plugin is generating exceptions 14 seconds after a player has died:

[17:56:00 INFO]: MinecraftPlayer was slain by ZombieYou died at -2086 -20 526
[17:56:14 WARN]: [DeathLocation] Task #6 for DeathLocation v1.2 generated an exception
java.util.ConcurrentModificationException: null
        at java.util.HashMap$HashIterator.nextNode(HashMap.java:1597) ~[?:?]
        at java.util.HashMap$KeyIterator.next(HashMap.java:1620) ~[?:?]
        at de.xite.deathloc.utils.Actionbar.lambda$startActionbarService$0(Actionbar.java:31) ~[DeathLocation-1.2.jar:?]
        at org.bukkit.craftbukkit.v1_20_R2.scheduler.CraftTask.run(CraftTask.java:101) ~[purpur-1.20.2.jar:git-Purpur-2094]
        at org.bukkit.craftbukkit.v1_20_R2.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:480) ~[purpur-1.20.2.jar:git-Purpur-2094]
        at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1497) ~[purpur-1.20.2.jar:git-Purpur-2094]
        at net.minecraft.server.dedicated.DedicatedServer.tickChildren(DedicatedServer.java:486) ~[purpur-1.20.2.jar:git-Purpur-2094]
        at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1406) ~[purpur-1.20.2.jar:git-Purpur-2094]
        at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1177) ~[purpur-1.20.2.jar:git-Purpur-2094]
        at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:320) ~[purpur-1.20.2.jar:git-Purpur-2094]
        at java.lang.Thread.run(Thread.java:840) ~[?:?]
[17:56:31 INFO]: MinecraftPlayer was slain by ZombieYou died at -2086 -20 526
[17:56:45 WARN]: [DeathLocation] Task #6 for DeathLocation v1.2 generated an exception
java.util.ConcurrentModificationException: null
        at java.util.HashMap$HashIterator.nextNode(HashMap.java:1597) ~[?:?]
        at java.util.HashMap$KeyIterator.next(HashMap.java:1620) ~[?:?]
        at de.xite.deathloc.utils.Actionbar.lambda$startActionbarService$0(Actionbar.java:31) ~[DeathLocation-1.2.jar:?]
        at org.bukkit.craftbukkit.v1_20_R2.scheduler.CraftTask.run(CraftTask.java:101) ~[purpur-1.20.2.jar:git-Purpur-2094]
        at org.bukkit.craftbukkit.v1_20_R2.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:480) ~[purpur-1.20.2.jar:git-Purpur-2094]
        at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1497) ~[purpur-1.20.2.jar:git-Purpur-2094]
        at net.minecraft.server.dedicated.DedicatedServer.tickChildren(DedicatedServer.java:486) ~[purpur-1.20.2.jar:git-Purpur-2094]
        at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1406) ~[purpur-1.20.2.jar:git-Purpur-2094]
        at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1177) ~[purpur-1.20.2.jar:git-Purpur-2094]
        at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:320) ~[purpur-1.20.2.jar:git-Purpur-2094]
        at java.lang.Thread.run(Thread.java:840) ~[?:?]

Current plugin config:

types:
  chat-message: true
  actionbar: true
  title: false

actionbar:
  timeout: 15 # Duration to show the actionbar for (in seconds)

allPlayers: true

message:
  append: true # The location will be appended to the existing death message (only chat). Warning: Every player will see the location, like the "allPlayers" option!
  message: '&4You died at &b%x %y %z' # Placeholders: %player, %x, %y, %z

update:
  notification: true

debug: false

Due to the matching timeout, I assume this is an issue with the actionbar. It did not show at all.

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.