Non default permission for console
Closed this issue ยท 10 comments
My plugin has a non-default permission. I need to use the command that checks this permission in console. How can i do it with console?
/lp user (name) permission info.
/lp group (name) permission info.
Please read the wiki before posting an issue!
Have you ever tried /lp user CONSOLE permission ?
Or did you read my issue carefully?
there is no such thing as console permissions, /lp user CONSOLE will edit the user called "console" not the actual console.
It isn't possible to take away or give console a permission. Console is where you can type any administrative commands.
The console isn't a player or group. It has full access to all permissions, and you can't change that.
If a command doesn't work from the console, then that's because the command itself refuses to work on the console. For example, a command like Essentials' /suicide
refuses to work on the console, because the console isn't a player and can't die. This has nothing to do with permissions - it's just how the commands work.
If plugin.yml's permission's 'default' is set to false, console can't use the command with LuckPerms
Neither there is a way to make it possible. Luckperms will not be able to give console permission to do it
like was mentioned if console cant run command then that command is meant to run in game by player
If plugin.yml's permission's 'default' is set to false, console can't use the command with LuckPerms
This is normal.
Test plugin:
package me.lucko.test;
import org.bukkit.command.Command;
import org.bukkit.command.CommandSender;
import org.bukkit.plugin.java.JavaPlugin;
public class TestPlugin extends JavaPlugin {
@Override
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
sender.sendMessage("success!");
return true;
}
}
name: Test
main: me.lucko.test.TestPlugin
version: 1.0
commands:
test:
description: Test command
usage: /home
permission: test.perm
permissions:
test.perm:
default: false
Running /test
as console with no other plugins installed:
> test
[14:31:04 INFO]: I'm sorry, but you do not have permission to perform this command. Please contact the server administrators if you believe that this is in error.
>
Running /test
as console with LuckPerms installed:
> test
[14:33:36 INFO]: I'm sorry, but you do not have permission to perform this command. Please contact the server administrators if you believe that this is in error.
>