Skip to content

Commit

Permalink
changed required permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
efekurbann committed Apr 14, 2022
1 parent df565d9 commit f3f097d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public BSyncCommand(SyncCommandsBungee plugin) {

@Override
public void execute(CommandSender sender, String[] args) {
if (!sender.hasPermission("bsync.op")) {
if (!sender.hasPermission("bsynccommands.admin")) {
sender.sendMessage(TextComponent.fromLegacyText(
ChatUtils.color(plugin.getConfig().getString("no-permission"))));
return;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public SyncCommand(SyncCommandsSpigot plugin) {

@Override
public boolean onCommand(@NotNull CommandSender sender, @NotNull org.bukkit.command.Command command, @NotNull String label, @NotNull String[] args) {
if (!sender.hasPermission("bsync.op")) {
if (!sender.hasPermission("synccommands.admin")) {
sender.sendMessage(ChatUtils.color(plugin.getConfig().getString("no-permission")));
return true;
}
Expand Down

0 comments on commit f3f097d

Please sign in to comment.