Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- votesymbol: &7[&2Vote&7]&f
- command startvote [<text>]:
- permission: startvote.command
- trigger:
- if arg 1 is set:
- broadcast "{@votesymbol} %arg 1%"
- broadcast "{@votesymbol} Vote with &2/yes&f or &4/no&f, you have 30 seconds"
- set {vote.status} to true
- set {votes.in.favor} to 0
- set {votes.in.contrast} to 0
- wait 30 seconds
- clear {vote.status}
- broadcast "{@votesymbol} &2%{votes.in.favor}%&f in favor and &4%{votes.in.contrast}%&f in contrast"
- if {votes.in.favor} is less than {votes.in.contrast}:
- broadcast "{@votesymbol} More votes for &4NO"
- if {votes.in.favor} is equal to {votes.in.contrast}:
- broadcast "{@votesymbol} The Vote was even"
- if {votes.in.contrast} is less than {votes.in.favor}:
- broadcast "{@votesymbol} More votes for &2YES"
- clear {votes.in.favor}
- clear {votes.in.contrast}
- clear {vote.status}
- else:
- send "{@votesymbol} Use /starvote <text>"
- command yes:
- usage: vote
- trigger:
- if {vote.status} is true:
- if {%player%.voted} is not set:
- set {votes.in.favor} to {votes.in.favor} + 1
- set {%player%.voted} to "yes"
- send "{@votesymbol} You voted with 'Yes'"
- wait 35 seconds
- clear {%player%.voted}
- else:
- send "{@votesymbol} You allready voted"
- else:
- send "{@votesymbol} There is no Vote"
- command no:
- usage: vote
- trigger:
- if {vote.status} is true:
- if {%player%.voted} is not set:
- set {votes.in.contrast} to {votes.in.contrast} + 1
- set {%player%.voted} to "yes"
- send "{@votesymbol} You voted with 'No'"
- wait 35 seconds
- clear {%player%.voted}
- else:
- send "{@votesymbol} You allready voted"
- else:
- send "{@votesymbol} There is no Vote"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement