Skip to content

JemiloII/space-engineers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

space-engineers

Space Engineers Node.js API Based on the Official Rest API.

Using

This project uses node config. Inorder to setup, copy /config to the root of your project. Then create config/local.json to store your server secret in the "SpaceEngineers" object.

Example config/local.json:

{
  "SpaceEngineers": {
    "baseUrl": "http://your.domain.or.ip.here",
    "secret": "YourSecretHashKeyHere=="
  }
}

If you already use config, make sure to add the following to your default.json

{
  "SpaceEngineers": {
    "baseUrl": "http://localhost",
    "port": 8080,
    "prefix": "/vrageremote"
  }
}

Exports

{
  // Admin Routes
  admin: {
    demotePlayer,
    bannedPlayers,
    banPlayer,
    kickedPlayers,
    kickPlayer,
    promotePlayer
  },
  // API Routes
  api: {
    api
  },
  // Express Server Instance
  app,
  // Server Routes
  server: {
    info,
    ping,
    stop
  },
  // Session Routes
  session: {
    asteroids,
    characters,
    chat,
    economyAnalysis,
    floatingObjects,
    grids,
    planets,
    players,
    save 
  }
}

Most methods will return an array or single object. In every object, you might find additional methods attached:

  • remove
  • stop
  • power.on
  • power.off

For the players method, objects will have additional methods.

  • ban
  • kick
  • promote
  • demote

About

Space Engineers Node.js API Based on the Official Rest API.

Resources

License

Stars

Watchers

Forks

Packages

No packages published