lastlog skript help

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

Zali

New Member
Oct 26, 2017
5
0
1
25
anybody have an idea why this does not work? Addons I have installed are: SkQuery, skRayFall
minecraft version: 1.12 spigot



code_language.skript:
command /lastlog <offline player>:
    trigger:
        if arg-1 is not set:
            message "&8&l>&6&l> &7Usage&8&l: &e/lastlog [player name]"
        else:
            if {lastlog.%arg-1%} is not set:
                message "&8&l>&6&l> &7That player has never joined the server!"
            else:
                send "&8&l>&6&l> &e&o%arg offlineplayer% &7last seen was &e&o%difference between now and {lastlog.%arg-1%}% &7ago!"
                send "&8&l>&6&l> &7Last log&8&l: &e&o%{lastlog.format.%player%}%"
on join:
    set {lastlog.format.%player's uuid%} to "%day%.%month%.%year% %hour%:%minutes%:%seconds%"
    set {lastlog.%player's uuid%} to now
    set {lastlog.format.%player%} to "%hour%:%minutes%:%seconds% %day%/%month%/%year%"
    set {lastlog.%player%} to now
on quit:
    set {lastlog.format.%player's uuid%} to "%day%.%month%.%year% %hour%:%minutes%:%seconds%"
    set {lastlog.%player's uuid%} to now
    set {lastlog.format.%player%} to "%hour%:%minutes%:%seconds% %day%/%month%/%year%"
    set {lastlog.%player%} to now


code_language.skript:
[06:34:25 ERROR]: ':%minutes%:%seconds%"' is not a valid item data (main.sk, line 26: set {lastlog.format.%player's uuid%} to "%day%.%month%.%year% %hour%:%minutes%:%seconds%"')
[06:34:25 ERROR]: ':%minutes%:%seconds% %day%/%month%/%year%"' is not a valid item data (main.sk, line 28: set {lastlog.format.%player%} to "%hour%:%minutes%:%seconds% %day%/%month%/%year%"')
[06:34:25 ERROR]: ':%minutes%:%seconds%"' is not a valid item data (main.sk, line 31: set {lastlog.format.%player's uuid%} to "%day%.%month%.%year% %hour%:%minutes%:%seconds%"')
[06:34:25 ERROR]: ':%minutes%:%seconds% %day%/%month%/%year%"' is not a valid item data (main.sk, line 33: set {lastlog.format.%player%} to "%hour%:%minutes%:%seconds% %day%/%month%/%year%"')
 
Its telling, how long its been online the bots of Discord.

#edit. im not sure:

upload_2017-10-27_15-47-39.png


code_language.skript:
send "%month from date now%"
 
Status
Not open for further replies.