Rough draft of WEPIF for WorldEdit-Forge. Mainly for FE compatibility, but other mods can implement this if they so want.

This commit removes ForgeUtil, with its 2 methods relocated. To set a permissions provider, get the instance of ForgeWorldEdit, and call setPermissionsProvider with an instance of a class implementing ForgePermissionsProvider.
This commit is contained in:
luacs1998
2014-11-26 18:50:36 +08:00
parent 4585623608
commit e9a97eeff6
7 changed files with 162 additions and 94 deletions

View File

@ -163,7 +163,7 @@ public class ForgePlayer extends AbstractPlayerActor {
@Override
public boolean hasPermission(String perm) {
return ForgeUtil.hasPermission(platform, this.player, perm);
return ForgeWorldEdit.inst.getPermissionsProvider().hasPermission(player, perm);
}
@Nullable