StartMachine for Hurtworld

Starts machines automatically on server startup and by manual control

Total Downloads: 707 - First Release: Dec 31, 2015 - Last Update: Jul 28, 2017

5/5, 3 likes
  1. Wulf
    Configuration File:
    Yes
    StartMachine automatically starts all configured machines when the server starts, and allows players with permission to start/stop machines with a command.

    Permissions

    This plugin uses Oxide's permission system. To assign a permission, use grant user <name or steam id> <permission>. To remove a permission, use revoke user <name or steam id> <permission>.
    • startmachine.control (allows player to stop/start all machines)
      Ex. grant user Wulf startmachine.control
      Ex. revoke user Wulf startmachine.control
      Ex. grant group moderator startmachine.control
    Command
    • machines or startmachines
      Turns all machines on/off based on current state
    Configuration

    You can configure the settings in the StartMachine.json file under the oxide/config directory.
    Code (Javascript):
    {
      "Campfire control (true/false)": true,
      "Drill control (true/false)": true,
      "Fridge control (true/false)": true
    }
    Localization

    The default messages are in the StartMachine.json file under the oxide/lang/en directory. To add support for another language, create a new language folder (ex. de for German) if not already created, copy the default language file to the new folder, and then customize the messages.
    Code (Javascript):
    {
      "CommandAlias": "machines",
      "MachinesStarted": "{0} {1} machines have been started",
      "MachinesStopped": "{0} {1} machines have been stopped",
      "NotAllowed": "You are not allowed to use the 'machines' command"
    }
    SanMan likes this.