diff options
author | Iaccidentally <coryhuckaby@gmail.com> | 2013-11-06 21:22:32 -0500 |
---|---|---|
committer | Iaccidentally <coryhuckaby@gmail.com> | 2013-11-06 21:22:32 -0500 |
commit | f056d430c45d64c4cc30cb835151bdf9e0742c53 (patch) | |
tree | 80d883e66b2445695f2970008e18cc77d6ca9b7b /Essentials/src/com/earth2me/essentials/commands/Commandmute.java | |
parent | 5415207c88aca486371f8719a9444fce0112a9f0 (diff) | |
download | Essentials-f056d430c45d64c4cc30cb835151bdf9e0742c53.tar Essentials-f056d430c45d64c4cc30cb835151bdf9e0742c53.tar.gz Essentials-f056d430c45d64c4cc30cb835151bdf9e0742c53.tar.lz Essentials-f056d430c45d64c4cc30cb835151bdf9e0742c53.tar.xz Essentials-f056d430c45d64c4cc30cb835151bdf9e0742c53.zip |
Cleanup various aspects of code, fix some formatting, more netbeans 7.4 stuff
Diffstat (limited to 'Essentials/src/com/earth2me/essentials/commands/Commandmute.java')
-rw-r--r-- | Essentials/src/com/earth2me/essentials/commands/Commandmute.java | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandmute.java b/Essentials/src/com/earth2me/essentials/commands/Commandmute.java index 88b3f719e..0da22d7e4 100644 --- a/Essentials/src/com/earth2me/essentials/commands/Commandmute.java +++ b/Essentials/src/com/earth2me/essentials/commands/Commandmute.java @@ -6,7 +6,6 @@ import com.earth2me.essentials.OfflinePlayer; import com.earth2me.essentials.User; import com.earth2me.essentials.utils.DateUtil; import org.bukkit.Server; -import org.bukkit.entity.Player; public class Commandmute extends EssentialsCommand @@ -29,7 +28,7 @@ public class Commandmute extends EssentialsCommand { user = getPlayer(server, args, 0, true, true); } - catch (NoSuchFieldException e) + catch (PlayerNotFoundException e) { nomatch = true; user = ess.getUser(new OfflinePlayer(args[0], ess)); @@ -48,7 +47,7 @@ public class Commandmute extends EssentialsCommand throw new Exception(_("muteExempt")); } } - + long muteTimestamp = 0; if (args.length > 1) @@ -64,12 +63,12 @@ public class Commandmute extends EssentialsCommand user.setMuteTimeout(muteTimestamp); final boolean muted = user.getMuted(); String muteTime = DateUtil.formatDateDiff(muteTimestamp); - + if (nomatch) { sender.sendMessage(_("userUnknown", user.getName())); } - + if (muted) { if (muteTimestamp > 0) |