Skip to content

Commit

Permalink
[0.45-PRE] Added tab-complete support for blacklist command.
Browse files Browse the repository at this point in the history
The blacklist features haven't been tested, when they have I can do a full release.
  • Loading branch information
jamierocks committed Dec 16, 2014
1 parent 728026a commit dceebf5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<name>PlayTimeLimiter</name>
<url>https://github.com/UnoModding/Canary-PlayTimeLimiter</url>
<description>PlayTimeLimiter is a CanaryLib plugin for Minecraft servers to only allow players to limit the amount of time players spend on your server.</description>
<version>0.5-dev</version>
<version>0.45-PRE</version>
<inceptionYear>2014</inceptionYear>

<repositories>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,10 @@ public List<String> playtimeTabComplete(MessageReceiver caller, String[] paramet
} else if (parameters.length == 2
&& (parameters[1].equals("add") || parameters[1].equals("remove") || parameters[1].equals("check"))) {
return TabCompleteHelper.matchTo(parameters, Canary.getServer().getKnownPlayerNames());
} else if(parameters.length == 2 && parameters[1].equals("blacklist")) {
return TabCompleteHelper.matchTo(parameters, new String[] { "add", "remove" });
} else if(parameters.length == 3 && parameters[1].equals("blacklist") && (parameters[2].equals("add") || parameters[2].equals("remove"))) {
return TabCompleteHelper.matchTo(parameters, Canary.getServer().getKnownPlayerNames());
} else {
return null;
}
Expand Down

0 comments on commit dceebf5

Please sign in to comment.