"Hello. Can you guys, please, could send me an example how to add, remove and clear friends from my terrain through API?" Here's my current code: #2528
muriloowwins
started this conversation in
General
Replies: 1 comment
-
|
Look at how the trust commands are implemented. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
@OverRide
public void clearFriends(String id) {
Claim claim = me.ryanhamshire.GriefPrevention.GriefPrevention.instance.dataStore.getClaim(Long.parseLong(id));
claim.managers.clear();
me.ryanhamshire.GriefPrevention.GriefPrevention.instance.dataStore.saveClaim(claim);
}
Beta Was this translation helpful? Give feedback.
All reactions