mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-01 22:14:49 +00:00
Fix typos and place a placeholder in Pastebin Reports.
This commit is contained in:
1 parent
ecb285f938
commit
bbb003c5d4
2 files changed
+6
-2
No files matched your search
@@ -169,7 +169,7 @@ public class Anticheat extends JavaPlugin {
|
||||
Updater updater = new Updater(this, "anticheat", this.getFile(), Updater.UpdateType.DEFAULT, false);
|
||||
update = updater.getResult() != Updater.UpdateResult.NO_UPDATE;
|
||||
if (verbose) {
|
||||
getLogger().log(Level.INFO, "Update avaliable: " + update);
|
||||
getLogger().log(Level.INFO, "Update available: " + update);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -67,7 +67,7 @@ public class PastebinReport {
|
||||
|
||||
private void createReport(Player player) {
|
||||
report.append("------------ AntiCheat Report - " + format.format(date) + " ------------" + '\n');
|
||||
report.append("Version: " + Anticheat.getVersion() + '\n');
|
||||
report.append("Version: " + Anticheat.getVersion() + (Anticheat.isUpdated() ? "" : " (OUTDATED)") + '\n');
|
||||
report.append("CraftBukkit: " + Bukkit.getVersion() + '\n');
|
||||
report.append("Plugin Count: " + Bukkit.getPluginManager().getPlugins().length + '\n');
|
||||
appendSystemInfo();
|
||||
@@ -91,6 +91,10 @@ public class PastebinReport {
|
||||
report.append("Players: " + Bukkit.getOnlinePlayers().length + "/" + Bukkit.getMaxPlayers() + '\n');
|
||||
}
|
||||
|
||||
private void eventHandlersDump() {
|
||||
// TODO: Get a list of plugins hooking into AntiCheat events.
|
||||
}
|
||||
|
||||
private void writeReport() throws IOException {
|
||||
File f = new File(Anticheat.getPlugin().getDataFolder() + "/report.txt");
|
||||
FileWriter r = new FileWriter(f);
|
||||
|
||||
Reference in new issue
Block a user