PermissionsEx

PermissionsEx

14M Downloads

Setting up PEX

drc187 opened this issue · 11 comments

commented

Hi,

I've followed the tutorial for PEX and cannot get commands to work for me even though I'm an Admin. I'm given the error "I'm sorry you do not have permission to perform this command. Please inform the administrators if you believe this is a problem."

Any help would be greatly appreciated.

Here is my permissions file:

groups:
default:
options:
default: true
rank: '1000'
permissions:
- modifyworld.*
Admin:
permissions:
- -modifyworld.mobtarget.*
- modifyworld.*
- permissions.*
options:
rank: '1'
prefix: '&0(&4Admin&0)&7 '
Member:
options:
rank: '900'
prefix: '"&0(&8M&7ember&0)&7'
permissions:
- modifyworld.*
VIP:
options:
rank: '800'
prefix: '&0(&eVIP&0)&7 '
permissions:
- -modifyworld.mobtarget.monster.creeper
- modifyworld.*
Mod:
options:
rank: '100'
prefix: '&0(&1Mod&0)&7 '
permissions:
- -modifyworld.mobtarget.*
- modifyworld.*
schema-version: 1
users:
6e60b118-e65d-4303-975a-f7491cee279f:
group:
- Admin
permissions:
- permissions.*
options:
name: watnameisleft

commented

Some important things to keep in mind here:

Vanilla Permissions are not able to be reliably controlled. You can have 2 absolutely identical servers and 1 will be able to control them while the other can not. I have no idea what causes this, but it has been true since Minecraft 1.7.2 onward. I have asked the powers that be what causes this, but no one has ever returned any of my emails or private messages.

Giving yourself the global wildcard permission node ( * ) is generally a bad idea. After doing this, you potentially have many permission nodes that you do not actually want, and then you'll have to negate all of those above that global wildcard in your permissions.yml file. On servers that use many plugins, this is a massive pain in the ass. On servers that don't use many plugins, it's not as bad.

commented

If anyone needs access to all of the PEX commands (highly recommended for the server owner and no one else), you would use the following command in the server console:

pex user Stormbow add permissions.*

(Replace "Stormbow" with the server owner's name, of course.)

This gives a server owner access to all of the PEX commands, no matter which group they move themselves around to while setting up and testing the server.

commented

(You can still post in this thread. It's just no longer tracked by the PEX author (zml) or myself (the 1.x guru) on the front page of the tickets forum.)

commented

http://pastebin.com/e0nvZvpx

On line 19 you had a " in between ' and ' in the members prefix. If you remove that, it should be fine

commented

Thank you for your prompt response. I changed it and still having the same issue. Here is my log file if you wouldn't mind looking over it .

[03:43:07] [Server thread/INFO]: Starting minecraft server version 1.11.2
[03:43:07] [Server thread/INFO]: Loading properties
[03:43:07] [Server thread/INFO]: Default game type: SURVIVAL
[03:43:08] [Server thread/INFO]: This server is running CraftBukkit version git-Spigot-4741400-a1d3777 (MC: 1.11.2) (Implementing API version 1.11.2-R0.1-SNAPSHOT)
[03:43:08] [Server thread/WARN]: Unable to read file ops.json, backing it up to ops.json.backup and creating new copy.
[03:43:08] [Server thread/INFO]: Debug logging is disabled
[03:43:08] [Server thread/INFO]: Server Ping Player Sample Count: 12
[03:43:08] [Server thread/INFO]: Using 4 threads for Netty based IO
[03:43:08] [Server thread/INFO]: Generating keypair
[03:43:08] [Server thread/INFO]: Starting Minecraft server on 192.168.0.2:25565
[03:43:08] [Server thread/INFO]: Using default channel type
[03:43:08] [Server thread/INFO]: Set PluginClassLoader as parallel capable
[03:43:08] [Server thread/INFO]: [PermissionsEx] Loading PermissionsEx v1.23.4
[03:43:08] [Server thread/INFO]: **** Beginning UUID conversion, this may take A LONG time ****
[03:43:08] [Server thread/INFO]: Preparing level "jdworld"
[03:43:08] [Server thread/INFO]: -------- World Settings For [jdworld] --------
[03:43:08] [Server thread/INFO]: Allow Zombie Pigmen to spawn from portal blocks: true
[03:43:08] [Server thread/INFO]: Nerfing mobs spawned from spawners: false
[03:43:08] [Server thread/INFO]: Arrow Despawn Rate: 1200
[03:43:08] [Server thread/INFO]: Item Merge Radius: 2.5
[03:43:08] [Server thread/INFO]: Item Despawn Rate: 6000
[03:43:08] [Server thread/INFO]: Random Lighting Updates: false
[03:43:08] [Server thread/INFO]: Hopper Transfer: 8 Hopper Check: 8 Hopper Amount: 1
[03:43:08] [Server thread/INFO]: Structure Info Saving: true
[03:43:08] [Server thread/INFO]: Entity Tracking Range: Pl 48 / An 48 / Mo 48 / Mi 32 / Other 64
[03:43:08] [Server thread/INFO]: Entity Activation Range: An 32 / Mo 32 / Mi 16
[03:43:08] [Server thread/INFO]: Max TNT Explosions: 100
[03:43:08] [Server thread/INFO]: Tile Max Tick Time: 50ms Entity max Tick Time: 50ms
[03:43:08] [Server thread/INFO]: Mob Spawn Range: 4
[03:43:08] [Server thread/INFO]: Cactus Growth Modifier: 100%
[03:43:08] [Server thread/INFO]: Cane Growth Modifier: 100%
[03:43:08] [Server thread/INFO]: Melon Growth Modifier: 100%
[03:43:08] [Server thread/INFO]: Mushroom Growth Modifier: 100%
[03:43:08] [Server thread/INFO]: Pumpkin Growth Modifier: 100%
[03:43:08] [Server thread/INFO]: Sapling Growth Modifier: 100%
[03:43:08] [Server thread/INFO]: Wheat Growth Modifier: 100%
[03:43:08] [Server thread/INFO]: NetherWart Growth Modifier: 100%
[03:43:08] [Server thread/INFO]: Vine Growth Modifier: 100%
[03:43:08] [Server thread/INFO]: Cocoa Growth Modifier: 100%
[03:43:08] [Server thread/INFO]: Custom Map Seeds: Village: 10387312 Feature: 14357617Monument: 10387313 Slime: 987234911
[03:43:08] [Server thread/INFO]: Zombie Aggressive Towards Villager: true
[03:43:08] [Server thread/INFO]: Experience Merge Radius: 3.0
[03:43:08] [Server thread/INFO]: View Distance: 10
[03:43:08] [Server thread/INFO]: -------- World Settings For [jdworld_nether] --------
[03:43:08] [Server thread/INFO]: Allow Zombie Pigmen to spawn from portal blocks: true
[03:43:08] [Server thread/INFO]: Nerfing mobs spawned from spawners: false
[03:43:08] [Server thread/INFO]: Arrow Despawn Rate: 1200
[03:43:08] [Server thread/INFO]: Item Merge Radius: 2.5
[03:43:08] [Server thread/INFO]: Item Despawn Rate: 6000
[03:43:08] [Server thread/INFO]: Random Lighting Updates: false
[03:43:08] [Server thread/INFO]: Hopper Transfer: 8 Hopper Check: 8 Hopper Amount: 1
[03:43:08] [Server thread/INFO]: Structure Info Saving: true
[03:43:08] [Server thread/INFO]: Entity Tracking Range: Pl 48 / An 48 / Mo 48 / Mi 32 / Other 64
[03:43:08] [Server thread/INFO]: Entity Activation Range: An 32 / Mo 32 / Mi 16
[03:43:08] [Server thread/INFO]: Max TNT Explosions: 100
[03:43:08] [Server thread/INFO]: Tile Max Tick Time: 50ms Entity max Tick Time: 50ms
[03:43:08] [Server thread/INFO]: Mob Spawn Range: 4
[03:43:08] [Server thread/INFO]: Cactus Growth Modifier: 100%
[03:43:08] [Server thread/INFO]: Cane Growth Modifier: 100%
[03:43:08] [Server thread/INFO]: Melon Growth Modifier: 100%
[03:43:08] [Server thread/INFO]: Mushroom Growth Modifier: 100%
[03:43:08] [Server thread/INFO]: Pumpkin Growth Modifier: 100%
[03:43:08] [Server thread/INFO]: Sapling Growth Modifier: 100%
[03:43:08] [Server thread/INFO]: Wheat Growth Modifier: 100%
[03:43:08] [Server thread/INFO]: NetherWart Growth Modifier: 100%
[03:43:08] [Server thread/INFO]: Vine Growth Modifier: 100%
[03:43:08] [Server thread/INFO]: Cocoa Growth Modifier: 100%
[03:43:08] [Server thread/INFO]: Custom Map Seeds: Village: 10387312 Feature: 14357617Monument: 10387313 Slime: 987234911
[03:43:08] [Server thread/INFO]: Zombie Aggressive Towards Villager: true
[03:43:08] [Server thread/INFO]: Experience Merge Radius: 3.0
[03:43:08] [Server thread/INFO]: View Distance: 10
[03:43:08] [Server thread/INFO]: -------- World Settings For [jdworld_the_end] --------
[03:43:08] [Server thread/INFO]: Allow Zombie Pigmen to spawn from portal blocks: true
[03:43:08] [Server thread/INFO]: Nerfing mobs spawned from spawners: false
[03:43:08] [Server thread/INFO]: Arrow Despawn Rate: 1200
[03:43:08] [Server thread/INFO]: Item Merge Radius: 2.5
[03:43:08] [Server thread/INFO]: Item Despawn Rate: 6000
[03:43:08] [Server thread/INFO]: Random Lighting Updates: false
[03:43:08] [Server thread/INFO]: Hopper Transfer: 8 Hopper Check: 8 Hopper Amount: 1
[03:43:08] [Server thread/INFO]: Structure Info Saving: true
[03:43:08] [Server thread/INFO]: Entity Tracking Range: Pl 48 / An 48 / Mo 48 / Mi 32 / Other 64
[03:43:08] [Server thread/INFO]: Entity Activation Range: An 32 / Mo 32 / Mi 16
[03:43:08] [Server thread/INFO]: Max TNT Explosions: 100
[03:43:08] [Server thread/INFO]: Tile Max Tick Time: 50ms Entity max Tick Time: 50ms
[03:43:08] [Server thread/INFO]: Mob Spawn Range: 4
[03:43:08] [Server thread/INFO]: Cactus Growth Modifier: 100%
[03:43:08] [Server thread/INFO]: Cane Growth Modifier: 100%
[03:43:08] [Server thread/INFO]: Melon Growth Modifier: 100%
[03:43:08] [Server thread/INFO]: Mushroom Growth Modifier: 100%
[03:43:08] [Server thread/INFO]: Pumpkin Growth Modifier: 100%
[03:43:08] [Server thread/INFO]: Sapling Growth Modifier: 100%
[03:43:08] [Server thread/INFO]: Wheat Growth Modifier: 100%
[03:43:08] [Server thread/INFO]: NetherWart Growth Modifier: 100%
[03:43:08] [Server thread/INFO]: Vine Growth Modifier: 100%
[03:43:08] [Server thread/INFO]: Cocoa Growth Modifier: 100%
[03:43:08] [Server thread/INFO]: Custom Map Seeds: Village: 10387312 Feature: 14357617Monument: 10387313 Slime: 987234911
[03:43:08] [Server thread/INFO]: Zombie Aggressive Towards Villager: true
[03:43:08] [Server thread/INFO]: Experience Merge Radius: 3.0
[03:43:08] [Server thread/INFO]: View Distance: 10
[03:43:08] [Server thread/INFO]: Preparing start region for level 0 (Seed: 5796114962083759054)
[03:43:09] [Server thread/INFO]: Preparing spawn area: 60%
[03:43:10] [Server thread/INFO]: Preparing start region for level 1 (Seed: 5796114962083759054)
[03:43:10] [Server thread/INFO]: Preparing start region for level 2 (Seed: 5796114962083759054)
[03:43:10] [Server thread/INFO]: [PermissionsEx] Enabling PermissionsEx v1.23.4
[03:43:10] [Server thread/INFO]: [PermissionsEx] Initializing file backend
[03:43:10] [Server thread/INFO]: [PermissionsEx] Permissions file successfully reloaded
[03:43:10] [Server thread/INFO]: [PermissionsEx] Group default initialized
[03:43:10] [Server thread/INFO]: [PermissionsEx] Group Admin initialized
[03:43:10] [Server thread/INFO]: [PermissionsEx] Group Member initialized
[03:43:10] [Server thread/INFO]: [PermissionsEx] Group VIP initialized
[03:43:10] [Server thread/INFO]: [PermissionsEx] Group Mod initialized
[03:43:11] [Server thread/INFO]: Server permissions file permissions.yml is empty, ignoring it
[03:43:11] [Server thread/INFO]: Done (2.568s)! For help, type "help" or "?"
[03:43:29] [User Authenticator #1/INFO]: [PermissionsEx] User 6e60b118-e65d-4303-975a-f7491cee279f initialized
[03:43:29] [User Authenticator #1/INFO]: UUID of player watnameisleft is 6e60b118-e65d-4303-975a-f7491cee279f
[03:43:29] [Server thread/INFO]: [PermissionsEx] Permissions handler for watnameisleft successfully injected
[03:43:29] [Server thread/INFO]: [PermissionsEx] Updating superperms for player watnameisleft
[03:43:29] [Server thread/INFO]: [PermissionsEx] Updating superperms for player watnameisleft
[03:43:29] [Server thread/INFO]: watnameisleft[/192.168.0.2:64322] logged in with entity id 284 at ([jdworld_nether]153.82574391608912, 128.0, -99.59749350080342)
[03:43:41] [Server thread/INFO]: watnameisleft issued server command: /give watnameisleft command_block
[03:43:41] [Server thread/INFO]: [PermissionsEx] User watnameisleft checked for permission 'minecraft', no match found (CACHE MISS)
[03:43:41] [Server thread/INFO]: [PermissionsEx] User watnameisleft checked for permission 'minecraft.command', no match found (CACHE MISS)
[03:43:41] [Server thread/INFO]: [PermissionsEx] User watnameisleft checked for permission 'minecraft.command.give', no match found (CACHE MISS)
[03:44:50] [Async Chat Thread - #0/INFO]: op watnameisleft�[m
[03:45:08] [Server thread/INFO]: watnameisleft issued server command: /give watnameisleft 1
[03:45:08] [Server thread/INFO]: [PermissionsEx] User watnameisleft checked for permission 'minecraft.command.give', regex-matched a value of undefined from cache.
[03:46:15] [Server thread/INFO]: watnameisleft issued server command: /give watnameisleft stone
[03:46:15] [Server thread/INFO]: [PermissionsEx] User watnameisleft checked for permission 'minecraft.command.give', regex-matched a value of undefined from cache.
[03:47:01] [Server thread/INFO]: watnameisleft issued server command: /give watnameisleft dirt
[03:47:01] [Server thread/INFO]: [PermissionsEx] User watnameisleft checked for permission 'minecraft.command.give', regex-matched a value of undefined from cache.

commented

It doesn't seem to throw errors that indicate anything wrong, in fact it reports loading the groups.

I have a feeling you need to add particular permissions for those commands you're trying unless you're going to use something to compliment PermissionsEx such as Essentials. For the basic minecraft permissions, you can see them here: http://wiki.bukkit.org/CraftBukkit_Commands

As an example, the "/give" command, you'd add bukkit.command.give to the Admin group.

Hope that's what you mean by it's still not working :s

commented

I'm not sure if I'm following what you're saying about adding bucket.command.give to the Admin group. I'm fairly new to this but I'm learning more as I go. Could you give me the example in a line of code?
Also if I add Essentials what can I accomplish with that plugin? And there are server Essential plugins, which ones shall I use? I'm sorry to bombard you with questions, I'm just really excited to get this server to my liking, lol.

commented

For sure, we were all new at this at some point :)

The command you'd execute in the server console would be as follows:
pex group Admin add bukkit.command.give

If you look at this link: http://wiki.bukkit.org/CraftBukkit_Commands#Default_Minecraft_Commands_and_Permissions
It shows you a list of all the commands that you'd be able to execute in normal minecraft without plugins (eg /give, /tp, /gamemode, /ban, etc). With using something like spigot/bukkit with a permissions system such as PeX instead of op, each command has its own permissions so you'll need to add each permissions to the groups you want to have access to them. The link above goes through each command explaining what it does and shows you the corresponding permission (Under the column 'Bukkit Permission' in the table) required for it.

Some other examples (replace "GROUPNAME" with the group name you want):

  • To give the "/gamemode" command to a group:
    pex group GROUPNAME add bukkit.command.gamemode
  • To give the "/ban" command to a group:
    pex group GROUPNAME add bukkit.command.ban.player

Essentials is basically a plugin that provides a wide range of features from other plugins. I don't think I should talk about it too much here considering this is a help section for PermissionsEx, however here's the link to the Spigot resources page to the latest iteration of Essentials, EssentialsX. You can learn about it here: https://www.spigotmc.org/resources/essentialsx.9089/
For a little further aid, if you do decide to use it, this is also a handy site for the Essentials permissions:
http://wiki.mc-ess.net/wiki/Command_Reference

commented

Thank you very much. I have a better understand of how it works now. The only issue I have is that I have to put the commands in the server console for it to work. Is there a way to use the commands in the in game console? And also when I give myself a command block I can't place it. It's very frustrating lol.

commented

Yep, basically you just add a "/" to the front of the command:
/pex group...

I suggest for the moment, you give yourself the * permissions:
pex user watnameisleft add *
This will allow you access to every command available on your server, from there you can manage everything. I only suggest this because I can't recall or find PeX having a permission to just manage all groups, they're very specific permissions ( See here: https://github.com/PEXPlugins/PermissionsEx/wiki/Commands )

commented

Again, thank you for all of your help. I'm going to get to reading through the command page and see what I can come up. Have a great morning!