From 37a8861fa05625b05f70922dbd58448e9e384220 Mon Sep 17 00:00:00 2001 From: boy0001 Date: Mon, 7 Sep 2015 22:31:48 +1000 Subject: [PATCH] Temporary fix for sponge toggles. --- .../sponge/object/SpongePlayer.java | 10 +++++----- target/PlotSquared-Sponge.jar | Bin 1114105 -> 1114156 bytes 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/java/com/plotsquared/sponge/object/SpongePlayer.java b/src/main/java/com/plotsquared/sponge/object/SpongePlayer.java index 48f6c24e0..1ee840f37 100644 --- a/src/main/java/com/plotsquared/sponge/object/SpongePlayer.java +++ b/src/main/java/com/plotsquared/sponge/object/SpongePlayer.java @@ -156,22 +156,22 @@ public class SpongePlayer extends PlotPlayer { @Override public void setAttribute(String key) { key = "plotsquared_user_attributes." + key; - EconHandler.manager.setPermission(getName(), key, true); +// EconHandler.manager.setPermission(getName(), key, true); + setMeta(key, true); } @Override public boolean getAttribute(String key) { key = "plotsquared_user_attributes." + key; - + return getMeta(key) != null; // TODO register attributes - - return false; } @Override public void removeAttribute(String key) { key = "plotsquared_user_attributes." + key; - EconHandler.manager.setPermission(getName(), key, false); +// EconHandler.manager.setPermission(getName(), key, false); + deleteMeta(key); } @Override diff --git a/target/PlotSquared-Sponge.jar b/target/PlotSquared-Sponge.jar index f8fff0f4d61f6583c4f2e445acf467f0f8f8c208..66bd2e9d7a66759693153c356acaf16e20517b11 100644 GIT binary patch delta 4764 zcmZWt2UHVXw}sFVl8FdN3mv3)0-=dY6KR4-5fB9FNK=qvM37z-(4iOU3P=YLkR~k( zf=DmYRa&C-P+s!!p6~zO%UV14?0xq==ggg1Yu26plgp)#uh1Fll9AJr5P$EgpVRR} z8mcR0T4^Bl)z#ZHNf5#q8ci1wO-D)qga9%E$O)hzfRX?z0;ma~A%K>EGXxO*^!3qn zP@9|Zp(;VG3kSx7tWXjX8(tC;$)sE=R`8rXlmmTk^x+A5s9pPwl-YdO`Dd_armas% z?^r$->!cN%d2!B}-~9G9%?Vq%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