MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / removeFromTeam

Method removeFromTeam

source/game/StarTeamClient.cpp:93–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91}
92
93void TeamClient::removeFromTeam(Uuid const& playerUuid) {
94 if (!m_teamUuid)
95 return;
96 if (!isTeamLeader() && playerUuid != m_clientContext->playerUuid())
97 return;
98 JsonObject request;
99 request["teamUuid"] = m_teamUuid->hex();
100 request["playerUuid"] = playerUuid.hex();
101 invokeRemote("team.removeFromTeam", request, [this](Json) { forceUpdate(); });
102}
103
104bool TeamClient::hasInvitationPending() {
105 return m_hasPendingInvitation;

Callers 1

Calls 2

playerUuidMethod · 0.80
hexMethod · 0.80

Tested by

no test coverage detected