Move permissions declaration to the constructor.

This commit is contained in:
gmcferrin 2013-01-01 17:32:22 -05:00
parent d741d9a11e
commit 48150e2002

View File

@ -13,12 +13,13 @@ public class AcrobaticsManager {
private Player player; private Player player;
private PlayerProfile profile; private PlayerProfile profile;
private int skillLevel; private int skillLevel;
private Permissions permissionInstance = Permissions.getInstance(); private Permissions permissionInstance;
public AcrobaticsManager (Player player) { public AcrobaticsManager (Player player) {
this.player = player; this.player = player;
this.profile = Users.getProfile(player); this.profile = Users.getProfile(player);
this.skillLevel = profile.getSkillLevel(SkillType.ACROBATICS); this.skillLevel = profile.getSkillLevel(SkillType.ACROBATICS);
this.permissionInstance = Permissions.getInstance();
} }
/** /**