/
Directional trust API for Paper plugins with optional Skript syntax.
TrustService (trust, untrust, trusts, getTrusted)ServicesManagerplugins/Trust API/trusts.ymlmake %player% trust %player%make %player% to trust %player%make %player% not trust %player%%player% trusts %player%/trust add <player> [trusted]/trust remove <player> [trusted]/trust list [player] (opens chest GUI with trusted player heads)command /testtrust:
trigger:
make player to trust arg-1
command /testuntrust:
trigger:
make player not trust arg-1
on damage:
attacker is a player
victim is a player
if attacker trusts victim:
send "You trust this player." to attacker
import me.thesnowbound.trustAPI.api.TrustApiProvider;
TrustApiProvider.get().ifPresent(service -> {
if (service.trusts(attacker.getUniqueId(), victim.getUniqueId())) {
// your logic
}
});

This project adds an optimized trust api for plugins and skripts.