Skip to content

ExhaustiveOverloads 5.46.0 ​

interface · pocketmine\command\parameter\ExhaustiveOverloads · source

Extends ParameterizedCommand

A ParameterizedCommand whose overloads describe every syntax it accepts. Clients get no free-text overload for it, so they show only the declared syntaxes and reject others before sending them, like vanilla commands.

Only use it when every accepted input matches an overload as the client checks it (e.g. enum parameters only accept their listed values).

VanillaMine is a fork of PocketMine-MP, maintained by Luxury Nodes. Not affiliated with the PMMP team or Mojang.