mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-02 06:28:52 +00:00
Added pastebin reporting. This should make ticket reporting life so much easier, it's like a requirement.
This commit is contained in:
1 parent
137d968a70
commit
e298173735
4 files changed
+273
-1
No files matched your search
@@ -19,6 +19,8 @@
|
||||
package net.h31ix.anticheat;
|
||||
|
||||
import net.h31ix.anticheat.util.Configuration;
|
||||
import net.h31ix.anticheat.util.PastebinReport;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
@@ -95,6 +97,17 @@ public class CommandHandler implements CommandExecutor
|
||||
}
|
||||
}
|
||||
|
||||
public void handlePastebin(CommandSender cs)
|
||||
{
|
||||
if (Permission.SYSTEM_REPORT.get(cs))
|
||||
{
|
||||
PastebinReport report = new PastebinReport();
|
||||
cs.sendMessage(GREEN + "Your URL is: " + report.getURL());
|
||||
cs.sendMessage("If you are making a new issue, use this tool every time.");
|
||||
cs.sendMessage("It will help us resolve your issues faster.");
|
||||
}
|
||||
}
|
||||
|
||||
public void handleXRay(CommandSender cs, String[] args)
|
||||
{
|
||||
if (Permission.SYSTEM_XRAY.get(cs))
|
||||
@@ -248,6 +261,7 @@ public class CommandHandler implements CommandExecutor
|
||||
cs.sendMessage(base + GREEN + "xray [user]" + WHITE + " - check user's xray levels");
|
||||
cs.sendMessage(base + GREEN + "spy [user]" + WHITE + " - spy on a user in secret");
|
||||
cs.sendMessage(base + GREEN + "help" + WHITE + " - access this page");
|
||||
cs.sendMessage(base + GREEN + "pastebin" + WHITE + " - create a anticheat report");
|
||||
cs.sendMessage(base + GREEN + "update" + WHITE + " - check update status");
|
||||
cs.sendMessage("-----------------------------------------------------");
|
||||
}
|
||||
@@ -493,6 +507,10 @@ public class CommandHandler implements CommandExecutor
|
||||
{
|
||||
handleHelp(cs);
|
||||
}
|
||||
else if (args[0].equalsIgnoreCase("pastebin"))
|
||||
{
|
||||
handlePastebin(cs);
|
||||
}
|
||||
else if (args[0].equalsIgnoreCase("report"))
|
||||
{
|
||||
handleReport(cs);
|
||||
|
||||
Reference in new issue
Block a user