Merge pull request #604 from deathbeam/always-show-party-size
Updated Discord Plugin - Added config option to always show party
This commit is contained in:
@@ -35,7 +35,7 @@ public interface DiscordConfig extends Config
|
||||
keyName = "actionTimeout",
|
||||
name = "Action timeout (minutes)",
|
||||
description = "Configures after how long of not updating status will be reset (in minutes)",
|
||||
position = 1
|
||||
position = 0
|
||||
)
|
||||
default int actionTimeout()
|
||||
{
|
||||
@@ -46,13 +46,24 @@ public interface DiscordConfig extends Config
|
||||
keyName = "hideElapsedTime",
|
||||
name = "Hide elapsed time",
|
||||
description = "Configures if the elapsed time of your activity should be hidden.",
|
||||
position = 2
|
||||
position = 1
|
||||
)
|
||||
default boolean hideElapsedTime()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
@ConfigItem(
|
||||
keyName = "alwaysShowParty",
|
||||
name = "Always show party",
|
||||
description = "Configures if the party counter should be always shown (this also makes party invites always work).",
|
||||
position = 1
|
||||
)
|
||||
default boolean alwaysShowParty()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
@ConfigItem(
|
||||
keyName = "showSkillActivity",
|
||||
name = "Show activity while skilling",
|
||||
|
||||
@@ -184,6 +184,7 @@ public class DiscordPlugin extends Plugin
|
||||
{
|
||||
checkForGameStateUpdate();
|
||||
checkForAreaUpdate();
|
||||
updatePresence();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -97,7 +97,7 @@ class DiscordState
|
||||
.startTimestamp(lastPresence.getStartTimestamp())
|
||||
.smallImageKey(lastPresence.getSmallImageKey())
|
||||
.partyMax(lastPresence.getPartyMax())
|
||||
.partySize(party.getMembers().size());
|
||||
.partySize(Math.max(config.alwaysShowParty() ? 1 : 0, party.getMembers().size()));
|
||||
|
||||
if (party.isOwner())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user