Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Evento Quiz#
- #Author: TotugasNobreBR#
- #Versao Testada 1.7.2#
- options:
- #Prefix Das Mensagens#
- Prefix: &7[&eEvento Quiz&7]
- #Tempo Entre Cada Anuncio#
- TempoEntre: 10
- variables:
- {Quiz.Iniciado} = false
- # | Configuraçoes | #
- command /startquiz [<text>] [<text>]:
- permission: quiz.startquiz
- permission message: &cVocê não tem permissão para utilizar esse comando.
- trigger:
- clear {Quiz.Reposta}
- if arg 1 is set:
- if arg 2 is set:
- if {Quiz.Iniciado} is false:
- set {_ask} to arg 1
- replace all "_" with " " in {_ask}
- broadcast "{@Prefix} Evento Quiz Sendo Iniciado!"
- broadcast "{@Prefix} &aPergunta: &f%{_ask}%"
- broadcast "{@Prefix} Para Responder a pergunta use: /resposta <resposta>"
- set {Quiz.Reposta} to arg 2
- set {Quiz.Iniciado} to true
- stop
- # WOW #
- command /resposta [<text>]:
- trigger:
- if {Quiz.Iniciado} is true:
- if arg 1 is set:
- {Quiz.Reposta} = arg 1:
- give a diamond to player
- broadcast "{@Prefix} &f%player% &aAcertou a pergunta do quiz!"
- set {Quiz.Iniciado} to false
- clear {Quiz.Reposta}
- stop
- else:
- send "&cOpps! Você errou :("
- else:
- send "{@Prefix} &cUse: &f/resposta <resposta>"
- stop
- else:
- send "{Prefix} &cO Evento não está acontecendo no momento."
- stop
Advertisement
Add Comment
Please, Sign In to add comment