mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-18 20:41:37 +02:00
GeoIP already has a perm, doesn't need hidden behind essentials.seen.extra as well.
This commit is contained in:
@@ -82,15 +82,14 @@ public class Commandseen extends EssentialsCommand
|
|||||||
? Util.formatDateDiff(user.getMuteTimeout())
|
? Util.formatDateDiff(user.getMuteTimeout())
|
||||||
: _("true"))));
|
: _("true"))));
|
||||||
}
|
}
|
||||||
if (extra)
|
|
||||||
{
|
|
||||||
sender.sendMessage(_("whoisIPAddress", user.getAddress().getAddress().toString()));
|
|
||||||
final String location = user.getGeoLocation();
|
final String location = user.getGeoLocation();
|
||||||
if (location != null && (!(sender instanceof Player) || ess.getUser(sender).isAuthorized("essentials.geoip.show")))
|
if (location != null && (!(sender instanceof Player) || ess.getUser(sender).isAuthorized("essentials.geoip.show")))
|
||||||
{
|
{
|
||||||
sender.sendMessage(_("whoisGeoLocation", location));
|
sender.sendMessage(_("whoisGeoLocation", location));
|
||||||
}
|
}
|
||||||
|
if (extra)
|
||||||
|
{
|
||||||
|
sender.sendMessage(_("whoisIPAddress", user.getAddress().getAddress().toString()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -109,17 +108,17 @@ public class Commandseen extends EssentialsCommand
|
|||||||
{
|
{
|
||||||
sender.sendMessage(_("whoisBanned", showBan ? user.getBanReason() : _("true")));
|
sender.sendMessage(_("whoisBanned", showBan ? user.getBanReason() : _("true")));
|
||||||
}
|
}
|
||||||
|
final String location = user.getGeoLocation();
|
||||||
|
if (location != null && (!(sender instanceof Player) || ess.getUser(sender).isAuthorized("essentials.geoip.show")))
|
||||||
|
{
|
||||||
|
sender.sendMessage(_("whoisGeoLocation", location));
|
||||||
|
}
|
||||||
if (extra)
|
if (extra)
|
||||||
{
|
{
|
||||||
if (!user.getLastLoginAddress().isEmpty())
|
if (!user.getLastLoginAddress().isEmpty())
|
||||||
{
|
{
|
||||||
sender.sendMessage(_("whoisIPAddress", user.getLastLoginAddress()));
|
sender.sendMessage(_("whoisIPAddress", user.getLastLoginAddress()));
|
||||||
}
|
}
|
||||||
final String location = user.getGeoLocation();
|
|
||||||
if (location != null && (!(sender instanceof Player) || ess.getUser(sender).isAuthorized("essentials.geoip.show")))
|
|
||||||
{
|
|
||||||
sender.sendMessage(_("whoisGeoLocation", location));
|
|
||||||
}
|
|
||||||
final Location loc = user.getLogoutLocation();
|
final Location loc = user.getLogoutLocation();
|
||||||
if (loc != null)
|
if (loc != null)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user