mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-08-06 12:33:03 +00:00
Allow certain commands while in jail, but only if the user normally has access to that command.
This commit is contained in:
parent
6f28540d59
commit
adb75b69c2
3 changed files with 20 additions and 11 deletions
|
@ -45,10 +45,10 @@ public class Commandseen extends EssentialsCommand
|
|||
: _("true")
|
||||
: _("false"))));
|
||||
sender.sendMessage(_("whoisMuted", (user.isMuted()
|
||||
? user.getMuteTimeout() > 0
|
||||
? Util.formatDateDiff(user.getMuteTimeout())
|
||||
: _("true")
|
||||
: _("false"))));
|
||||
? user.getMuteTimeout() > 0
|
||||
? Util.formatDateDiff(user.getMuteTimeout())
|
||||
: _("true")
|
||||
: _("false"))));
|
||||
if (extra)
|
||||
{
|
||||
sender.sendMessage(_("whoisIPAddress", user.getAddress().getAddress().toString()));
|
||||
|
@ -71,7 +71,8 @@ public class Commandseen extends EssentialsCommand
|
|||
{
|
||||
sender.sendMessage(_("whoisIPAddress", player.getLastLoginAddress()));
|
||||
final Location loc = player.getLastLocation();
|
||||
if (loc != null) {
|
||||
if (loc != null)
|
||||
{
|
||||
sender.sendMessage(_("whoisLocation", loc.getWorld().getName(), loc.getBlockX(), loc.getBlockY(), loc.getBlockZ()));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue