playerreport

#21 - published 8 months ago

PlayerReport

PlayerReport

This is a plugin to report players with incorrect attitudes on your server, writes in mysql.

I hereby inform you that this version should be one of the final of this plugin.

I started by doing this plugin as my first time in C#, I had almost no knowledge and used other plugins as an example, that is, I learned structures like ‘while, for, foreach’ seeing and analyzing others’ code.

This plugin will be simplified, because if you are looking for something more complex, just visit https://imperialplugins.com and search for a ‘report’ made by a colleague ‘Roy’, where I hope to publish a plugin soon.

I hope ‘Roy’ was not annoyed with me when I made this plugin, it was not my intention to affect it but I needed something like this for my server, so I decided to do something for myself, my friends said to share and so I did it.

I will continue to support and correct errors if necessary.

Any bug or problem is just a comment that I will correct, you can and should comment improvements to make.

 

And to finish I added a system of notifications to the admins, the permission is RGPReport.Notify

 

Default configuration


<?xml version="1.0" encoding="utf-8"?>
<PlayerReportConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <DatabaseAddress>localhost</DatabaseAddress>
  <DatabaseUsername>root</DatabaseUsername>
  <DatabasePassword>password</DatabasePassword>
  <DatabaseName>Unturned</DatabaseName>
  <DatabaseTableName>Reports</DatabaseTableName>
  <DatabasePort>3306</DatabasePort>
  <Notifications>3</Notifications>
  <MaxCharacter>true</MaxCharacter>
  <LimCharacter>150</LimCharacter>
  <LogFile>false</LogFile>
</PlayerReportConfiguration>

Default english translation


<?xml version="1.0" encoding="utf-8"?>
<Translations xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <Translation Id="command_erro_saving" Value="An error occurred with database." />
  <Translation Id="command_player_not_found" Value="Player not found." />
  <Translation Id="command_report_yourself" Value="You can not report yourself." />
  <Translation Id="command_report_maxchar" Value="The reason for the report has exceeded the character limit." />
  <Translation Id="command_add_successful" Value="You reported the player successfully." />
  <Translation Id="new_reports_to_see_my" Value="There are new reports for you to review, {0} reports." />
  <Translation Id="new_reports_to_see" Value="There are new reports for you to review." />
</Translations>

Commands and permissions


/report <player> [reason]

Permissions: report

Report malicious players


Git changelog


f3b4b2a1916aabf 2018-04-04 14:43:39

Update :D

  • Performance, Display names, can work with logs, mysql or both.

Download

Build #21
By downloading this file, you agree to our license terms.

Repository

github.com

License

MIT

Author

fakyp