summaryrefslogtreecommitdiffstats
path: root/Essentials/src/net/ess3/commands/Commandbanip.java
diff options
context:
space:
mode:
Diffstat (limited to 'Essentials/src/net/ess3/commands/Commandbanip.java')
-rw-r--r--Essentials/src/net/ess3/commands/Commandbanip.java18
1 files changed, 9 insertions, 9 deletions
diff --git a/Essentials/src/net/ess3/commands/Commandbanip.java b/Essentials/src/net/ess3/commands/Commandbanip.java
index b26f69ccb..cae583023 100644
--- a/Essentials/src/net/ess3/commands/Commandbanip.java
+++ b/Essentials/src/net/ess3/commands/Commandbanip.java
@@ -19,15 +19,15 @@ public class Commandbanip extends EssentialsCommand
if (player == null)
{
- if(args[0].matches("\\b(?:\\d{1,3}\\.){3}\\d{1,3}\\b"))
- {
- ess.getServer().banIP(args[0]);
- sender.sendMessage(_("Banned IP address"));
- }
- else
- {
- sender.sendMessage(_("invalidIpAddress"));
- }
+ if (args[0].matches("\\b(?:\\d{1,3}\\.){3}\\d{1,3}\\b"))
+ {
+ ess.getServer().banIP(args[0]);
+ sender.sendMessage(_("Banned IP address"));
+ }
+ else
+ {
+ sender.sendMessage(_("invalidIpAddress"));
+ }
}
else
{