Commit 4fb13bd3 authored by Tommy Ang's avatar Tommy Ang 🤣

Fix majority sleep not excluding exploreworld

parent b3431406
......@@ -73,6 +73,7 @@ on script load:
set {day} to {_date::2}
set {month} to {_date::1}
set {year} to {_date::3}
clear {pe.sleep::*}
every 1 hour:
set {_time} to "%now%"
......@@ -1203,13 +1204,14 @@ on inventory click:
command /update:
executable by: console
trigger:
broadcast "&6RammyCraft has been updated to v1.13.2-1 ! Head over to our Facebook group to check for changelog."
broadcast "&eServer has been updated to &bv1.15.2-4&e!"
broadcast "&eRead more at &bhttps://www.rammycraft.pw/update/rammycraft-v1.15.2-4-potato-town-update"
on join:
#message "&eServer has been updated to &bv1.15.2-1&e."
message "&eNew article has been published on RammyCraft Website."
message "&eDev Update: Minecraft 1.16 and Nether World Reset."
message "&eRead more at https://www.rammycraft.pw/blog/dev-update-minecraft-1.16-and-world-management-changes"
message "&eServer has been updated to &bv1.15.2-4&e."
# message "&eNew article has been published on RammyCraft Website."
# message "&eDev Update: Minecraft 1.16 and Nether World Reset."
message "&eRead more at &bhttps://www.rammycraft.pw/update/rammycraft-v1.15.2-4-potato-town-update"
#message "&eFor full update details, head over to https://www.rammycraft.pw/update/rammycraft-v1.15.2-1-shop-update"
# wait 1 second
# message "&e&n&lv1.14.4 Testing Phase"
......@@ -1218,7 +1220,10 @@ on join:
# message "&eTime: 6 PM - 630 PM (30 minutes)"
on bed enter:
set {_numofplayersreq} to rounded down online player count / 10 * 5
loop all players:
loop-player is in world "world"
add loop-player to {_playersInWorld::*}
set {_numofplayersreq} to rounded down size of {_playersInWorld::*} / 2
# Add player to count for messages
player is in world "world"
add player to {pe.sleep::*}
......@@ -1236,9 +1241,12 @@ on bed enter:
stop
on bed leave:
loop all players:
loop-player is in world "world"
add loop-player to {_playersInWorld::*}
set {_numofplayersreq} to rounded down size of {_playersInWorld::*} / 2
player is in world "world"
remove player from {pe.sleep::*}
set {_numofplayersreq} to rounded down online player count / 10 * 5
# Only message if its thunderstorm or night time
if is thundering:
broadcast formatted "&e%player% &6is now awake. &b%size of {pe.sleep::*}% &6out of &b%{_numofplayersreq}% &6required players are asleep."
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment