From 57453ffce182198e0ee1d94bdada7549f2982a19 Mon Sep 17 00:00:00 2001 From: Jascha Starke Date: Thu, 17 Oct 2013 21:57:48 +0200 Subject: [PATCH] MethodContainer-TabCompletion, README-Update --- README.md | 21 +++++++------------ .../FeatureSwitchGameMode.java | 6 ++++++ .../limitedcreative/MainCommand.java | 9 ++++++++ 3 files changed, 23 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index 161283e..28d111c 100644 --- a/README.md +++ b/README.md @@ -10,16 +10,11 @@ Required dependencies Dependencies for optional integrations -------------------------------------- -* [WorldGuard](https://github.com/sk89q/worldguard) -* [xAuth](http://dev.bukkit.org/server-mods/xauth/) -* [AuthMe](http://dev.bukkit.org/server-mods/authme-reloaded/) ([GitSource](https://github.com/Multiplayer-italia/AuthMe-Reloaded)) -* [Multiverse-Core](http://dev.bukkit.org/server-mods/multiverse-core/) - ----- - -To use Maven packaging ----------------------- - -For required development snapshots, that aren't found by maven, you have to clone the project and do: -$ mvn install -in the directory of the project +* [WorldGuard](http://dev.bukkit.org/bukkit-plugins/worldguard/) +* [WorldEdit](http://dev.bukkit.org/bukkit-plugins/worldedit/) +* [xAuth](http://dev.bukkit.org/bukkit-plugins/xauth/) +* [AuthMe](http://dev.bukkit.org/bukkit-plugins/authme-reloaded/) +* [Multiverse-Core](http://dev.bukkit.org/bukkit-plugins/multiverse-core/) +* [Vault](http://dev.bukkit.org/bukkit-plugins/vault/) +* [Multiworld](http://dev.bukkit.org/bukkit-plugins/multiworld-v-2-0/) +* [LogBlock](http://dev.bukkit.org/bukkit-plugins/logblock/) \ No newline at end of file diff --git a/src/main/java/de/jaschastarke/minecraft/limitedcreative/FeatureSwitchGameMode.java b/src/main/java/de/jaschastarke/minecraft/limitedcreative/FeatureSwitchGameMode.java index 47c6c56..2802ef7 100644 --- a/src/main/java/de/jaschastarke/minecraft/limitedcreative/FeatureSwitchGameMode.java +++ b/src/main/java/de/jaschastarke/minecraft/limitedcreative/FeatureSwitchGameMode.java @@ -18,6 +18,7 @@ import de.jaschastarke.bukkit.lib.commands.MethodCommand; import de.jaschastarke.bukkit.lib.commands.IMethodCommandContainer; import de.jaschastarke.bukkit.lib.commands.MissingPermissionCommandException; import de.jaschastarke.bukkit.lib.commands.NeedsPlayerArgumentCommandException; +import de.jaschastarke.bukkit.lib.commands.TabCompletionHelper; import de.jaschastarke.bukkit.lib.commands.annotations.Alias; import de.jaschastarke.bukkit.lib.commands.annotations.Description; import de.jaschastarke.bukkit.lib.commands.annotations.IsCommand; @@ -136,5 +137,10 @@ public class FeatureSwitchGameMode extends CoreModule { public boolean adventure(CommandContext context, String player) throws MissingPermissionCommandException, CommandException { return changeGameMode(context, player, GameMode.ADVENTURE, SwitchGameModePermissions.ADVENTURE); } + + @Override + public List getTabCompleter(MethodCommand cmd) { + return null; + } } } diff --git a/src/main/java/de/jaschastarke/minecraft/limitedcreative/MainCommand.java b/src/main/java/de/jaschastarke/minecraft/limitedcreative/MainCommand.java index 6d676ef..d1729b8 100644 --- a/src/main/java/de/jaschastarke/minecraft/limitedcreative/MainCommand.java +++ b/src/main/java/de/jaschastarke/minecraft/limitedcreative/MainCommand.java @@ -1,10 +1,14 @@ package de.jaschastarke.minecraft.limitedcreative; +import java.util.List; + import de.jaschastarke.LocaleString; import de.jaschastarke.bukkit.lib.commands.BukkitCommand; import de.jaschastarke.bukkit.lib.commands.CommandContext; import de.jaschastarke.bukkit.lib.commands.IHelpDescribed; import de.jaschastarke.bukkit.lib.commands.IMethodCommandContainer; +import de.jaschastarke.bukkit.lib.commands.MethodCommand; +import de.jaschastarke.bukkit.lib.commands.TabCompletionHelper; import de.jaschastarke.bukkit.lib.commands.annotations.Description; import de.jaschastarke.bukkit.lib.commands.annotations.IsCommand; import de.jaschastarke.bukkit.lib.commands.annotations.NeedsPermission; @@ -89,4 +93,9 @@ public class MainCommand extends BukkitCommand implements IHelpDescribed, IMetho }); return true; } + + @Override + public List getTabCompleter(MethodCommand cmd) { + return null; + } }