hiscore: use hiscore endpoint for world for player lookup op
This commit is contained in:
@@ -188,7 +188,7 @@ public class HiscorePlugin extends Plugin
|
|||||||
&& event.getMenuOption().equals(LOOKUP))
|
&& event.getMenuOption().equals(LOOKUP))
|
||||||
{
|
{
|
||||||
final String target;
|
final String target;
|
||||||
HiscoreEndpoint endpoint = HiscoreEndpoint.NORMAL;
|
HiscoreEndpoint endpoint;
|
||||||
if (event.getMenuAction() == MenuAction.RUNELITE_PLAYER)
|
if (event.getMenuAction() == MenuAction.RUNELITE_PLAYER)
|
||||||
{
|
{
|
||||||
// The player id is included in the event, so we can use that to get the player name,
|
// The player id is included in the event, so we can use that to get the player name,
|
||||||
@@ -199,6 +199,7 @@ public class HiscorePlugin extends Plugin
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
endpoint = getWorldEndpoint();
|
||||||
target = player.getName();
|
target = player.getName();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user