Admin Notes

Share scripts you wrote for Denizen-Bukkit here!
Post Reply
Spirion
New
New
Posts: 3
Joined: May 12th, 2020, 3:39 pm

Admin Notes

Post by Spirion » May 12th, 2020, 3:53 pm

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
Last edited by Spirion on May 16th, 2020, 3:37 am, edited 4 times in total.

Spirion
New
New
Posts: 3
Joined: May 12th, 2020, 3:39 pm

Re: Admin Notes

Post by Spirion » May 12th, 2020, 3:53 pm

This is the first script I post because I find it useful. Any comment to improve is welcome :)

User avatar
mcmonkey
Site Admin
Site Admin
Posts: 267
Joined: August 5th, 2016, 7:27 pm
Location: Los Angeles, California, USA
Contact:

Re: Admin Notes

Post by mcmonkey » May 12th, 2020, 10:17 pm

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!!!
Denizen lead developer. On Discord as mcmonkey#6666.

Spirion
New
New
Posts: 3
Joined: May 12th, 2020, 3:39 pm

Re: Admin Notes

Post by Spirion » May 13th, 2020, 3:54 am

I've updated the script with the improvements you told me about

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest