Merge pull request #1132 from runelite-extended/presence
properties: fix presence config
This commit is contained in:
@@ -35,6 +35,9 @@ import net.runelite.http.api.RuneLiteAPI;
|
|||||||
@Slf4j
|
@Slf4j
|
||||||
public class RuneLiteProperties
|
public class RuneLiteProperties
|
||||||
{
|
{
|
||||||
|
private static final String DISCORD_APP_ID = "409416265891971072";
|
||||||
|
private static final String DISCORD_APP_ID_PLUS = "560644885250572289";
|
||||||
|
|
||||||
private final Properties properties = new Properties();
|
private final Properties properties = new Properties();
|
||||||
|
|
||||||
private final RuneLitePlusConfig runeLitePlusConfig;
|
private final RuneLitePlusConfig runeLitePlusConfig;
|
||||||
@@ -78,7 +81,19 @@ public class RuneLiteProperties
|
|||||||
|
|
||||||
public String getDiscordAppId()
|
public String getDiscordAppId()
|
||||||
{
|
{
|
||||||
return "560644885250572289";
|
if (this.runeLitePlusConfig == null)
|
||||||
|
{
|
||||||
|
return properties.getProperty(DISCORD_APP_ID);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (this.runeLitePlusConfig.customPresence())
|
||||||
|
{
|
||||||
|
return properties.getProperty(DISCORD_APP_ID_PLUS);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
return properties.getProperty(DISCORD_APP_ID);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getDiscordInvite()
|
public String getDiscordInvite()
|
||||||
|
|||||||
Reference in New Issue
Block a user