· 4 years ago · Jul 06, 2021, 01:30 AM
1# IceVote Configuration
2# By Johnanater
3
4# Remind player to vote every day
5RemindOnJoin: true
6
7# Has voted today feature
8# This will give players a role if they have voted today
9VotedTodayRank: false
10VotedTodayRankId: "Voted"
11
12# Voter rank feature
13# Will give players a rank if they
14# vote X amount of times before a reset
15VoterRank: false
16VoterRankId: "Voter"
17VoterRankMinimumVotes: 5
18
19# Vote resetting
20ResetVotes: false
21ResetVotesTimeDays: 30
22RewardTopPlayerOnReset: true
23
24# List of commands to execute for top player
25RewardTopPlayerCommands:
26 - "p add %steam64% VIP"
27 - "broadcast \"%player% had the most votes for this month and got VIP!\""
28
29# Plugin UI
30# If disabled, a command system will be used
31# Enabling this will OVERRIDE single site mode
32EnableUi: true
33
34# Single site mode
35# This allows raw /vote and /reward to just
36# pick the first site, comes it handy when you
37# only have one voting site
38EnableSingleSiteMode: false
39
40# Voting site lists
41# By default, most of the big sites have been listed here.
42# Any voting site that returns either a 1 for voted, or 0 for not voted,
43# and has a vote claim url can be listed here.
44# This information can usually be found on the website's API page.
45Sites:
46 - Name: "Unturned-Servers"
47 VoteUrl: "https://unturned-servers.net/server/YOUR_SERVER/vote/"
48 ApiKey: "YOUR_API_KEY_HERE"
49 HasVotedUrl: "https://unturned-servers.net/api/?object=votes&element=claim&key={0}&steamid={1}"
50 SetVotedUrl: "https://unturned-servers.net/api/?action=post&object=votes&element=claim&key={0}&steamid={1}"
51
52 - Name: "UnturnedSL"
53 VoteUrl: "https://unturnedsl.com/vote/YOUR_SERVER_ID"
54 # You need to put your server's ID here instead of the API key
55 ApiKey: "YOUR_SERVER_ID"
56 # HTTPS does not seem to work in Unturned, but you can try it
57 HasVotedUrl: "http://unturnedsl.com/api/dedicated/{0}/{1}"
58 SetVotedUrl: "http://unturnedsl.com/api/dedicated/post/{0}/{1}"
59
60 - Name: "TrackyServer"
61 VoteUrl: "https://www.trackyserver.com/server/YOUR_SERVER"
62 ApiKey: "YOUR_API_KEY_HERE"
63 # HTTPS does not work on TrackyServer
64 HasVotedUrl: "http://www.api.trackyserver.com/vote/?action=status&key={0}&steamid={1}"
65 SetVotedUrl: "http://www.api.trackyserver.com/vote/?action=claim&key={0}&steamid={1}"
66
67 - Name: "envul"
68 VoteUrl: "https://envul.com/YOUR_SERVER/"
69 ApiKey: "YOUR_API_KEY_HERE"
70 HasVotedUrl: "https://api.envul.com/vote?dev_key=YOUR_DEV_KEY_HERE&api_key={0}&steamid={1}&call=1"
71 SetVotedurl: "https://api.envul.com/vote?dev_key=YOUR_DEV_KEY_HERE&api_key={0}&steamid={1}&call=2"
72
73# Rewards
74Rewards:
75 - Type: "money"
76 Value: "100"
77 Message: "%player% got $100 for voting!"
78 Chance: 10.00
79 - Type: "item"
80 Value: "15,15,15,15"
81 Message: "%player% got a %itemnames% for voting!"
82 Chance: 25.00
83 - Type: "item"
84 Value: "15"
85 Message: "%player% got a %itemnames% for voting!"
86 Chance: 5.00
87 - Type: "vehicle"
88 Value: "15"
89 Message: "%player% got a %vehiclename% for voting!"
90 Chance: 5.00
91 - Type: "experience"
92 Value: "250"
93 Message: "%player% got 250 exp for voting!"
94 Chance: 25.00
95 - Type: "rank"
96 Value: "VIP"
97 Message: "%player% got rank VIP for voting!"
98 Chance: 25.00
99 # This is a CustomRewardType, you can define them below
100 - Type: "freekick"
101 Value: "got a free kick!"
102 Message: "%player% got a free kick!"
103 Chance: 5.00
104
105# Custom reward types
106# These allow you to define your own type of rewards
107# using commands along with variables.
108# Variables you can use:
109# Player Name: %player%
110# Steam64: %steam64%
111# Value from the reward: %value%
112CustomRewardTypes:
113 - Name: "freekick"
114 Commands:
115 # List of commands to execute
116 - say "%player% %value%"
117 # This is for the Vanilla kick command
118 # It will kick the player for the reason "got a free kick"
119 - kick %player%/%value%"
120 - Name: "day"
121 # List of commands to execute
122 Commands:
123 - day
124
125#
126# Chat
127#
128
129ChatConfig:
130 # Icon for the chat messages sent
131 ChatMessageIconUrl: "https://i.imgur.com/gFxQO6K.png"
132 ChatUseRichText: false
133
134 # These chat colors are from Unity
135 # You can find out how to specify colors here:
136 # https://docs.unity3d.com/ScriptReference/ColorUtility.TryParseHtmlString.html
137 ChatMessageColor: "#00FF00"
138 ChatMessageErrorColor: "#FF0000"
139
140#
141# Database
142#
143
144# Should MySQL be enabled?
145# If disabled, the plugin will use a JSON file for storage
146EnableMySql: false
147
148# Connection string for MySQL
149# You should only change the values here, but if you need to specify more, you can read here:
150# https://www.connectionstrings.com/mysql/
151database:
152 ConnectionStrings:
153 default: "Server=127.0.0.1; Database=IceVote; Port=3306; User=username; Password=password "
154