More Audit Things + Code Cleanup + SaberException Added for Debugging
This commit is contained in:
@@ -6,10 +6,12 @@ package com.massivecraft.factions.util;
|
||||
import com.google.common.reflect.TypeToken;
|
||||
import com.google.gson.Gson;
|
||||
import com.google.gson.GsonBuilder;
|
||||
import com.massivecraft.factions.cmd.audit.FactionLogs;
|
||||
import org.bukkit.Bukkit;
|
||||
|
||||
import java.io.*;
|
||||
import java.lang.reflect.Type;
|
||||
import java.util.Map;
|
||||
|
||||
public class JSONUtils {
|
||||
public static Gson gson = (new GsonBuilder()).enableComplexMapKeySerialization().create();
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
package com.massivecraft.factions.util.exceptions;
|
||||
|
||||
/**
|
||||
* @author Saser
|
||||
*/
|
||||
|
||||
public abstract class SaberException extends Exception {
|
||||
public SaberException(String message) {
|
||||
super(message);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
package com.massivecraft.factions.util.exceptions.impl;
|
||||
|
||||
import com.massivecraft.factions.util.exceptions.SaberException;
|
||||
|
||||
/**
|
||||
* @author Saser
|
||||
*/
|
||||
public class DiscordException extends SaberException {
|
||||
public DiscordException(String message) {
|
||||
super(message);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user