• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.
  • Minecraft 1.16.220 Update + Bug/Crash Fixes
    Added MCPE 1.16.220 version and fixed crashes for multiple plugins. You can view the full changelist here.
  • Forum Updates - 4/11/2021
    Various changes have been made to the forums and a few categories. You can view the full changelist here.

VoteReward

Warning!
Hello , there have been no replies in this thread for more than 30 days.
Please make sure you have a valid reason before you reply to this thread or you may face moderation action.

Urft_

Tree Puncher
#1
DataLion Vote Reward
Add your server to the minecraftpocket-servers.com list. If you have done that get the API key.
Insert the API Key where the {API-KEY} is on the code below!


Code:
/cmd create vote [Claim your vote reward]
/cmd add vote let %url%[] = \"https://minecraftpocket-servers.com/api/?object=votes&element=claim&key={API-KEY}&username=\"
/cmd add vote let %url%[] = %p%
/cmd add vote let %api1% = join(%url%, \"\")
/cmd add vote let %response% = geturl(%api1%)
/cmd add vote if %response% = 1 then goto 100
/cmd add vote if %response% = 0 then message %p% You didn't vote today!
/cmd add vote if %response% = 2 then message %p% You already claimed your reward!
/cmd add vote exit
/cmd insert vote 100 vote let %url2%[] = \"https://minecraftpocket-servers.com/api/?action=post&object=votes&element=claim&key={API-KEY}&username=\"
/cmd add vote let %url2%[] = %p%
/cmd add vote let %api2% = join(%url2%, \"\")
/cmd add vote let %response% = geturl(%api2%)
/cmd add vote message onlineplayers() %p% voted for us!
/cmd add vote ascon
/give %p% steak 10
 

Squiidgy

Tree Puncher
#4
Do I change where it says {API-KEY) do mine or leave it?

I just tested it out and it didn't do anything it still says You Didn't vote today