Jump to content

How to check if other player is in our clan chat?


Recommended Posts

Posted (edited)

I know maybe you can use widgets but  how would go about detecting the purple dot on minimap?

private boolean playerIsInClanChat(String username){
    username = username.replace('\u00A0', ' ');
    for(RS2Widget widget : S.getWidgets().getWidgets(589, 5)){
        if(widget.getMessage().contains(username)) return true;
    }
    return false;
}
Edited by Explv
  • Like 2
Posted
private boolean playerIsInClanChat(String username){
    username = username.replace('\u00A0', ' ');
    for(RS2Widget widget : S.getWidgets().getWidgets(589, 5)){
        if(widget.getMessage().contains(username)) return true;
    }
    return false;
}

Is there any fast way to do it without opening up clan chat tab?

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...