This is mine, you could build from it.
Code:if (playerCommand.startsWith("bank") && Rights.DONOR) { ActionManager().openBankInterface(); } else if(!Rights.DONOR) { ActionManager().sendPlayerMessage("You are not permitted to use this command"); }