Coder Social home page Coder Social logo

atmatto / vehiclecleanup Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 1.7 MB

Unturned LDM/Rocket plugin to clear empty vehicles, based on AutoVehicleClear by PhaserArray.

License: GNU General Public License v3.0

C# 98.54% Shell 1.46%
unturned-plugin rocketmod

vehiclecleanup's Introduction

VehicleCleanup

Simple LDM/Rocket plugin to manually or automatically clear empty vehicles on unturned servers. This is a modification of the original plugin, AutoVehicleClear by PhaserArray.

Installation

Installation is simple, just download the DLL and move it to your Server's /Rocket/Plugins directory. Upon starting the server, a default config wil be generated.

Config

Automatic - false by default, if false, then the only way to clear vehicles is using the command.

ClearInterval - 600 by default, seconds between vehicle clears.

SendClearMessage - true by default, if false, a clear message will not be broadcasted.

SendWarningMessage - true by default, if false, there will be no warning shown on chat.

WarningTime - 30 by default, seconds between displaying the warning and clearing vehicles.

ProtectLocked - true by default, if true, locked vehicles won't be cleared.

ClearAll - false by default, if true, all empty vehicles will be cleared. Enabling this overrides the three options below.

ClearExploded - true by default, clears vehicle corpses.

ClearDrowned - true by default, clears underwater vehicles that do not have a Bouyancy object (will not clear vehicles like boats, seaplanes, amphibious cars, etc)

ClearNoTires - true by default, clears vehicles that have tires in a healthy state but no longer have tires.

Command

/clearvehicles (/cv) - Force a vehicle cleanup. Config variables are respected (including warning).

I haven't set up the permissions, because of insufficient docummentation of LDM. (I'm not sure how to do it properly, if you know how, please submit an issue or pull request)

Building from source

In order to build the plugin on Linux, make sure you have installed dotnet and mono. Then run these commands (build.sh):

dotnet restore
msbuild -p:Configuration=Release VehicleCleanup.csproj

On Windows, please follow a tutorial on YouTube, or build the plugin yourself.

vehiclecleanup's People

Contributors

atmatto avatar phaserarray avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.