diff --git a/pom.xml b/pom.xml
index b65f5c29..1ed93eb1 100644
--- a/pom.xml
+++ b/pom.xml
@@ -5,10 +5,10 @@
4.0.0
me.leoko.advancedban
AdvancedBan
- 2.1.6
+ 2.1.7
jar
- SNAPSHOT
+ RELEASE
UTF-8
false
true
diff --git a/src/main/java/me/leoko/advancedban/utils/Command.java b/src/main/java/me/leoko/advancedban/utils/Command.java
index c314efce..9eb87290 100644
--- a/src/main/java/me/leoko/advancedban/utils/Command.java
+++ b/src/main/java/me/leoko/advancedban/utils/Command.java
@@ -233,11 +233,18 @@ public enum Command {
Punishment mute = PunishmentManager.get().getMute(uuid);
Punishment ban = PunishmentManager.get().getBan(uuid);
+ String cached = MessageManager.getMessage("Check.Cached", false);
+ String notCached = MessageManager.getMessage("Check.NotCached", false);
+
+ boolean nameCached = PunishmentManager.get().isCached(name);
+ boolean ipCached = PunishmentManager.get().isCached(ip);
+ boolean uuidCached = PunishmentManager.get().isCached(uuid);
+
Object sender = input.getSender();
- MessageManager.sendMessage(sender, "Check.Header", true, "NAME", name);
- MessageManager.sendMessage(sender, "Check.UUID", false, "UUID", uuid);
+ MessageManager.sendMessage(sender, "Check.Header", true, "NAME", name, "CACHED", nameCached ? cached : notCached);
+ MessageManager.sendMessage(sender, "Check.UUID", false, "UUID", uuid, "CACHED", uuidCached ? cached : notCached);
if (Universal.get().hasPerms(sender, "ab.check.ip")) {
- MessageManager.sendMessage(sender, "Check.IP", false, "IP", ip);
+ MessageManager.sendMessage(sender, "Check.IP", false, "IP", ip, "CACHED", ipCached ? cached : notCached);
}
MessageManager.sendMessage(sender, "Check.Geo", false, "LOCATION", loc == null ? "failed!" : loc);
MessageManager.sendMessage(sender, "Check.Mute", false, "DURATION", mute == null ? "§anone" : mute.getType().isTemp() ? "§e" + mute.getDuration(false) : "§cperma");
diff --git a/src/main/resources/Messages.yml b/src/main/resources/Messages.yml
index c63f0d2c..bf7f9afe 100644
--- a/src/main/resources/Messages.yml
+++ b/src/main/resources/Messages.yml
@@ -230,13 +230,15 @@ ChangeReason:
Check:
Usage: "&cUsage &8\xbb &7&o/check [Name]"
- Header: "&7Checking &e&o%NAME%"
- UUID: "&cUUID &8\xbb &7%UUID%"
- IP: "&cIP &8\xbb &7%IP%"
+ Header: "&7Checking &e&o%NAME% &8(%CACHED%&8)"
+ UUID: "&cUUID &8\xbb &7%UUID% &8(%CACHED%&8)"
+ IP: "&cIP &8\xbb &7%IP% &8(%CACHED%&8)"
Geo: "&cCountry &8\xbb &7%LOCATION%"
Mute: "&cMuted &8\xbb &7%DURATION%"
MuteReason: " &cReason &8\xbb &7%REASON%"
Ban: "&cBanned &8\xbb &7%DURATION%"
BanReason: " &cReason &8\xbb &7%REASON%"
Warn: "&cWarns &8\xbb &7%COUNT%"
- NotFound: "&cSorry we have not been able to find %NAME%"
\ No newline at end of file
+ NotFound: "&cSorry we have not been able to find %NAME%"
+ Cached: "&a&ocached"
+ NotCached: "&c&onot cached"
\ No newline at end of file