Add header to every class as per new coding standards.

This commit is contained in:
Keir Nellyer 2016-04-07 14:44:27 +01:00
parent 390b2878dc
commit 36e79a1504
6 changed files with 14 additions and 2 deletions

View File

@ -9,6 +9,10 @@ import java.util.concurrent.TimeUnit;
import mineplex.serverdata.data.Data;
import org.apache.commons.lang3.RandomStringUtils;
/**
* Contains data about a report.
* Active/open reports have their instances are stored in Redis for cross-server access.
*/
public class Report implements Data
{

View File

@ -8,7 +8,7 @@ import org.bukkit.Material;
import mineplex.core.common.util.C;
/**
* Contains all the reasons a player can be reported for.
* Contains the reasons a player can be reported for.
* @author iKeirNez
*/
public enum ReportCategory

View File

@ -47,7 +47,6 @@ import redis.clients.jedis.exceptions.JedisConnectionException;
* ReportManager hooks into a synchronized network-wide report system
* with methods for updating/fetching/closing reports in real time.
* @author Ty, iKeirNez
*
*/
public class ReportManager {

View File

@ -11,6 +11,9 @@ import org.bukkit.event.player.PlayerJoinEvent;
import org.bukkit.event.player.PlayerQuitEvent;
import org.bukkit.plugin.java.JavaPlugin;
/**
* Main class for this module, handles initialization and disabling of the module.
*/
public class ReportPlugin extends MiniPlugin
{
private final ReportManager _reportManager;

View File

@ -9,6 +9,9 @@ import mineplex.serverdata.database.column.ColumnVarChar;
import org.bukkit.plugin.java.JavaPlugin;
/**
* Responsible for all database related operations for this module.
*/
public class ReportRepository extends MinecraftRepository
{
private static String CREATE_TICKET_TABLE = "CREATE TABLE IF NOT EXISTS reportTickets (reportId INT NOT NULL, eventDate LONG, playerId INT NOT NULL, server VARCHAR(50), closerId INT NOT NULL, result VARCHAR(25), reason VARCHAR(100), PRIMARY KEY (reportId), FOREIGN KEY (playerId) REFERENCES accounts(id), FOREIGN KEY (closerId) REFERENCES accounts(id));";

View File

@ -2,6 +2,9 @@ package mineplex.core.report;
import org.bukkit.ChatColor;
/**
* Contains all possible outcomes for a report.
*/
public enum ReportResult
{
ACCEPTED("Global.AcceptedReportsCount", ChatColor.GREEN, "Accept Report (Punish Player)", "Accepted (Player Received Punishment)"),