snaplatack
Logs to a file when players mount or dismount an entity

Supported Games
GameServerKingsGameServerKings

A simple plugin to log who mounted an entity as well as the time, date, entity name and position. I wrote this plugin for my PvE server to identify theives of horses, cars, boats and helis. This plugin is written to ignore all bots so wont give logs for events like calling the heavies to oil rig or Bazz3l's Bradley Guards.

Personally I use the command teleportpos (coordinates from logs here) to verify the exact position of the mounted entity.

This plugins logs DO NOT clear themselves on wipe and likley will get out of control for high pop servers fairly quickly. This is my first plugin so in the future I'm hoping to add a facility to wipe logs after a configurable period of time.

Permissions

  • mountlogger.use - Required to use the plugin
  • mountlogger.scrapheli.log - Allows logging of Scrap Transport Helicopter pilots
  • mountlogger.miniheli.log - Allows logging of Minicopter pilots
  • mountlogger.modularcar.log - Allows logging drivers of Modular Cars
  • mountlogger.ridablehorse.log - Allows logging riders of Horses
  • mountlogger.smallboat.log - Allows logging drivers of Rowboats
  • mountlogger.rihibboat.log - Allows logging drivers of RHIBs
  • mountlogger.cranedriver.log - Allows logging drivers of the Junk Yard crane
  • mountlogger.trackpassengers.log - Allows logging of mounted passengers of all of the above (if applicable)

Configuration

{
  "Print logs to console": true,
  "Print logs to file": true,
}

Localization

{
  "OnEntityMount": "A {0} was mounted by '{1}' at Grid {2}",
  "OnEntityDismount": "A {0} was dismounted by '{1}' at Grid {2}"
}

Log Example

Ex. file oxide/logs/MountLogger/mountlogger_common-####-##-##.txt

22:25:47 | A saddletest was mounted by 'Baron Von Finchus[76561198129540003]' at Grid D7 (-1754.8 14.7 1104.0)
22:25:53 | A saddletest was dismounted by 'Baron Von Finchus[76561198129540003]' at Grid D7 (-1754.8 14.7 1104.0)
22:26:01 | A transporthelipilot was mounted by 'Baron Von Finchus[76561198129540003]' at Grid D7 (-1754.8 14.7 1104.0)
22:26:03 | A transporthelipilot was dismounted by 'Baron Von Finchus[76561198129540003]' at Grid D7 (-1754.8 14.7 1104.0)
22:34:11 | A miniheliseat was mounted by 'Baron Von Finchus[76561198129540003]' at Grid D7 (-1754.8 14.7 1104.0)
22:34:12 | A miniheliseat was dismounted by 'Baron Von Finchus[76561198129540003]' at Grid D7 (-1754.8 14.7 1104.0)
MIT License

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.