Skip to content

Tweak To JSON API #1884

@Hockeyfan360

Description

@Hockeyfan360

Right now, the players json api (http://play.totalfreedom.me:28966/players) gives us the arrays "developers", "players", "telnetadmins", "superadmins", and "senioradmins". This is definitely helpful if you want to make an application that hooks into TFM, but you lack the ability to get a list of online admins.

For example, the TF website just looks for the list of admins; in this case, that's perfectly fine. However, if I want to create command permissions in an external plugin, I'd need to know what players are online, and which are admins. I can check to see if players online are listed as admins, but I can't tell if any of them are imposters.

I suggest that you add the array "onlineadmins" so that external programs can tell what players online are true admins. It shouldn't take but a few minutes to implement.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions