At the beginning if I put:
- Code: Select all
if (message == null)
{
//disinfects me
}
It won't work, it only allows me to disinfect others. It gives me the message of "player could not be found" if I type /disinfect without anything.
if at teh beginning I put:
- Code: Select all
if (message.IndexOf(' ') == -1)
{
//disinfects me
}
It only allows me to disinfect myself. It gives me the message of "you're still human", as if I'm trying to disinfect myself.
full command:
Spoiler: