Fix error from last commit (git forced me to commit unfinished files due to the merge).

This commit is contained in:
Keir 2015-12-07 18:13:48 +00:00
parent 67b3fe1d23
commit 31d05cdb3b
2 changed files with 7 additions and 6 deletions

View File

@ -39,6 +39,11 @@ public class MessageSnapshotManager
public static final String CHANNEL_DEPLOY = "chatsnap:deploy";
public static final String CHANNEL_DESTROY = "chatsnap:destroy";
public static String getChatLogUrl(String token)
{
return URL_PREFIX + token;
}
// There aren't any List or Set caching implementations
// For an easy work around, we store values as the Key
// For the value we just use some dummy object
@ -102,11 +107,6 @@ public class MessageSnapshotManager
return matches;
}
public String getChatLogUrl(String token)
{
return URL_PREFIX + token;
}
public void publishChatLog(String token, UUID playerUUID)
{
Set<MessageSnapshot> snapshots = getSnapshots(playerUUID);

View File

@ -4,6 +4,7 @@ import java.util.Map;
import org.bukkit.scheduler.BukkitRunnable;
import mineplex.core.chatsnap.MessageSnapshotManager;
import mineplex.core.common.jsonchat.ClickEvent;
import mineplex.core.common.jsonchat.JsonMessage;
import mineplex.core.common.util.C;
@ -45,7 +46,7 @@ public class ReportHandlerMessageTask extends BukkitRunnable
+ "\n\n"
+ C.cAqua + "Suspect: " + C.cGold + _report.getPlayerName()
+ "\n"
+ (_report.hasChatSnapToken() ? C.cAqua + "Chat Log: " + C.cGold + _reportManager.getChatLogUrl(_report.getChatSnapToken()) + "\n" : "")
+ (_report.hasChatSnapToken() ? C.cAqua + "Chat Log: " + C.cGold + MessageSnapshotManager.getChatLogUrl(_report.getChatSnapToken()) + "\n" : "")
+ "\n"
+ C.cAqua + "Type " + C.cGold + "/reportclose " + reportId + " <reason>" + C.cAqua + " to close this report."
+ BORDER).click(ClickEvent.SUGGEST_COMMAND, "/reportclose " + reportId);