Merge pull request #3129 from JumpIfZero/feature/friendsystem-ignore
mixins: RSFriendSystem ignore add/remove
This commit is contained in:
@@ -2130,6 +2130,16 @@ public interface Client extends GameEngine
|
|||||||
*/
|
*/
|
||||||
void removeFriend(String name);
|
void removeFriend(String name);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Add player to ignorelist
|
||||||
|
*/
|
||||||
|
void addIgnore(String name);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Remove player from ignorelist
|
||||||
|
*/
|
||||||
|
void removeIgnore(String name);
|
||||||
|
|
||||||
void setModulus(BigInteger modulus);
|
void setModulus(BigInteger modulus);
|
||||||
|
|
||||||
BigInteger getModulus();
|
BigInteger getModulus();
|
||||||
|
|||||||
@@ -2165,6 +2165,22 @@ public abstract class RSClientMixin implements RSClient
|
|||||||
friendSystem.removeFriend(friend);
|
friendSystem.removeFriend(friend);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Inject
|
||||||
|
@Override
|
||||||
|
public void addIgnore(String friend)
|
||||||
|
{
|
||||||
|
RSFriendSystem friendSystem = getFriendManager();
|
||||||
|
friendSystem.addIgnore(friend);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Inject
|
||||||
|
@Override
|
||||||
|
public void removeIgnore(String friend)
|
||||||
|
{
|
||||||
|
RSFriendSystem friendSystem = getFriendManager();
|
||||||
|
friendSystem.removeIgnore(friend);
|
||||||
|
}
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
private static BigInteger modulus;
|
private static BigInteger modulus;
|
||||||
|
|
||||||
|
|||||||
@@ -22,4 +22,10 @@ public interface RSFriendSystem
|
|||||||
|
|
||||||
@Import("removeFriend")
|
@Import("removeFriend")
|
||||||
void removeFriend(String username);
|
void removeFriend(String username);
|
||||||
|
|
||||||
|
@Import("addIgnore")
|
||||||
|
void addIgnore(String username);
|
||||||
|
|
||||||
|
@Import("removeIgnore")
|
||||||
|
void removeIgnore(String username);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user