-
Notifications
You must be signed in to change notification settings - Fork 12
3.4 Ignored Permissions
Yanbing Zhao edited this page Jun 20, 2019
·
1 revision
VirtualChest does not provide the op
action which is available in ChestCommands and BossShop. The reason is that Sponge ignored the concept of OP deliberately because of safety and some other reasons (please refer to this pull request). Instead, VirtualChest provides a feature called IgnoredPermissions
, which is safer, and more flexible.
You can define a list of ignored permissions like this:
Slot0 {
Item {
// blablabla
}
Action {
// blablabla
}
IgnoredPermissions = [
"plugin1.permission1"
"plugin2.permission2"
]
}
All the provided permissions will be set to true
when actions begins to be executed, and they will be set to their original value as soon as all the actions are executed. Thanks to the Sponge's Permission Context system I am able to implement the temporary permission system which is safe enough.