Skip to content

Commit

Permalink
DP | No Votes Logic
Browse files Browse the repository at this point in the history
  • Loading branch information
Nik0-0 committed Sep 2, 2024
1 parent 88257b8 commit 3d16068
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,6 @@ execute if score map nn_map_vote_3 < map nn_map_vote_2 run tag @e[tag=map_3] rem
tellraw @a [{"text":" \u2139 | Most voted map: ","color":"gray"},{"selector":"@e[tag=sel]","color":"yellow"}]
scoreboard players set min nn_lobby 0
scoreboard players set sec nn_lobby 10
execute unless entity @e[tag=sel] run function nnb_main:reset_round
tellraw @a {"text":" \u2139 | Map has been loaded!","color":"gray","type":"text"}
scoreboard players set start_timer nn_lobby 0
1 change: 1 addition & 0 deletions nnb_main/data/nnb_main/function/reset_round.mcfunction
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
tellraw @s "<yellow> \u26a0 | No Votes - Restarting"
14 changes: 12 additions & 2 deletions nnb_main/main.jmc
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,8 @@ function round_manager() {
scoreboard players set min nn_lobby 0;
scoreboard players set sec nn_lobby 10;


// No votes
execute unless entity @e[tag=sel] run reset_round();

Text.tellraw(@a, "&<gray> ℹ | Map has been loaded!");
scoreboard players set start_timer nn_lobby 0; // Stop the timer
Expand All @@ -177,8 +178,17 @@ function round_manager() {



// 💀 Handle French People (fr tho handle voting stuff)


// 🔄️ No Votes - Reset Round
function reset_round() {
Text.tellraw(@s, "<yellow> ⚠ | No Votes - Restarting");
coreboard players set start_timer nn_lobby 0;
scoreboard players set phase nn_lobby 4;
}


// 💀 Handle French People (fr tho handle voting stuff)
function handle_french() {

// 3
Expand Down

0 comments on commit 3d16068

Please sign in to comment.