Refactor Contexts class

This commit is contained in:
Luck
2018-02-28 19:13:21 +00:00
Unverified
parent 984bc5860f
commit 98fb9946e4
17 changed files with 291 additions and 120 deletions
@@ -40,7 +40,7 @@ public class SpongeContextManager extends AbstractContextManager<Subject> {
@Override
public Contexts formContexts(Subject subject, ImmutableContextSet contextSet) {
return new Contexts(
return Contexts.of(
contextSet,
this.plugin.getConfiguration().get(ConfigKeys.INCLUDING_GLOBAL_PERMS),
this.plugin.getConfiguration().get(ConfigKeys.INCLUDING_GLOBAL_WORLD_PERMS),