srnyx / limited-lives

Each player has a limited number of lives. If you die, you are punished!
https://srnyx.com
MIT License
5 stars 1 forks source link

Life Custom Attributes #18

Open Zhaaaaaaaaa opened 8 months ago

Zhaaaaaaaaa commented 8 months ago

What and How?

Let us configure Lives or atleast add Cooldown as an option.

Lives:

LivesDefault:

 lives:
      default: 3
      max: 5
      min: 0
 attributes:
      cooldown:
      - 5h
 punishment:
      death:
      - "commands here"
      respawn:
      - "commands here blablabla..."
 revive:
      - "commands"

CustomLifeName:

 lives:
      default: 0
      max: 2
      min: -1
      # Nothing happens if -1 since we'll treat 'CustomLifeName' as Extra Lives outside of Default Lives
 attributes:
      # nothing here unless there are other attributes that you would add...
 punishment:
      death:
      - "commands here"
      respawn:
      - "commands here blablabla..."
 revive:
      - "commands"

Why?

Allows for a good amount of customization and creativity of the server owner to make the most out of a wonderful plugin ;)

Are there alternatives?

As long as the functionality works well enough ...

Checks

Anything else

Other Ideas

Attributes - just some thoughts, nothing special. No harm in leaving this here >:D

Permissions

Example, on my server when players run out of lives they get put into rank 'dead' and sent to the nether with a custom permission node applied to a Staff with the life being the DefaultLives for them, I could have it so when they run out of lives -"command" on punishment puts them in a different rank than 'dead'... like 'dead staff' x)

Let me know if to make SEPERATE SUGGESTION for this