mirror of
https://github.com/bloxstraplabs/bloxstrap.git
synced 2025-04-21 10:01:27 -07:00
Hide RP join button if not in public server
This commit is contained in:
parent
62a44f1c2c
commit
3aafa140a1
@ -164,7 +164,7 @@ namespace Bloxstrap.Integrations
|
||||
}
|
||||
};
|
||||
|
||||
if (!App.Settings.Prop.HideRPCButtons)
|
||||
if (!App.Settings.Prop.HideRPCButtons && _activityWatcher.ActivityServerType == ServerType.Public)
|
||||
{
|
||||
buttons.Insert(0, new Button
|
||||
{
|
||||
@ -183,10 +183,17 @@ namespace Bloxstrap.Integrations
|
||||
return false;
|
||||
}
|
||||
|
||||
string status = _activityWatcher.ActivityServerType switch
|
||||
{
|
||||
ServerType.Private => "In a private server",
|
||||
ServerType.Reserved => "In a reserved server",
|
||||
_ => $"by {universeDetails.Creator.Name}" + (universeDetails.Creator.HasVerifiedBadge ? " ☑️" : ""),
|
||||
};
|
||||
|
||||
_currentPresence = new RichPresence
|
||||
{
|
||||
Details = universeDetails.Name,
|
||||
State = $"by {universeDetails.Creator.Name}" + (universeDetails.Creator.HasVerifiedBadge ? " ☑️" : ""),
|
||||
State = status,
|
||||
Timestamps = new Timestamps { Start = _timeStartedUniverse },
|
||||
Buttons = buttons.ToArray(),
|
||||
Assets = new Assets
|
||||
|
Loading…
Reference in New Issue
Block a user