Skip to content

Commit

Permalink
Merge pull request #121 from mgovea/fixMPAgain
Browse files Browse the repository at this point in the history
Fix mp again
  • Loading branch information
mgovea authored Apr 7, 2021
2 parents 6ab4eb7 + 9a6c1a2 commit 72a9a76
Show file tree
Hide file tree
Showing 5 changed files with 47 additions and 46 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ This plugin is now updated to work in Multiplayer! However, there are some thing
- Any player with the plugin can still use the "Force recalculate" and "Make rides free" buttons. There are no permissions. File an issue if you are dealing with griefers.
- For the recalculate button, the client's config is used, but will be bulldozed when server recalculates prices on the next in-game day.

To set the server config, you will need to edit the `plugin.store.json` file (typically in `C:\Users\{User}\Documents\OpenRCT2`). If that file doesn't exist, use the following as the file contents. If some keys already exist, just add the `RidePriceManager` block to what's already there. And don't mess up the commas!
If you run the server in a "headless state" (you're not playing on the host), you will have to manually edit the config file. In this case, you will need to edit the `plugin.store.json` file (typically in `C:\Users\{User}\Documents\OpenRCT2`). If that file doesn't exist, use the following as the file contents. If some keys already exist, just add the `RidePriceManager` block to what's already there. And don't mess up the commas!

```
{
Expand All @@ -55,6 +55,7 @@ To set the server config, you will need to edit the `plugin.store.json` file (ty
```

## Possible Future Plans
- Address any open [issues](https://github.com/mgovea/openrct2-ride-price-manager/issues).
- Have better tools for managing the price of transport rides.
- Automatically set park prices & allow configuration of a max admission price.
- This would help early-game ramp-up.
Expand Down
76 changes: 38 additions & 38 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ride-price-manager",
"version": "1.3.1",
"version": "1.3.2",
"description": "Ride Price Manager is a plugin for OpenRCT2 that automagically updates the prices of all your rides",
"main": "app.js",
"scripts": {
Expand All @@ -22,15 +22,15 @@
"homepage": "https://github.com/mgovea/openrct2-ride-price-manager#readme",
"devDependencies": {
"@rollup/plugin-typescript": "^8.2.1",
"@typescript-eslint/eslint-plugin": "^4.20.0",
"@typescript-eslint/parser": "^4.20.0",
"@typescript-eslint/eslint-plugin": "^4.21.0",
"@typescript-eslint/parser": "^4.21.0",
"eslint": "^7.23.0",
"eslint-config-airbnb-base": "^14.2.1",
"eslint-plugin-import": "^2.22.1",
"nodemon": "^2.0.7",
"rollup": "^2.44.0",
"rollup-plugin-terser": "^7.0.2",
"tslib": "^2.1.0",
"tslib": "^2.2.0",
"typescript": "^4.2.3"
},
"dependencies": {}
Expand Down
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import showWindow from './window';

function main(): void {
// Headless server homies don't need to register UI, you feel me?
if (ui) {
if (typeof ui !== 'undefined') {
ui.registerMenuItem('Ride Price Manager', () => {
showWindow();
});
Expand Down
4 changes: 2 additions & 2 deletions src/registerPlugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import main from './main';

registerPlugin({
name: 'Ride Price Manager',
version: '1.3.1',
authors: ['mgovea', 'Sadret'],
version: '1.3.2',
authors: ['mgovea', 'Sadret', 'kscheel'],
type: 'remote',
licence: 'MIT',
main,
Expand Down

0 comments on commit 72a9a76

Please sign in to comment.