Prefab Sniffer
v2.0.2
4 years ago
Prefab Sniffer is a small plugin designed to search the game files for prefabs and give you a list in text form with their full file paths. The purpose of this plugin is to allow people an up-to-date list of available prefabs when they need it.
Usage
To use it, simply type prefabs followed by one of the modes listed below in RCON or console of choice, and then go to your logs folder and you'll find a file named prefabsniffer with the name of the function you triggered followed by the current date of the server.
Permissions
This plugin uses the permission system. To assign a permission, use oxide.grant <user or group> <name or steam id> <permission>. To remove a permission, use oxide.revoke <user or group> <name or steam id> <permission>.
prefabsniffer.use-- Allows player to use theprefabcommand and subcommands
Commands
This plugin provides both chat and console commands using the same syntax. When using a command in chat, prefix it with a forward slash: \/`.
The base command is "prefab" (or whatever you have configured), which you'd use along with one of the modes listed below.
- all -- Spits out everything in the game files, don't use this unless you know you need to already.
- build -- Gives you a list of the prefabs available for use with plugins.
- find -- Search for a specific prefab by name or keyword
- fx -- Gives you a list of all the available effects you can run from the server in plugins.
Localization
The default messages are in the PrefabSniffer file under the lang/en directory. To add support for another language, create a new language folder (e.g. de for German) if not already created, copy the default language file to the new folder and then customize the messages.
{
"CommandPrefab": "prefab",
"NoResultsFound": "No results found for {0}",
"ResultsSaved": "Prefab results saved to logs/{0}.txt",
"UsagePrefab": "Usage: {0} <build, find, fx, or all> [keyword]",
"UsagePrefabFind": "Usage: prefabs find <keyword>"
}
MIT License, with distribution exclusivity for uMod.org
Copyright (c) 2020 Wulf
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.