A Note Script

  • 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 community!

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

LauchGame

Member
Nov 24, 2019
11
1
1
Category: Chat

Suggested name: A Note Script

Spigot/Skript Version: 1.12.2 / Skript newest

What I want:
With this script it should be the case that if you do a command for example /Note add %player% Test that it is then saved and if you enter /Note %player% list that you can see what has already been entered but you should see everything that was written there at that time was not only when something new comes in everything!

Ideas for commands:
/Note add %player% test
and
/Note list %player%

Ideas for permissions:

none

When I'd like it by: A reasonable time
 
Code:
command notes <text> <offline player> [<text>]:
    usage: /notes (add|list) <player> [<note>]
    trigger:
        if arg-1 is "add":
            if arg-3 is set:
                add arg-3 to {notes::%player's uuid%::%arg-2's uuid%::*}
                send "&7[&cNOTES&7] Successfully noted %arg-2%&7!"
            else:
                send "&7[&cNOTES&7] You must set the third argument!"
        else if arg-1 is "list":
            send "&7[&cNOTES&7] Notes for %arg-2%&7:"
            loop {notes::%player's uuid%::%arg-2's uuid%::*}:
                send "&7[&cNOTES&7] %loop-value%"
        else:
            send "&7[&cNOTES&7] Invalid arguments! Put in either ""add"" or ""list"" for the first argument!"