From: David ‘Bombe’ Roden Date: Wed, 15 Dec 2010 04:46:58 +0000 (+0100) Subject: Return the trust of a Sone. X-Git-Tag: 0.4^2~8^2~53 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=4c01b14af989a2831212ed79410ed723ba334c4a;p=Sone.git Return the trust of a Sone. --- diff --git a/src/main/java/net/pterodactylus/sone/template/SoneAccessor.java b/src/main/java/net/pterodactylus/sone/template/SoneAccessor.java index c9c5f48..c4eac6c 100644 --- a/src/main/java/net/pterodactylus/sone/template/SoneAccessor.java +++ b/src/main/java/net/pterodactylus/sone/template/SoneAccessor.java @@ -89,6 +89,9 @@ public class SoneAccessor extends ReflectionAccessor { return core.isNewSone(sone); } else if (member.equals("locked")) { return core.isLocked(sone); + } else if (member.equals("trust")) { + Sone currentSone = (Sone) dataProvider.getData("currentSone"); + return core.getTrust(currentSone, sone); } return super.get(dataProvider, object, member); }