Hello folks, how can I make this check "link/command off". If the command are enabled, to display button, if the command it's disabled by admin, to display "Command Off"
First of all i would swap the results, since if you call it "ENABLE_COMMAND_LINE" i expect to show "online" when it's true, not the other way around.
Second, you should return here, or people can bypass it:
if (!Config.ENABLE_COMMAND_ONLINE)
{
activeChar.sendMessage("Command is disabled by admin");
return false;
}
Third, what is the question? XD
Your code doesn't work or you need to ask where to apply it?
Sorry bad englesh
First of all i would swap the results, since if you call it "ENABLE_COMMAND_LINE" i expect to show "online" when it's true, not the other way around.
Second, you should return here, or people can bypass it:
if (!Config.ENABLE_COMMAND_ONLINE)
{
activeChar.sendMessage("Command is disabled by admin");
return false;
}
Third, what is the question? XD
Your code doesn't work or you need to ask where to apply it?
Sorry, bad English