03.02.2018, 08:30
No code, Nothing to go on.
You need to find the variable (Commonly an array, but could be an enum) that depicts who is in an arena, and then put a check on all commands that you want to disable, denying the usage of it, if they are in the arena.
Don't suggest horrid code like that... Make an array, and use that instead of on every command usage, checking the location of the player.
And just so you know, blindly throwing up code like that really doesn't help, and is often non-working anyway. This also encourages people to simply throw up vague 'code-needed' begging, and when you answer it with shit that 'seems' to work, then when others tell them they should be submitting code, they then get all defensive because someone went and threw them code, that even if it doesn't work, it looks to them to be 'fine' because someone 'tried' to 'give' them what they 'wanted'.
You need to find the variable (Commonly an array, but could be an enum) that depicts who is in an arena, and then put a check on all commands that you want to disable, denying the usage of it, if they are in the arena.
Don't suggest horrid code like that... Make an array, and use that instead of on every command usage, checking the location of the player.
And just so you know, blindly throwing up code like that really doesn't help, and is often non-working anyway. This also encourages people to simply throw up vague 'code-needed' begging, and when you answer it with shit that 'seems' to work, then when others tell them they should be submitting code, they then get all defensive because someone went and threw them code, that even if it doesn't work, it looks to them to be 'fine' because someone 'tried' to 'give' them what they 'wanted'.