HomeJavaModsTrust API
Trust API

Trust API

Directional trust API for Paper plugins with optional Skript syntax.

Features

Skript usage

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

Java usage

import me.thesnowbound.trustAPI.api.TrustApiProvider;

TrustApiProvider.get().ifPresent(service -> {
    if (service.trusts(attacker.getUniqueId(), victim.getUniqueId())) {
        // your logic
    }
});
Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

Verified by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more