Skip to content

Commit

Permalink
Correct inputpermission parameter type
Browse files Browse the repository at this point in the history
entity (e.g. "minecraft:cow") -> selector (e.g. "@p")
  • Loading branch information
tryashtar authored Nov 7, 2023
1 parent 8e35808 commit 132ef47
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Lib/Data/Vanilla/inputpermission.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,22 @@ import { CommandInfo } from "../CommandInfo";
export const inputpermission: CommandInfo[] = [
{
name: "inputpermission",
documentation: "Forces to open an NPC dialogue box to the targeted player(s)",
documentation: "Queries the status of an input permission",
parameters: [
{ text: "inputpermission", type: ParameterType.keyword, required: true },
{ text: "query", type: ParameterType.keyword, required: true },
{ text: "target", type: ParameterType.entity, required: true, options: { playerOnly: true } },
{ text: "target", type: ParameterType.selector, required: true, options: { playerOnly: true } },
{ text: "permission", type: ParameterType.permission, required: true },
{ text: "state", type: ParameterType.permissionState, required: false },
],
},
{
name: "inputpermission",
documentation: "Forces to open an NPC dialogue box to the targeted player(s)",
documentation: "Sets whether or not a player's input can affect their character",
parameters: [
{ text: "inputpermission", type: ParameterType.keyword, required: true },
{ text: "set", type: ParameterType.keyword, required: true },
{ text: "target", type: ParameterType.entity, required: true, options: { playerOnly: true } },
{ text: "target", type: ParameterType.selector, required: true, options: { playerOnly: true } },
{ text: "permission", type: ParameterType.permission, required: true },
{ text: "state", type: ParameterType.permissionState, required: true },
],
Expand Down

0 comments on commit 132ef47

Please sign in to comment.