Jump to content

please help before i bash my head against a rock


Mrbizarre

Recommended Posts

on load:
    set {voteday} to false
            
command /votedaystart:
    permission: admin.sk
    trigger:
        if {voteday} is true:
            send "&8[&cSTAFF&8]&3 a voteday is currently in progress."
            stop
            wait 1 second
        if {voteday} is false:
            set {voteday} to true
            send "&8[&cSTAFF&8] &3%player% Started a vote for day." to all players where [input has permission "admin.sk"]
            broadcast "&8[&9&lVast&d&lSea&8]&7&l a voteday has been started. Type /y to vote for day."
            set {votedayneeded} to 0
            wait 5 minutes
            if {voteday} is true:
                set {voteday} to false
                broadcast "&8[&9&lVast&d&lSea&8]&7&l Not enough votes! [ENDED]"
                
on load:
    set {votedaycount::%uuid of player%} to 0
    set {votedayneeded} to 0


command /y:
    trigger:
        if {voteday} is true:
            if {votedaycount::%uuid of player%} is 1:
                send "&cYou already voted! Don't mess up are systems grr!"
        if {voteday} is true:
            if {votedaycount::%uuid of player%} is 0:
                send "&aYou voted for &eday!"
                add 1 to {votedaycount::%uuid of player%}
                add 1 to {votedayneeded}
            if {votedayneeded} is 5:
                set the time to day
                broadcast "&eVOTEDAY&8| &eSet the time to day!"
                
                
command /votedayforceend:
    permission: admin.sk
    trigger:
        if {voteday} is false:
            send "&cTheres not a voteday! Silly!"
        if {voteday} is true:
            set {voteday} to false
            send "&8[&cSTAFF&8]&c Successfully ended voteday."


the /y part isn't working, and my head hurts i leave now u fix

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...