Fix #66
This commit is contained in:
parent
8f9a1aa931
commit
1b7a66b41a
@ -76,8 +76,8 @@ public class SpongeGroup extends Group {
|
|||||||
private GroupSubject(LPSpongePlugin plugin, SpongeGroup parent) {
|
private GroupSubject(LPSpongePlugin plugin, SpongeGroup parent) {
|
||||||
this.parent = parent;
|
this.parent = parent;
|
||||||
this.plugin = plugin;
|
this.plugin = plugin;
|
||||||
this.subjectData = new LuckPermsSubjectData(true, plugin.getService(), parent);
|
this.subjectData = new LuckPermsSubjectData(true, plugin.getService(), parent, this);
|
||||||
this.transientSubjectData = new LuckPermsSubjectData(false, plugin.getService(), parent);
|
this.transientSubjectData = new LuckPermsSubjectData(false, plugin.getService(), parent, this);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -77,8 +77,8 @@ public class SpongeUser extends User {
|
|||||||
private UserSubject(LPSpongePlugin plugin, SpongeUser parent) {
|
private UserSubject(LPSpongePlugin plugin, SpongeUser parent) {
|
||||||
this.parent = parent;
|
this.parent = parent;
|
||||||
this.plugin = plugin;
|
this.plugin = plugin;
|
||||||
this.subjectData = new LuckPermsSubjectData(true, plugin.getService(), parent);
|
this.subjectData = new LuckPermsSubjectData(true, plugin.getService(), parent, this);
|
||||||
this.transientSubjectData = new LuckPermsSubjectData(false, plugin.getService(), parent);
|
this.transientSubjectData = new LuckPermsSubjectData(false, plugin.getService(), parent, this);
|
||||||
}
|
}
|
||||||
|
|
||||||
private boolean hasData() {
|
private boolean hasData() {
|
||||||
|
@ -69,6 +69,9 @@ public class LuckPermsSubjectData implements LPSubjectData {
|
|||||||
@Getter
|
@Getter
|
||||||
private final PermissionHolder holder;
|
private final PermissionHolder holder;
|
||||||
|
|
||||||
|
@Getter
|
||||||
|
LPSubject parentSubject;
|
||||||
|
|
||||||
private void objectSave(PermissionHolder t) {
|
private void objectSave(PermissionHolder t) {
|
||||||
if (t instanceof User) {
|
if (t instanceof User) {
|
||||||
service.getPlugin().getStorage().saveUser(((User) t))
|
service.getPlugin().getStorage().saveUser(((User) t))
|
||||||
@ -80,11 +83,6 @@ public class LuckPermsSubjectData implements LPSubjectData {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public LPSubject getParentSubject() {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Map<ImmutableContextSet, Map<String, Boolean>> getPermissions() {
|
public Map<ImmutableContextSet, Map<String, Boolean>> getPermissions() {
|
||||||
try (Timing ignored = service.getPlugin().getTimings().time(LPTiming.LP_SUBJECT_GET_PERMISSIONS)) {
|
try (Timing ignored = service.getPlugin().getTimings().time(LPTiming.LP_SUBJECT_GET_PERMISSIONS)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user