Skip to content

setPlayerTeam outputs warning if second argument is empty or nil #3957

@bum8hj

Description

@bum8hj

Describe the bug

setPlayerTeam(player, nil) should not output a warning because arg 2 is nil.

Image

From wiki
theTeam: The team you want to add the player to, or nil if you wish to unassign a player from his team.

Steps to reproduce

Use setPlayerTeam(player, nil)

Version

Server: 22914

Additional context

Possibly caused by 74ffa1d

Relevant log output

Security Policy

  • I have read and understood the Security Policy and this issue is not security related.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions