small addition to basecommands documentation

This commit is contained in:
Dico200
2015-10-20 18:10:56 +02:00
parent ce4fa316d9
commit b4f5a68e4e

View File

@@ -43,6 +43,7 @@ The arguments are as follows:
Comments on the function added to the decorator:
It should return a message to send to the player. Color codes are translated automatically. It can return None or an empty string to send nothing.
Returning "HELP" makes it show the help message.
Inside the function, calls to static methods in the class Validate can be used to make the code shorter and easier to write (maybe not easier to read).
For example, to make sure that a condition is met, use Validate.isTrue(condition, message to send to the player if the condition is not met)