weinberg/Actor — pull request #2 by Mitsugaru (2012-06-08 13:24:52+00:00)
Title: Commands, EntityActor, and other changes.

So, as I had mentioned, I put all the current commands under a unified root command: /actor. I have tested most of the commands, but not all... although the logic is there, so they should all work as they normally did in theory.

----

* **Commander class is registered as the CommandExecutor for the /actor command**

It holds a reference to all the other commands and calls their onCommand for the respective sub-command. A few minor aliases added.

* **Renamed the actor sub-command to accept either "hire" or "create"**

This is so that the command does not "repeat" itself. Instead of
> /actor actor [name]

it would be
> /actor hire [name]

which makes a bit more sense due to the root command change.
This is also reflected in the permissions, where the node has been changed to match the new sub-command.

* **EntityActor class variables have been made private instead of public.**

So, just use the standard getter and setter methods to get / modify them.

Example:
Instead of
> actor.**name**.equals(actorName);
> actor.**isPlayback** = true;

Use:
> actor.**getName()**.equals(actorName);
> actor.**setIsPlayback(true)**;

* **Fire command now prompts user to confirm the action**

Utilizes the Conversation API, which is pretty nifty. We can do the same for any other commands as well.

* **In-game help menu**

All the commands that a player has access to can be viewed in-game by using **/actor** without any arguments.

* **Fixed plugin.yml**

Added the softdepend key for Vault. Fixed my earlier typos on the description of permission nodes. Edited the version number to reflect the future release version number.