runeliteplus: fix plugin
This commit is contained in:
@@ -81,15 +81,8 @@ public class RuneLitePlusPlugin extends Plugin
|
|||||||
protected void startUp() throws Exception
|
protected void startUp() throws Exception
|
||||||
{
|
{
|
||||||
addSubscriptions();
|
addSubscriptions();
|
||||||
|
ClientUI.currentPresenceName = ("RuneLitePlus");
|
||||||
if (config.customPresence())
|
ClientUI.frame.setTitle(ClientUI.currentPresenceName);
|
||||||
{
|
|
||||||
ClientUI.currentPresenceName = ("RuneLitePlus");
|
|
||||||
ClientUI.frame.setTitle(ClientUI.currentPresenceName);
|
|
||||||
}
|
|
||||||
|
|
||||||
discordService.close();
|
|
||||||
discordService.init();
|
|
||||||
|
|
||||||
entered = -1;
|
entered = -1;
|
||||||
enterIdx = 0;
|
enterIdx = 0;
|
||||||
@@ -114,24 +107,6 @@ public class RuneLitePlusPlugin extends Plugin
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (event.getKey().equals("customPresence"))
|
|
||||||
{
|
|
||||||
if (config.customPresence())
|
|
||||||
{
|
|
||||||
ClientUI.currentPresenceName = ("RuneLitePlus");
|
|
||||||
ClientUI.frame.setTitle(ClientUI.currentPresenceName);
|
|
||||||
discordService.close();
|
|
||||||
discordService.init();
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
ClientUI.currentPresenceName = ("RuneLite");
|
|
||||||
ClientUI.frame.setTitle(ClientUI.currentPresenceName);
|
|
||||||
discordService.close();
|
|
||||||
discordService.init();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
else if (!config.keyboardPin())
|
else if (!config.keyboardPin())
|
||||||
{
|
{
|
||||||
entered = 0;
|
entered = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user