Minecraft death counter?

ye
6

I'm currently in the process of programming a mini-game. I want you to see your deaths and kills in a scoreboard. I already have the scoreboard. But do not manage to save and spend the deaths. I have been playing with HashMaps for hours. Do you have an idea?

Re

I want…

That does not matter, because the only relevant is the task / problem.

But do not manage to save and spend the deaths.

This is just as helpful as "The game is not working." How about describing your previous attempts and presenting code?

What are you failing? Where should the data be stored?

I have been playing with HashMaps for hours

Programming is not a game. Either you learn it and do it right, or you leave the work to the professionals. Documentaries, tutorials and co. Are not there finally groundless.

By the way: Why do not you learn how to ask questions correctly? This is far more important than programming itself.

ye

I'm so sorry. I had a long day today and am annoyed now. Even if it may not seem that way now, I've been programming for a while. I will take care of the problem tomorrow. I just thought that someone has already experienced. Lg

dr

Well, if there's a hitch, Hallelujah

Re

Think about it tomorrow then, how could approach the problem logically and throw (without argument) a look in the appropriate Bukkit / Spigot / Java documentation, because there you will find everything necessary.

cl

Um…

/ scoreboards Objectives add deaths deathCount

/ scoreboard objectives add kills playerKillCount

The last parameter here determines what is counted. This can e.g. Health, but also the number of deaths / kills

All this is easy to find out if you go to minecraft wii…

ye

Many thanks for your response.

These commands were known to me but I wanted to install it in a plugin.