Skip to content

Commit

Permalink
将权限节点归属于RsNPC.admin
Browse files Browse the repository at this point in the history
  • Loading branch information
stevei5mc committed Jan 4, 2024
1 parent 2672768 commit f23074b
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public AddRouteSubCommand(String name) {

@Override
public boolean canUser(CommandSender sender) {
return sender.isPlayer() && sender.hasPermission("RsNPC.addroute");
return sender.isPlayer() && sender.hasPermission("RsNPC.admin.addroute");
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public CreateSubCommand(String name) {

@Override
public boolean canUser(CommandSender sender) {
return sender.isPlayer() && sender.hasPermission("RsNPC.create");
return sender.isPlayer() && sender.hasPermission("RsNPC.admin.create");
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public DeleteSubCommand(String name) {

@Override
public boolean canUser(CommandSender sender) {
return sender.hasPermission("RsNPC.delete");
return sender.hasPermission("RsNPC.admin.delete");
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public ReloadSubCommand(String name) {

@Override
public boolean canUser(CommandSender sender) {
return sender.hasPermission("RsNPC.reload");
return sender.hasPermission("RsNPC.admin.reload");
}

@Override
Expand Down
8 changes: 4 additions & 4 deletions src/main/resources/plugin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@ permissions:
RsNPC.admin:
default: op
description: "RsNPC插件主命令"
RsNPC.create:
RsNPC.admin.create:
default: op
description: "创建npc的命令"
RsNPC.delete:
RsNPC.admin.delete:
default: op
description: "删除npc的命令"
RsNPC.reload:
RsNPC.admin.reload:
default: op
description: "重载NPC配置文件的命令"
RsNPC.addroute:
RsNPC.admin.addroute:
default: op
description: "添加npc移动路径的命令"

0 comments on commit f23074b

Please sign in to comment.