booksaw / BetterTeams

Create teams to fight to be the best (Minecraft Plugin)
https://www.spigotmc.org/resources/better-teams.17129/
MIT License
63 stars 43 forks source link

[BUG] Can't reuse Team name if it contains a capital letter #501

Closed Gremter closed 9 months ago

Gremter commented 10 months ago

What is the bug?

If you use a team name with a capital letter and then disband/rename the team, the previous name stays unavailable.

Expected Behaviour

Changing team name with a capital letter or disbanding the team should free the name.

How to Reproduce

Example with renaming:

  1. Create a team with a capital letter, it can be wherever: /team create teSt
  2. Rename your team to something else: /team name Test2
  3. Try to change it to test: /team name test It won't let you change to test because there was a team called test before. Capital letter in the name locks the team name. Both test and test2 will be locked because of it.

Error message

No response

Output of /teama version

image

Additional Information

No response