Commit 8b30b395 authored by Tommy Ang's avatar Tommy Ang 🤣

Fix header and footer to use skript-mirror

parent da8c5e79
......@@ -4,6 +4,9 @@
# Scripted by TomYaMee
#
import:
org.bukkit.entity.Player
variables:
{re.%player%.day} = 0
{re.%player%.hour} = 0
......@@ -1157,22 +1160,14 @@ on join:
else:
set {_ping} to "&e%{_ping}%"
set {_player} to size of all players
#set {_max} to max players #Umbaska
set {_max} to max players count
set tablist header of player to "&6You are now playing &lRammyCraft&r&6!%nl%&aOnline players: %{_player}%/%{_max}%"
player.setPlayerListHeader("&6You are now playing &lRammyCraft&r&6!%nl%&aOnline players: %{_player}%/%{_max}%")
if {re.%player%.current.hour} is more than 0:
set tablist footer of player to "Current Session: %{re.%player%.current.hour}% hour(s) | Ping : %{_ping}%"
player.setPlayerListFooter("Current Session: %{re.%player%.current.hour}% hour(s) | Ping : %{_ping}%")
else if {re.%player%.current.minute} is more than 0:
set tablist footer of player to "Current Session: %{re.%player%.current.minute}% minute(s) | Ping : %{_ping}%"
player.setPlayerListFooter("Current Session: %{re.%player%.current.minute}% minute(s) | Ping : %{_ping}%")
else if {re.%player%.current.second} is more than 0:
set tablist footer of player to "Current Session: %{re.%player%.current.second}% second(s) | Ping : %{_ping}%"
#on join:
# while player is online:
# set {_ping} to player's ping
# loop all players:
# set tab score of player to {_ping} for loop-player
# wait 3 seconds
player.setPlayerListFooter("Current Session: %{re.%player%.current.second}% second(s) | Ping : %{_ping}%")
on quit:
clear {re.%player%.current.hour}
......@@ -1181,7 +1176,7 @@ on quit:
clear {pwhisper.%player%}
on server ping:
set the motd to "&eRammyCraft RP &aAlpha &9v1.14.2-0 &6EXTREME TESTING"
set the motd to "&eRammyCraft RP &9v1.14.2-0 &6https://www.rammycraft.pw"
#set the motd to "&eRammyCraft RP &aAlpha &9v1120.0 &6Feedback is welcomed!"
#set the motd to "&eServer undergoing host transfer maintenance"
......@@ -1196,7 +1191,5 @@ command /update:
broadcast "&6RammyCraft has been updated to v1.14.2-0 ! Head over to our Facebook group to check for changelog."
on join:
wait 1 seconds
set displayed skin of player to player's skin
message "&eServer has been updated to &bv1.14.2-0&e."
message "&eFor full update details, head over to https://web2.rammycraft.pw/updates/1.12.2.html"
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