This plugin allows to to create rewards for players who vote for your server on www.rust-servers.net
Once you have loaded the plugin you must enter your rust-servers.net API key into the config. The plugin will unload itself if this remains empty!
Chat Commands
/vote
-- Check for recent votes and awards player's "vote points"/reward
-- Show the user's current "vote point" count and a list of available rewards/reward <ID>
-- Claim the reward with the specified ID
Creating Packages
You have the option to give RP (ServerRewards) or Coins (Economics) as well as items. When modifying or adding these packages be mindful of all symbol's and their places , . : { } \[ \]
. If in doubt, you can run your configuration file through a validator such as jsonlint.com.
Example Package
"1": { // This is the ID number of the reward. You can NOT have multiple packages with the same ID
"CostToBuy": 2, // The amount of "vote points" this package is worth
"EcoAmount": 0, // Amount of coins to give in this package
"RewardItems": [ // The list of reward items
{
"Amount": 100, // Amount of the item
"Shortname": "hq.metal.ore", // Shortname of the item
"SkinID": 0 // Skin ID of the item
}, // Note each item begins and ends with a curly brace, when there are more items after it will be followed by a comma
{
"Amount": 150,
"Shortname": "sulfur.ore",
"SkinID": 0
}
],
"RPAmount": 0 // Amount of RP to give in this package
},
Configuration
{
"Chat Commands": {
"Chat Command - Reward Menu": "reward",
"Chat Command - Vote Checking": "vote"
},
"Messaging Options": {
"Activate automated broadcasting": true,
"Automated broadcast timer (minutes)": 30,
"Message color (Primary)": "#ce422b",
"Message color (Secondary)": "#939393"
},
"Reward List": {
"0": {
"Reward Cost": 1,
"Reward Items": [
{
"Item Amount": 1,
"Item Shortname": "supply.signal",
"Item Skin ID": 0
}
],
"Reward Money (Economics)": 0,
"Reward RP (Server Rewards)": 0
},
"1": {
"Reward Cost": 2,
"Reward Items": [
{
"Item Amount": 100,
"Item Shortname": "hq.metal.ore",
"Item Skin ID": 0
},
{
"Item Amount": 150,
"Item Shortname": "sulfur.ore",
"Item Skin ID": 0
}
],
"Reward Money (Economics)": 0,
"Reward RP (Server Rewards)": 0
},
"2": {
"Reward Cost": 3,
"Reward Items": [],
"Reward Money (Economics)": 0,
"Reward RP (Server Rewards)": 200
}
},
"Tracker Information": {
"API Key": "", // API key for the chosen tracker
"Points received per vote": 1, // Amount of points to receive per vote
"Tracker type (TopRustServers, RustServers, Beancan)": "Beancan" // Here you can set the tracker type from the 3 options listed
}
}
Credits
- Bombardir, for the original Voter plugin for Rust
MIT License
Copyright (c) 2020 k1lly0u
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.