Add header to every class as per new coding standards.
This commit is contained in:
parent
390b2878dc
commit
36e79a1504
@ -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
|
||||
{
|
||||
|
||||
|
@ -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
|
||||
|
@ -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 {
|
||||
|
||||
|
@ -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;
|
||||
|
@ -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));";
|
||||
|
@ -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)"),
|
||||
|
Loading…
Reference in New Issue
Block a user