A vote plugin to reward players when they vote.
This fork add a way for players to choice on which server the reward should be given. Here is an example
A pull request has been done and refused here
If it don't, you will need to edit it manually or ask to the author of the theme to edit it. List of themes that already support this fork :
- rainbow (you will need to edit the theme confguration)
You will need a small adjustment with your theme to use this fork, otherwise
you will get an error Illuminate\Contracts\Encryption\DecryptException : The payload is invalid.
while voting.
Edit the file views/plugins/<your_theme>/index.blade.php
. If it doesn't exist, you can skip this step. If the file already exists, edit it and add this piece of code where you want to see the server choice list :
@if(isset(serversChoice))
@if (count($serversChoice) > 1)
<select id="stepServerIdInput">
@foreach($serversChoice as $id => $name)
<option value="{{ $id }}">{{ $name }} </option>
@endforeach
</select>
@else
<input type="hidden" id="stepServerIdInput" value="{{ array_key_first($serversChoice) }}">
@endif
@endif
- Click the download button to download this fork as a zip.
- Go to your Azuriom root directory
- If the directory
./plugins/vote
exists, delete it or rename it e.g.votes.old
. This won't delete any data, plugins are stateless. - Create the directory
./plugins/vote
with the right permissions (same as other plugins) - Extract the content of the zip into
./plugins/vote
This fork is safe to use. Changes are simple and easy to read. You can review them here