mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-02 22:16:03 +00:00
Merge branch 'master' of github.com:h31ix/AntiCheat
This commit is contained in:
commit
9967955578
10 files changed
+127
-81
No files matched your search
@@ -47,6 +47,7 @@ public class Configuration
|
||||
private boolean verboseStartup;
|
||||
private boolean chatSpam;
|
||||
private boolean commandSpam;
|
||||
private boolean silentMode;
|
||||
private int fileLogLevel = 0;
|
||||
private String updateFolder;
|
||||
private static Language language;
|
||||
@@ -113,6 +114,11 @@ public class Configuration
|
||||
{
|
||||
return updateFolder;
|
||||
}
|
||||
|
||||
public boolean silentMode()
|
||||
{
|
||||
return silentMode;
|
||||
}
|
||||
|
||||
public int getFileLogLevel()
|
||||
{
|
||||
@@ -195,6 +201,12 @@ public class Configuration
|
||||
save();
|
||||
}
|
||||
commandSpam = config.getBoolean("System.Block command spam");
|
||||
if (config.getString("System.Silent mode") == null)
|
||||
{
|
||||
config.set("System.Silent mode", false);
|
||||
save();
|
||||
}
|
||||
silentMode = config.getBoolean("System.Silent mode");
|
||||
}
|
||||
|
||||
public String getResult(String event)
|
||||
|
||||
@@ -18,24 +18,14 @@
|
||||
|
||||
package net.h31ix.anticheat.util;
|
||||
|
||||
import java.io.BufferedReader;
|
||||
import java.io.BufferedWriter;
|
||||
import java.io.File;
|
||||
import java.io.FileWriter;
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import java.io.InputStreamReader;
|
||||
import java.io.OutputStream;
|
||||
import java.io.Writer;
|
||||
import java.io.*;
|
||||
import java.net.HttpURLConnection;
|
||||
import java.net.URL;
|
||||
import java.net.URLEncoder;
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.Date;
|
||||
|
||||
import org.bukkit.Bukkit;
|
||||
|
||||
import net.h31ix.anticheat.Anticheat;
|
||||
import org.bukkit.Bukkit;
|
||||
|
||||
public class PastebinReport
|
||||
{
|
||||
@@ -69,7 +59,7 @@ public class PastebinReport
|
||||
report.append("------------ AntiCheat Report - " + format.format(date) + " ------------" + '\n');
|
||||
report.append("Version: " + Anticheat.getVersion() + '\n');
|
||||
report.append("CraftBukkit: " + Bukkit.getVersion() + '\n');
|
||||
report.append("Plugin Count: " + Bukkit.getPluginManager().getPlugins().length);
|
||||
report.append("Plugin Count: " + Bukkit.getPluginManager().getPlugins().length + '\n');
|
||||
appendSystemInfo();
|
||||
report.append("------------Last 30 logs------------" + '\n');
|
||||
for (String log : Anticheat.getManager().getLastLogs())
|
||||
|
||||
Reference in new issue
Block a user