Jump to content

giving a new player 30 minutes of grace period.


superzoom11

Recommended Posts

Here you go! 

every second:
    loop all players:
        add 1 to {s::%loop-player's uuid%}
        if {s::%loop-player's uuid%} > 59:
            remove 60 from {s::%loop-player's uuid%} 
            add 1 to {m::%loop-player's uuid%}
        if {m::%loop-player's uuid%} > 59:
            remove 60 from {m::%loop-player's uuid%}
            add 1 to {h::%loop-player's uuid%}
        if {h::%loop-player's uuid%} > 23:
            remove 24 from {h::%loop-player's uuid%}
            add 1 to {d::%loop-player's uuid%}

command /playtime [<offlineplayer>]:
    trigger:
        arg isn't set:
            wait 1 tick
            send ""
            send "&f&l    YOUR PLAYTIME (&7&l%player%&f)"
            send ""
            send "&f&l  SECONDS:&7 %{s::%player's uuid%}%"
            send "&f&l  MINUTES:&7 %{m::%player's uuid%}%"
            send "&f&l  HOURS:&7 %{h::%player's uuid%}%"
            send "&f&l  DAYS:&7 %{d::%player's uuid%}%"
            send ""
        else:
            wait 1 tick
            send ""
            send "&f&l    PLAYTIME OF &7&l%arg%"
            send ""
            send "&f&l  SECONDS:&7 %{s::%arg's uuid%}%"
            send "&f&l  MINUTES:&7 %{m::%arg's uuid%}%"
            send "&f&l  HOURS:&7 %{h::%arg's uuid%}%"
            send "&f&l  DAYS:&7 %{d::%arg's uuid%}%"
            send ""

on damage:
    attacker is a player
    Victim is a player
    {m::%victim%} is smaller than 30
    cancel event

 

Hello, I'm Nolan!


Cool Links

Vote Please - bit.ly/3tMXajE

MC Server - bit.ly/3hqYAOy


Please leave a like if I helped!


 

 

Link to comment
Share on other sites

On 10/12/2020 at 10:50 AM, ChunkerDunkers said:

Here you go! 


every second:
    loop all players:
        add 1 to {s::%loop-player's uuid%}
        if {s::%loop-player's uuid%} > 59:
            remove 60 from {s::%loop-player's uuid%} 
            add 1 to {m::%loop-player's uuid%}
        if {m::%loop-player's uuid%} > 59:
            remove 60 from {m::%loop-player's uuid%}
            add 1 to {h::%loop-player's uuid%}
        if {h::%loop-player's uuid%} > 23:
            remove 24 from {h::%loop-player's uuid%}
            add 1 to {d::%loop-player's uuid%}

command /playtime [<offlineplayer>]:
    trigger:
        arg isn't set:
            wait 1 tick
            send ""
            send "&f&l    YOUR PLAYTIME (&7&l%player%&f)"
            send ""
            send "&f&l  SECONDS:&7 %{s::%player's uuid%}%"
            send "&f&l  MINUTES:&7 %{m::%player's uuid%}%"
            send "&f&l  HOURS:&7 %{h::%player's uuid%}%"
            send "&f&l  DAYS:&7 %{d::%player's uuid%}%"
            send ""
        else:
            wait 1 tick
            send ""
            send "&f&l    PLAYTIME OF &7&l%arg%"
            send ""
            send "&f&l  SECONDS:&7 %{s::%arg's uuid%}%"
            send "&f&l  MINUTES:&7 %{m::%arg's uuid%}%"
            send "&f&l  HOURS:&7 %{h::%arg's uuid%}%"
            send "&f&l  DAYS:&7 %{d::%arg's uuid%}%"
            send ""

on damage:
    attacker is a player
    Victim is a player
    {m::%victim%} is smaller than 30
    cancel event

 

yikes

Discord: MrScopes#5548

Link to comment
Share on other sites

  • 4 weeks later...

First off this is so simple,

 

On damage:

    If played time of attacker is less than 30 minutes:

        cancel event

    Else if played time of victim is less than 30 minutes:

        cancel event

 

2nd. Do not post on threads with over a month of inactivity. Requesting lock for necropost.

image.png.0e22da98cfa645df5b08a5452f9b3711.png

If I helped you add a reaction to my post.

 

First Joined Oct 29 15:01 GMT 2017

VIP since 9/26/2020

Link to comment
Share on other sites

  • Tres locked this topic
Guest
This topic is now closed to further replies.
×
×
  • Create New...