booksaw / BetterTeams

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

Hide vanished players from /team info #567

Closed Hellinduction closed 5 months ago

GoldenEdit commented 5 months ago

Hi,

Thanks for implementing this!

Do you think you could also implement this check here?:

https://github.com/booksaw/BetterTeams/blob/ec60dae480241ed55ffd2815f6517ac16fa9f69f/src/main/java/com/booksaw/betterTeams/commands/team/InviteCommand.java#L26C3-L28C4

Maybe something along the lines of

if (toInvite == null || Utils.isVanished(toInvite)) {
            return new CommandResponse("noPlayer");
        }

Thank you!

GoldenEdit commented 5 months ago

Appreciate it. 🙏