Hi there,
1.I'm making a saferestart and don't know how to execute all player a command.
2. At saferestart how can i do a sure word? ex: i'm execute /saferestart and it says in chat "Are you sure to do this?" And when i type yes to execute the skript below and when i type no to cancel it.
Skript »
1.I'm making a saferestart and don't know how to execute all player a command.
2. At saferestart how can i do a sure word? ex: i'm execute /saferestart and it says in chat "Are you sure to do this?" And when i type yes to execute the skript below and when i type no to cancel it.
Skript »
code_language.skript:
on command "/saferestart":
trigger:
send "&e&l»» &fEsti sigur ca vrei sa faci asta?" to player
send player title "&c&l▲ &fO restartare va fi in: &c&l▲" with subtitle "&c☠ &f&l5 minute" for 5 seconds
wait 60 seconds
send player title "&c&l▲ &fO restartare va fi in: &c&l▲" with subtitle "&c☠ &f&l4 minute" for 5 seconds
wait 60 seconds
send player title "&c&l▲ &fO restartare va fi in: &c&l▲" with subtitle "&c☠ &f&l3 minute" for 5 seconds
wait 60 seconds
send player title "&c&l▲ &fO restartare va fi in: &c&l▲" with subtitle "&c☠ &f&l2 minute" for 5 seconds
wait 60 seconds
send player title "&c&l▲ &fO restartare va fi in: &c&l▲" with subtitle "&c☠ &f&l1 minut" for 5 seconds
wait 55 seconds
send player title "&c☠ &fVei fi teleportat in Lobby &c☠" with subtitle "&f" for 2 seconds
execute player's command "/hub"
execute console command "/minecraft:stop"