public WarpDriveEngine(WarpDrivePlugin warpDrivePlugin, string xmlFile) { this.warpDrivePlugin = warpDrivePlugin; this.globalOwnershipEnforced = this.warpDrivePlugin.globalOwnershipEnforced; globalWarpList = new WarpList(); passportManager = PassportManagerFactory.getPassportManager(); vault = VaultFactory.getVault(); loadGlobalWarps(); }
private WarpList getPersonalWarpList(Player player) { WarpList warpList = new WarpList(); try { Passport passport = passportManager.getPassport(player); warpList.setPassport(passport); vault.getVaultObject(warpList); } catch (Exception e) { // noop } return warpList; }