mondocommand
Interface SubHandler

All Known Implementing Classes:
MondoCommand

public interface SubHandler

Interface for implementing sub command handlers.

Author:
James Crasta

Method Summary
 void handle(CallInfo call)
          Handle a call from a SubCommand.
 

Method Detail

handle

void handle(CallInfo call)
            throws MondoFailure
Handle a call from a SubCommand.

The passed in call has a number of properties, including the Player (if applicable), CommandSender, information on the SubCommand, and any additional arguments passed.

If the handler throws a MondoFailure, then the failure's message is printed to the command sender.

Parameters:
call - Contains all the information about the call.
Throws:
MondoFailure - An optional error trap mechanism to display errors.


Copyright © 2013. All Rights Reserved.