Description: :) If you have time to use my scripts, you have time to leave a comment or thumbs up!
Votifier Vote Simulator
Cause sometimes you need to test shiz.
Run the /fakevote command from console OR from in game. In game usage requires the votesimulator.admin permission node. You can use the command syntax shown below. The command will try to send sane default info to your vote script if you derp.
I want comments! Rip it apart! What have i done absolutely wrong? What have i done absolutely right?
Has this script helped you in any way? Did you try to use it and it just didn't work?
Thumbs Up are nice too!
# ---------------------------------------------------------------------------- ## |# |# V o t i f i e r V o t e S i m u l a t o r |# |# A system for testing your on votifier vote scripts |# |# ! Requires Votifier and Depenizen ! |# |# |# |# |# Author: |Anthony| |# Version: 0.1 |# dScript Version: 0.9.5-b1517 |# |# ---------------------------------------------------------------------------- #
VoteSimulator:
type: world
debug: false
events:
on fakevote command:
- inject locally fakeVote instantly
fakeVote:
- if !<context.server> {
- if !<player.has_permission[votesimulator.admin]> queue stop
}
- determine passively FULFILLED
- define arg1 <c.args.get[1].escaped||null>
- define service <c.args.get[2].escaped||test>
- if <def[arg1].is[!=].to[null]> {
- if <util.player_is_valid[%arg1%]> {
- define username %arg1%
- define player '<def[username].as_player>'
}
else {
- narrate "<&b>FakeVote<&co><&c> %arg1% is not a valid player name!"
- queue stop
}}
else {
- if <context.server> {
- announce "<&b>FakeVote<&co><&c> Must specify a username from console!" to_console
- queue stop
}
else {
- define player <player>
- define username <player.name>
}}
- event "votifier vote" 'context:username|%username%|player|%player%|service|%service%' player:%player%
- queue stop