CommandHelper

CommandHelper

46.5k Downloads

Compiler issue: InsufficientPermissionsException despite the * label - even on functions that aren't restricted

LadyCailinBot opened this issue ยท 3 comments

commented

CMDHELPER-2687 - Reported by dddeeefff

I've been fiddling around this error for ages now. The config.txt is linked to below.

If you were to run "/tp [player]", it will generate an InsufficientPermissionsException on has_permission(), however; if you uncomment the alias above it (*:/test = /pl), then running the same command will work fine. At least for me anyway.

This is a weird one, to say the least.

http://paste.thezomg.com/9496/36935503/

commented

Comment by LadyCailin

As discussed in IRC, the problem is with your config on line 109, you have a random, uncommented line. I'm leaving this open however, because this shouldn't compile, but it's fairly low priority.

commented

Comment by LadyCailin

After further thought, there's nothing I can do about this, actually, because it could be a part of the permission itself, and I'd have to change the syntax significantly to prevent it.

commented

Comment by LadyCailin

Actually, I figured out a way to fix it, and also realized that this is a duplicate of 2814.