Skip to content
This repository has been archived by the owner on Dec 7, 2022. It is now read-only.

Localize death messages #844

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Pablete1234
Copy link
Collaborator

[NOTE]
I'll finnish this when #892 is merged, because #892 may have to change how all of this works

fixes #833
Has some bugs atm, needs testing

Bugs:
/kill shows DEATH_VOID instead of DEATH_SUICIDE

Death causes that show default message (i think this is because killer is not null, it's a entity that's not a player):

/summon PrimedTnt (or dispenser) (DEATH_EXPLOSION)
Falling anvil (DEATH_FALLING_BLOCK)
/summon Potion (or dispenser) (DEATH_POTION)
/summon Arrow (or dispenser) (DEATH_PROJECTILE)
/summon Arrow (or dispenser) knocks a player

Death causes i can't test:

LightningBolt (DEATH_LIGHTNING) (/summon LightingBolt doesn't work (sportbukkit?))
Starvation (DEATH_STARVATION) (having 0 hunger doesn't remove health)

@twizmwazin
Copy link
Owner

Cool 😄 Looking forward to merging this

@ghost
Copy link

ghost commented Aug 23, 2015

GG @Pablete1234 you are a boss hahaa

@connorjayr
Copy link
Collaborator

Item names should be translated with translate components https://www.spigotmc.org/wiki/the-chat-component-api/#client-side-translations

@Pablete1234
Copy link
Collaborator Author

@iEli2tyree011 do you know any way of getting "tile.stone.stone.name" from the block?
thx elly: CraftItemStack.asNMSCopy(itemStack).a()

@Pablete1234
Copy link
Collaborator Author

@twizmwazin add the WIP tag, this is going to take a while

@Pablete1234
Copy link
Collaborator Author

I would like to call testers, this should have the main funcionallity implemented, but i'm sure this will have bugs, so plase test this and tell me your results

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Death message localization isn't implemented
3 participants