package com.gmail.trentech.stackban.commands;

import org.spongepowered.api.command.CommandException;
import org.spongepowered.api.command.CommandResult;
import org.spongepowered.api.command.CommandSource;
import org.spongepowered.api.command.args.CommandContext;
import org.spongepowered.api.command.spec.CommandExecutor;

import com.gmail.trentech.stackban.utils.Help;

public class CMDHelp implements CommandExecutor {

	public CMDHelp() {
		new Help("sban help", "help", "Get help with all commands in Project Worlds", false)
			.setPermission("stackban.cmd.sban")
			.setUsage("/sban help <rawCommand>")
			.setExample("/sban help world create")
			.save();
	}
	
	@Override
	public CommandResult execute(CommandSource src, CommandContext args) throws CommandException {
		Help help = args.<Help> getOne("command").get();
		help.execute(src);
		
		return CommandResult.success();
	}
}

@@ -516,22 +516,16 @@
  in 
-Project Worlds
+StackBan
 %22, f
@@ -643,13 +643,12 @@
 elp 
-world
+sban
  cre
@@ -817,17 +817,20 @@
 getOne(%22
-c
+rawC
 ommand%22)

fix help