Ejemplo n.º 1
0
 public WarpDriveEngine(WarpDrivePlugin warpDrivePlugin, string xmlFile)
 {
     this.warpDrivePlugin = warpDrivePlugin;
     this.globalOwnershipEnforced = this.warpDrivePlugin.globalOwnershipEnforced;
     globalWarpList = new WarpList();
     passportManager = PassportManagerFactory.getPassportManager();
     vault = VaultFactory.getVault();
     loadGlobalWarps();
 }
Ejemplo n.º 2
0
        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;
        }