public PassportManagerData(String pluginPath) { vault = VaultFactory.getVault(); userList = new UserList(); passportsByUser = new Dictionary<User, Passport>(); passportsByPlayerName = new Dictionary<string, Passport>(); usersByPassport = new Dictionary<Passport, User>(); }
public WarpDriveEngine(WarpDrivePlugin warpDrivePlugin, string xmlFile) { this.warpDrivePlugin = warpDrivePlugin; this.globalOwnershipEnforced = this.warpDrivePlugin.globalOwnershipEnforced; globalWarpList = new WarpList(); passportManager = PassportManagerFactory.getPassportManager(); vault = VaultFactory.getVault(); loadGlobalWarps(); }
// get the shared singleton instance of Vault public static Vault getVault() { if (vault == null) { vault = new Vault(); } return vault; }