Untitled
my actionbar skript (de)unknown
plain_text
3 years ago
9.1 kB
65
Indexable
#-----------------------------------------------------------------------------------------#
# Actionbar Timer
#-----------------------------------------------------------------------------------------#
# Author: Sympathischer
# Version: 1.0.0
#-----------------------------------------------------------------------------------------#
options:
prefix: &6Timer &8»
#-----------------------------------------------------------------------------------------#
command /timer [<text>]:
permission: timer.toggle
permission message: {@prefix} &6Du &chast nicht die berechtigung diesen Command auszuführen
#-----------------------------------------------------------------------------------------#
trigger:
if arg-1 is set:
#-----------------------------------------------------------------------------------------#
if arg-1 is "offreset":
set {Timer::on::off} to false
set {Timer::seconds} to {Timer::seconds} - {Timer::seconds}
set {Timer::minutes} to {Timer::minutes} - {Timer::minutes}
set {Timer::hours} to {Timer::hours} - {Timer::hours}
set {Timer::seconds::two} to {Timer::seconds::two} - {Timer::seconds::two}
set {Timer::minutes::two} to {Timer::minutes::two} - {Timer::minutes::two}
set {Timer::hours::two} to {Timer::hours::two} - {Timer::hours::two}
broadcast "&2Der &6Timer&2 wurde resetet."
stop
#-----------------------------------------------------------------------------------------#
if arg-1 is "off":
set {Timer::on::off} to false
set {Timer::toggle} to false
send "{@prefix} &cDer Timer wurde ausgeschalten."
send "{@prefix} &aWillst &6du &aden Timer reseten?%newline%&aWenn ja klicke <tooltip:&aDrücke drauf um den Timer zu reseten&r><command:/timer offreset>&6hier<reset>&a drauf."
#-----------------------------------------------------------------------------------------#
if arg-1 is "on":
set {Timer::on::off} to true
send "{@prefix} &aDer Timer wurde angeschalten."
if {Timer::on::off} is true:
if arg-1 is "resume":
set {Timer::toggle} to true
broadcast "{@prefix} &2Der &6Timer&2 läuft weiter."
if arg-1 is "reset":
set {Timer::toggle} to "reset"
set {Timer::seconds} to {Timer::seconds} - {Timer::seconds}
set {Timer::minutes} to {Timer::minutes} - {Timer::minutes}
set {Timer::hours} to {Timer::hours} - {Timer::hours}
set {Timer::seconds::two} to {Timer::seconds::two} - {Timer::seconds::two}
set {Timer::minutes::two} to {Timer::minutes::two} - {Timer::minutes::two}
set {Timer::hours::two} to {Timer::hours::two} - {Timer::hours::two}
broadcast "{@prefix} &2Der &6Timer&2 wurde resetet."
if arg-1 is "start":
set {Timer::toggle} to true
broadcast "{@prefix} &2Der &6Timer&2 wurde gestartet."
if arg-1 is "restart":
set {Timer::toggle} to true
set {Timer::seconds} to {Timer::seconds} - {Timer::seconds}
set {Timer::minutes} to {Timer::minutes} - {Timer::minutes}
set {Timer::hours} to {Timer::hours} - {Timer::hours}
set {Timer::seconds::two} to {Timer::seconds::two} - {Timer::seconds::two}
set {Timer::minutes::two} to {Timer::minutes::two} - {Timer::minutes::two}
set {Timer::hours::two} to {Timer::hours::two} - {Timer::hours::two}
set {Timer::toggle} to "restart"
broadcast "{@prefix} &2Der &6Timer&2 wurde neugestartet."
if arg-1 is "stop":
set {Timer::toggle} to false
broadcast "{@prefix} &2Der &6Timer&2 wurde gestopt."
else:
send "{@prefix} &cDer Command Funktioniert so nicht."
#-----------------------------------------------------------------------------------------#
if {Timer::on::off} is false:
if arg-1 isn't "on" or "off" or "offreset":
set {Timer::on::off} to true
broadcast "{@prefix} &aDer Timer wurde angeschalten."
if arg-1 is "resume":
set {Timer::toggle} to true
broadcast "{@prefix} &2Der &6Timer&2 läuft weiter."
if arg-1 is "reset":
set {Timer::toggle} to "reset"
set {Timer::seconds} to {Timer::seconds} - {Timer::seconds}
set {Timer::minutes} to {Timer::minutes} - {Timer::minutes}
set {Timer::hours} to {Timer::hours} - {Timer::hours}
set {Timer::seconds::two} to {Timer::seconds::two} - {Timer::seconds::two}
set {Timer::minutes::two} to {Timer::minutes::two} - {Timer::minutes::two}
set {Timer::hours::two} to {Timer::hours::two} - {Timer::hours::two}
broadcast "{@prefix} &2Der &6Timer&2 wurde resetet."
if arg-1 is "start":
set {Timer::toggle} to true
broadcast "{@prefix} &2Der &6Timer&2 wurde gestartet."
if arg-1 is "restart":
set {Timer::toggle} to true
set {Timer::seconds} to {Timer::seconds} - {Timer::seconds}
set {Timer::minutes} to {Timer::minutes} - {Timer::minutes}
set {Timer::hours} to {Timer::hours} - {Timer::hours}
set {Timer::seconds::two} to {Timer::seconds::two} - {Timer::seconds::two}
set {Timer::minutes::two} to {Timer::minutes::two} - {Timer::minutes::two}
set {Timer::hours::two} to {Timer::hours::two} - {Timer::hours::two}
set {Timer::toggle} to "restart"
broadcast "{@prefix} &2Der &6Timer&2 wurde neugestartet."
if arg-1 is "stop":
set {Timer::toggle} to false
broadcast "{@prefix} &2Der &6Timer&2 wurde gestopt."
#-----------------------------------------------------------------------------------------#
every 1 seconds:
if {Timer::toggle} is true or "restart":
if {Timer::on::off} is true:
set {Timer::seconds} to {Timer::seconds} + 1
send action bar "&8«&6Der Timer ist pausiert&8»" to all players
#-----------------------------------------------------------------------------------------#
if {Timer::toggle} is "reset":
if {Timer::on::off} is true:
send action bar "&8«&6Der Timer ist aus&8»" to all players
#-----------------------------------------------------------------------------------------#
if {Timer::toggle} is false:
if {Timer::on::off} is true:
send action bar "&8«&6Der Timer ist pausiert&8»" to all players
#-----------------------------------------------------------------------------------------#
if {Timer::seconds::two} is 6:
set {Timer::minutes} to {Timer::minutes} + 1
set {Timer::seconds::two} to {Timer::seconds::two} - {Timer::seconds::two}
set {Timer::seconds} to {Timer::seconds} - {Timer::seconds} -1
if {Timer::minutes::two} is 6:
set {Timer::hours} to {Timer::hours} + 1
set {Timer::seconds} to {Timer::seconds} - {Timer::seconds} - 1
set {Timer::minutes::two} to {Timer::minutes::two} - {Timer::minutes::two}
set {Timer::minutes} to {Timer::minutes} - {Timer::minutes}
#-----------------------------------------------------------------------------------------#
if {Timer::seconds} is 9:
set {Timer::seconds} to {Timer::seconds} - {Timer::seconds} - 1
set {Timer::seconds::two} to {Timer::seconds::two} + 1
if {Timer::minutes} is 9:
if {Timer::seconds::two} is 6:
set {Timer::minutes} to {Timer::minutes} - {Timer::minutes}
set {Timer::seconds} to {Timer::seconds} - {Timer::seconds} - 1
set {Timer::seconds::two} to {Timer::seconds::two} - {Timer::seconds::two}
set {Timer::minutes::two} to {Timer::minutes::two} + 1
if {Timer::hours} is 9:
if {Timer::minutes::two} is 6:
if {Timer::seconds::two} is 6:
set {Timer::minutes::two} to {Timer::minutes::two} - {Timer::minutes::two}
set {Timer::minutes} to {Timer::minutes} - {Timer::minutes} -1
set {Timer::seconds} to {Timer::seconds} - {Timer::seconds} - 1
set {Timer::hours::two} to {Timer::hours::two} + 1
#-----------------------------------------------------------------------------------------#
Editor is loading...