[Forge] Add creative use mode and cheat mode and fix config overwrite.

This commit is contained in:
sk89q
2014-11-14 18:23:43 -08:00
parent 3bee2d4c02
commit 052addbc05
7 changed files with 45 additions and 50 deletions

View File

@ -42,9 +42,11 @@ import java.util.UUID;
public class ForgePlayer extends AbstractPlayerActor {
private EntityPlayerMP player;
private final ForgePlatform platform;
private final EntityPlayerMP player;
protected ForgePlayer(EntityPlayerMP player) {
protected ForgePlayer(ForgePlatform platform, EntityPlayerMP player) {
this.platform = platform;
this.player = player;
ThreadSafeCache.getInstance().getOnlineIds().add(getUniqueId());
}
@ -161,7 +163,7 @@ public class ForgePlayer extends AbstractPlayerActor {
@Override
public boolean hasPermission(String perm) {
return ForgeUtil.hasPermission(this.player, perm);
return ForgeUtil.hasPermission(platform, this.player, perm);
}
@Nullable