For example
if (controler.login = true) {
if (command.equalsIgnoreCase ("# book")) {
player.sendmessage ( "ok");
And your problem is where? As you wrote it, it should work. But what will not work is this condition:
if (controler.login = true) {
What you are doing here is setting "controler.login" to true. You do not compare, you assign the variable. To compare something, use the == operator:
if (controler.login == true) {
And syntactically this will be the nicer option, but your variant with two if-queries works the same way:
if (controler.login == true && command.equalsIgnoreCase ("# book")) {
player.sendmessage ( "ok");
}
The && stands for "and".