PEXPlugins / PermissionsEx

A powerful permissions plugin for Minecraft
https://permissionsex.stellardrift.ca
Apache License 2.0
481 stars 297 forks source link

What did i do wrong? i cant use anything or do anything please help!!! #841

Closed a3modz2 closed 11 years ago

a3modz2 commented 11 years ago

Description

[Insert description of issue here]

What PEX Saw

Reason: While a3modz2 was executing /pex

Stacktrace:

java.lang.NullPointerException
    at ru.tehkode.permissions.backends.file.FileEntity.getNode(FileEntity.java:48)
    at ru.tehkode.permissions.backends.file.FileEntity.<init>(FileEntity.java:42)
    at ru.tehkode.permissions.backends.file.FileUser.<init>(FileUser.java:39)
    at ru.tehkode.permissions.backends.FileBackend.getUser(FileBackend.java:111)
    at ru.tehkode.permissions.PermissionManager.getUser(PermissionManager.java:116)
    at ru.tehkode.permissions.PermissionManager.has(PermissionManager.java:93)
    at ru.tehkode.permissions.PermissionManager.has(PermissionManager.java:69)
    at ru.tehkode.permissions.commands.CommandsManager$CommandBinding.checkPermissions(CommandsManager.java:247)
    at ru.tehkode.permissions.commands.CommandsManager.execute(CommandsManager.java:104)
    at ru.tehkode.permissions.bukkit.PermissionsEx.onCommand(PermissionsEx.java:159)
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44)
    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:189)
    at org.bukkit.craftbukkit.v1_5_R3.CraftServer.dispatchCommand(CraftServer.java:523)
    at net.minecraft.server.v1_5_R3.PlayerConnection.handleCommand(PlayerConnection.java:965)
    at net.minecraft.server.v1_5_R3.PlayerConnection.chat(PlayerConnection.java:883)
    at net.minecraft.server.v1_5_R3.PlayerConnection.a(PlayerConnection.java:840)
    at net.minecraft.server.v1_5_R3.Packet3Chat.handle(Packet3Chat.java:44)
    at net.minecraft.server.v1_5_R3.NetworkManager.b(NetworkManager.java:292)
    at net.minecraft.server.v1_5_R3.PlayerConnection.d(PlayerConnection.java:109)
    at net.minecraft.server.v1_5_R3.ServerConnection.b(SourceFile:35)
    at net.minecraft.server.v1_5_R3.DedicatedServerConnection.b(SourceFile:30)
    at net.minecraft.server.v1_5_R3.MinecraftServer.r(MinecraftServer.java:581)
    at net.minecraft.server.v1_5_R3.DedicatedServer.r(DedicatedServer.java:226)
    at net.minecraft.server.v1_5_R3.MinecraftServer.q(MinecraftServer.java:477)
    at net.minecraft.server.v1_5_R3.MinecraftServer.run(MinecraftServer.java:410)
    at net.minecraft.server.v1_5_R3.ThreadServerApplication.run(SourceFile:573)

PEX configuration

permissions:
  backend: file
  backends:
    file:
      file: permissions.yml
  superperms: {}

Permissions database

groups:
  Member:
    default: true
    permissions:
    - essentials.kick.notify
    - essentials.mute.notify
    - essentials.spawn
    - essentials.rules
    inheritance:
    info:
      prefix: '&e'
      build: false
      suffix: ''
  Mod:
    default: false
    permissions:
    - essentials.fly
    - essentials.god
    - essentials.speed
    - essentials.hat
    - essentials.chat.ignore.exempt
    - essentials.ban.exempt
    - essentials.ban
    - essentials.kick
    - essentials.invsee
    - essentials.invsee.modify
    - essentials.kick.exempt
    - essentials.kick
    - essentials.mute.exempt
    - essentials.mute
    - essentials.createwarp
    - essentials.delwarp
    - essentials.warp
    - essentials.tp
    -
    inheritance:
    - Member
    info:
      prefix: '&b[Mod]'
      build: true
      suffix: ''
  Admin:
    default: false
    permissions: []
    inheritance:
    - Mod
    info:
      prefix: '&4[Admin]'
      build: true
      suffix: ''
  Owner:
    default: false
    permissions:
    - '*'
Mod+:
    default: false
    permissions: []
    -world.edit0
    inheritance:
    - Mod
    info:
      prefix: '&b[Mod&4+]'
      build: true
      suffix: ''```
zml2008 commented 11 years ago

Permissions section for Mod+ is wrong. Make the syntax match Mod.