Page 1 of 1

Admin Notes

Posted: May 12th, 2020, 3:53 pm
by Spirion
This script is meant to read, add and delete admin notes about users. Did he break a block? Was he arguing with another user? Write it all down so you have complete information when you need to ban him

When a user logs into the server, all other users will see their default input message
Image

But the administrators will see their login message, adding at the end the number of notes it have. In addition, the admins can click on that notes information to see them
Image

You can also consult this information at any time without having to wait for the user to enter the server, just type /notes [player]
Image

If this user has more than 5 notes, the information will be displayed on different pages. By clicking on >>> you can turn the page
Image

To add new notes write /notes add [player] [note here]. It will automatically add the administrator name and the date at the end.
To delete a note, write /notes del [player] [index].

Here's the haste link for the script: https://one.denizenscript.com/haste/69075

Re: Admin Notes

Posted: May 12th, 2020, 3:53 pm
by Spirion
This is the first script I post because I find it useful. Any comment to improve is welcome :)

Re: Admin Notes

Posted: May 12th, 2020, 10:17 pm
by mcmonkey
Bot report:
Image

- Use the <empty> tag.
- I see a lot like <[toNotes].sub_int[4]>... get rid of the _int stuff, those are special case tools that are rarely ever needed.
- .type[RUN_COMMAND] on a click tag is redundant: that's the default.
- - if <[loop_index]> = 5: that should be ==.
- <&click[/ex run adminNotesDelPages that's a super big no-no. Use a command script!!!

Re: Admin Notes

Posted: May 13th, 2020, 3:54 am
by Spirion
I've updated the script with the improvements you told me about