Skip to content
This repository has been archived by the owner on Apr 24, 2024. It is now read-only.

Commit

Permalink
Small fix - Release 5.0.2
Browse files Browse the repository at this point in the history
Former-commit-id: b3603c3
  • Loading branch information
xishift committed Jul 13, 2020
1 parent 01a8948 commit 955672b
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public boolean onCommand(@NotNull CommandSender sender, @NotNull Command command
send(sender, " &7Version: &f" + this.epicGuard.getVersion());
if (UpdateChecker.isAvailable()) {
send(sender, "");
send(sender, " &7Update available: &c&n" + UpdateChecker.getRemoteVersion());
send(sender, " &7New version is available: &c&n" + UpdateChecker.getRemoteVersion());
send(sender, " &c&ohttps://www.spigotmc.org/resources/72369/");
}
send(sender, "");
Expand All @@ -49,12 +49,17 @@ public boolean onCommand(@NotNull CommandSender sender, @NotNull Command command
switch (args[0]) {
case "stats":
send(sender, "&8&m---------------------------------------------------");
send(sender, " &6&lEpicGuard &8- &7Statistics)");
send(sender, "");
send(sender, " &8• &7Blacklisted IPs: &6" + this.epicGuard.getStorageManager().getBlacklist().size());
send(sender, " &8• &7Whitelisted IPs: &6" + this.epicGuard.getStorageManager().getWhitelist().size());
send(sender, " &6&lEpicGuard &7(Statistics)");
send(sender, " &7Version: &f" + this.epicGuard.getVersion());
if (UpdateChecker.isAvailable()) {
send(sender, "");
send(sender, " &7New version is available: &c&n" + UpdateChecker.getRemoteVersion());
send(sender, " &c&ohttps://www.spigotmc.org/resources/72369/");
}
send(sender, "");
send(sender, " &8• &7Connections/s: &6" + this.epicGuard.getConnectionPerSecond());
send(sender, " &8• &7Blacklisted IPs: &c&l" + this.epicGuard.getStorageManager().getBlacklist().size());
send(sender, " &8• &7Whitelisted IPs: &a&l" + this.epicGuard.getStorageManager().getWhitelist().size());
send(sender, " &8• &7Connections: &6&l" + this.epicGuard.getConnectionPerSecond() + "/s");
send(sender, "");
send(sender, "&8&m---------------------------------------------------");
break;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ public void execute(CommandSender sender, String[] args) {
String prefix = this.epicGuard.getMessages().prefix;
if (args.length < 1) {
send(sender, "&8&m---------------------------------------------------");
send(sender, " &6&lEpicGuard &8(Spigot version)");
send(sender, " &6&lEpicGuard &8(BungeeCord version)");
send(sender, " &7Version: &f" + this.epicGuard.getVersion());
if (UpdateChecker.isAvailable()) {
send(sender, "");
send(sender, " &7Update available: &c&n" + UpdateChecker.getRemoteVersion());
send(sender, " &7New version is available: &c&n" + UpdateChecker.getRemoteVersion());
send(sender, " &c&ohttps://www.spigotmc.org/resources/72369/");
}
send(sender, "");
Expand All @@ -44,12 +44,17 @@ public void execute(CommandSender sender, String[] args) {
switch (args[0]) {
case "stats":
send(sender, "&8&m---------------------------------------------------");
send(sender, " &6&lEpicGuard &8- &7Statistics)");
send(sender, "");
send(sender, prefix + "&7Blacklisted IPs: &6" + this.epicGuard.getStorageManager().getBlacklist().size());
send(sender, prefix + "&7Whitelisted IPs: &6" + this.epicGuard.getStorageManager().getWhitelist().size());
send(sender, " &6&lEpicGuard &7(Statistics)");
send(sender, " &7Version: &f" + this.epicGuard.getVersion());
if (UpdateChecker.isAvailable()) {
send(sender, "");
send(sender, " &7New version is available: &c&n" + UpdateChecker.getRemoteVersion());
send(sender, " &c&ohttps://www.spigotmc.org/resources/72369/");
}
send(sender, "");
send(sender, " &8• &7Connections/s: &6" + this.epicGuard.getConnectionPerSecond());
send(sender, " &8• &7Blacklisted IPs: &c&l" + this.epicGuard.getStorageManager().getBlacklist().size());
send(sender, " &8• &7Whitelisted IPs: &a&l" + this.epicGuard.getStorageManager().getWhitelist().size());
send(sender, " &8• &7Connections: &6&l" + this.epicGuard.getConnectionPerSecond() + "/s");
send(sender, "");
send(sender, "&8&m---------------------------------------------------");
break;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public GeoManager(EpicGuard epicGuard) {

if (this.shouldDownload(cityDatabase)) {
this.epicGuard.getLogger().info("Your city database is outdated, starting download operation...");
//FileUtils.downloadFile("https://github.com/xishift/EpicGuard/raw/master/files/GeoLite2-City.mmdb", cityDatabase);
FileUtils.downloadFile("https://github.com/xishift/EpicGuard/raw/master/files/GeoLite2-City.mmdb", cityDatabase);
}

try {
Expand Down

0 comments on commit 955672b

Please sign in to comment.