Skip to content

Fork of a vote plugin to reward players when they vote.

License

Notifications You must be signed in to change notification settings

magrigry/Plugin-Vote

 
 

Repository files navigation

Vote (Plugin) - FORK

Chat

A vote plugin to reward players when they vote.

Why this fork

This fork add a way for players to choice on which server the reward should be given. Here is an example image

A pull request has been done and refused here

Theme

Your theme may already support this fork.

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)

How to edit your theme

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    

Installating the fork

  • 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

Review changes

This fork is safe to use. Changes are simple and easy to read. You can review them here

About

Fork of a vote plugin to reward players when they vote.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 61.2%
  • Blade 33.1%
  • JavaScript 5.7%