We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 55b555f commit 269e06bCopy full SHA for 269e06b
src/command/sub/PermCommand.php
@@ -18,6 +18,7 @@ protected function prepare() : void{
18
$this->registerArgument(0, new class("permission") extends StringEnumArgument{
19
protected const VALUES = ["default" => "default", "op" => "op", "everyone" => "everyone"];
20
public function getTypeName() : string{ return "string"; }
21
+ public function getEnumName() : string{ return "permission"; }
22
public function parse(string $argument, CommandSender $sender) : mixed{ return $this->getValue($argument); }
23
});
24
}
0 commit comments