sleepylessons / NetherAnarchy

0 stars 0 forks source link

Add Party Points system #5

Open sleepylessons opened 3 years ago

sleepylessons commented 3 years ago

Is your feature request related to a problem? Please describe. A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Currently, we have a custom Voting system that tracks how many times a player has voted. We also have a Party chat system. I'd like to integrate the two of these, so that we can give Parties benefits based on how many votes each of their members has.

Describe the solution you'd like A clear and concise description of what you want to happen.

For example, it'd be great if we could increase the Party Member limit based on the number of votes that all party members have combined.

I'd also like to allow Parties to set a 3-letter Prefix (if the Party is for a group called "Fun Group", maybe they could set a Prefix like [FUN]) that would appear for all their members' messages in chat with a custom color, where the Donor tag is currently. This would also mean removing the Donor tag.

This would create a nice way to encourage people to vote without changing the game. It'd also make it easier to identify which group a player is a member of.

We'd also need the ability for people to toggle their prefix on/off in case they don't want to advertise their group membership.

Additional context This will also require implementing our Custom Chat plugin and removing EssentialsX Chat. See #6

sleepylessons commented 3 years ago

@rawora-rg I want to change our plan for how this works.

I'd like each party to have a new value stored in their .yml file, which will be "points". I'd like to have an admin command that can be run from the console called /partypoints <playername> <points-to-give>. It should find the party of the player, if they have one, and give the party the number of points I define.

The reason I want to use the <playername> instead of <partyname> is because my voting plugin works with player names. In this way, I'll be able to run a command when players vote using our custom voting plugin, and they can get points for their party.

I'd also like some new config options for the Party plugin config.yml. I'd like to be able to set different thresholds of points that give them benefits. We'll start off with allowing them to increase their Member count by gaining points. Something like this:

points-benefits:
    0:
        members: 15
    500:
        members: 20
    1000:
        members: 25
     ...

This will allow us not only to set higher member limits for parties that have members that vote frequently, but allow us to create more benefits in the future. Like I said, for now we just want to allow them to have more members for voting, but in the future I'd like to give them more benefits when we have time to implement them.

For example, maybe we can allow them to set a Prefix for their party (we've discussed this before), or allow them to do a "Party Broadcast", or set a command to be run when they reach a certain number of points, eventually. For now we just want to allow them to increase their member count by voting, but you see where I'm going with this.