Giter Site home page Giter Site logo

avote-rewards's Introduction

Average's Vote Rewards

Support me & this plugin's (along with several others) development on Ko.Fi: Here!

A super simple and lightweight tShock V5 plugin. Allows the user to execute /vote, which checks if the player has voted or not. If the player has voted, they are given rewards. And yes, don't worry, there is a check to make sure the reward can't be claimed more than once per 24 hours!

Permission node for /vote: av.vote

Config Explained

(tshock/AVote.json)

{
  "Commands": [
    '/give "meowmere" %PLAYER% 1 legendary'
  ],
  "apiKey": "xxx",
  "rewardMessage": "[Vote Rewards] %PLAYER% has voted for us and receieved a reward. Use /vote to get the same reward!"
}

The Commands field is where you can add a list of commands, with %PLAYER being replaced with the player's name. This allows the plugin to be highly versatile and does not DIRECTLY depend on any other plugins (cough TSReward and SEConomy cough). For example, you could /rocket the player and then /givebal (or whatever your economy command is). Or literally whatever! It can be anything :D

The apiKey is the API key provided by terraria-servers.com, this is necessary to check if your player has voted or not.

The rewardMessage is the message that is sent to all players once a player has voted! The %PLAYER% placeholder also works here!

Thanks for reading :D

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.