Temporary fix for sponge toggles.

This commit is contained in:
boy0001 2015-09-07 22:31:48 +10:00
parent 66730794d6
commit 37a8861fa0
2 changed files with 5 additions and 5 deletions

View File

@ -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

Binary file not shown.