t3hk0d3/PermissionsEx — Issue #181: Error when removing timed command - Normal?
Author: KJanar
Created: 2012-01-03 20:01:55+00:00
State: open

I did:
pex user KJanar timed add make.your.own.command.* creative

That was added succesfully.

But when i tried to remove that timed command with:
pex user KJanar remove make.your.own.command.* creative I got this error. Is this normal? -

2012-01-03 21:44:16 [WARNING] Unexpected exception while parsing console command
org.bukkit.command.CommandException: Unhandled exception executing command 'pex' in plugin PermissionsEx v1.17
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:42)
at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:165)
at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:378)
at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:374)
at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:564)
at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:541)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:425)
at net.minecraft.server.ThreadServerApplication.run(SourceFile:457)
Caused by: java.lang.RuntimeException: java.lang.NullPointerException
at ru.tehkode.permissions.commands.CommandsManager.execute(CommandsManager.java:127)
at ru.tehkode.permissions.bukkit.PermissionsEx.onCommand(PermissionsEx.java:124)
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:40)
... 7 more
Caused by: java.lang.NullPointerException
at ru.tehkode.permissions.config.ConfigurationNode.removeProperty(ConfigurationNode.java:111)
at ru.tehkode.permissions.backends.file.FileEntity.setPermissions(FileEntity.java:94)
at ru.tehkode.permissions.ProxyPermissionUser.setPermissions(ProxyPermissionUser.java:91)
at ru.tehkode.permissions.PermissionUser.removePermission(PermissionUser.java:719)
at ru.tehkode.permissions.bukkit.commands.UserCommands.userRemovePermission(UserCommands.java:332)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at ru.tehkode.permissions.commands.CommandsManager$CommandBinding.call(CommandsManager.java:260)
at ru.tehkode.permissions.commands.CommandsManager.execute(CommandsManager.java:120)
... 9 more
***********************************************************************************
I think the timed permissions should also be added to the permissions.yml file like this:

timed:
permissions:
- some.command.*
start:
- 31.12.2011
duration:
- 3600 (seconds)

Thanks