Supported Games

GatherRewards gives players money through Economics or ServerRewards when gathering wood from trees, ores from ore rocks, killing players, or killing animals.
Note: When gathering, it will give you money for every item you gather from any given resource, so set the amounts you want given accordingly. For example, every time you gather from an ore rock, it will give you money for Metal Ore AND Sulfur Ore. Whenever you kill a player, it will give you money. If the player is a friend of the killer, it will give you a separate set amount.
Commands
Chat Commands
/gatherrewards [value] [amount]
Replace [value] with what you see in the config that you want to change.
For friends, the value is "friend" not "Player's friend"
For clan members, the value is "clan" not "Clan member"
Console Commands
gatherrewards [value] [amount]
Configuration
{
"Rewards": {
"Bear": 50.0,
"Boar": 35.0,
"Breathe": 5.0,
"Chicken": 25.0,
"Clan Member": -125.0,
"Corn": 5.0,
"Hemp": 10.0,
"Horse": 50.0,
"Murderer": 125.0,
"Mushroom": 25.0,
"Ore": 15.0,
"Player": 125.0,
"Player's Friend": -125.0,
"Stag": 50.0,
"Stone": 15.0,
"Wolf": 25.0,
"Wood": 25.0,
"Zombie": 25.0,
"Polarbear": 25.0,
"Team Member": -125.0,
"Russian Soldier": 125.0,
"Worker": 125.0,
"scientistnpc_heavy": 250.0,
"scientistnpc_oilrig": 200.0
},
"Settings": {
"ChainsawModifier": 0.25,
"ChatEditCommand": "gatherrewards",
"ConsoleEditCommand": "gatherrewards",
"EditPermission": "gatherrewards.canedit",
"GroupModifiers": {
"gatherrewards.vip1": 3.0,
"gatherrewards.vip2": 2.0,
"gatherrewards.vip3": 1.5
},
"JackHammerModifier": 0.25,
"PluginPrefix": "<color=#00FFFF>[GatherRewards]</color>",
"ShowMessagesOnGather": true,
"ShowMessagesOnKill": true,
"UseEconomics": false,
"UseServerRewards": true,
"AwardOnlyOnFullHarvest": false
}
}
The configuration file will update automatically if new options are added or removed. I'll do my best to preserve any existing settings and messages with each new version. **This won't cover major config changes. **
Localization
{
"ReceivedForGather": "You have received ${0} for gathering {1}.",
"LostForGather": "You have lost ${0} for gathering {1}.",
"ReceivedForKill": "You have received ${0} for killing a {1}.",
"LostForKill": "You have lost ${0} for killing a {1}.",
"NoPermission": "You have no permission to use this command.",
"Usage": "Usage: /{0} [value] [amount]",
"NotaNumber": "Error: value is not a number.",
"Success": "Successfully changed '{0}' to earn amount '{1}'.",
"ValueDoesNotExist": "Value '{0}' does not exist."
}
Hooks
object OnGatherRewardsGiveCredit (BasePlayer player, CollectibleEntity collectible, float amount){
//returning a non-null value prevents the award to the player
}
MIT License
Copyright (c) 2019 CanopySheep
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.