(Skript) Mh_Reports
♦ Where does the reported player data go? ♦
Initially I had done this with standard script variables but after some time
I started to wonder if I could do this in a way that the player data
reported didn't need to go to the "script variable cluster", so I used the
following method.
♦ Method used to save data: ♦
Reported player data is stored in files saved in the directory
of the script in a folder called "reports", each player reported will have a
file called "NamePlayer.txt" with the following data:
º Data: Day and time the player was reported
º Sender: Player who made the report
º Player Reportado: Reported Player
º Motivo: Why player was reported
º Prioridade: Number defining relevance
Each information being separated by ¨
Each report being separated by |
in the following format:
Data: timespan¨Sender: player¨Player reportado: player¨Motivo: string¨ prioridade: integer|2° report|3° report...
♦ Priorities: ♦
Priorities are used to organize a player's reports menu
by relevance so instead of checking each of the reports you can
go straight to the one that has the most relevance, priorities are defined
through keywords.
Priority levels range from number 1 to 4 with number 1 being the most
important and the number 4 less important, and it is also possible
change all keywords of each priority and also the icon
of each priority is displayed.
Priorities will appear in the following format when you open
player reports:
Being the priority 1 red banner, priority 2 orange banner,
priority 3 yellow banner and priority 4 white banner.
♦ Comands: ♦
All reported players:
/reports
To view a player's reports:
/reports <player>
To report a player:
/report <player> <reason>
To remove reports from a player:
/reports <clear> <player>
To remove all reports from all players:
/reports <clear>
♦ Important: ♦
Each line has an importance if you don't know how important it is under any circumstances edit the file.
Permission to view or delete reports:
reports.adm
possible addons:
skUtilities by tim740
SkQuery by btk5h
SkBee by ShaneBee
Special
Please rate it would help a lot if you give it 5 stars