I just added few lines to the CargoConfigurator class which checks the player building priveleges every time when iteract with the CargoConfigurator tool. I also added a small fix for a problem when the tool is disabled in the slimefun items config the player still can use it.
Additions/Changes/Removals
Added CS-CoreLib checker to make sure the tools is enabled on the server
Added ProtectionManager from the SlimeFun library
Added CS-CoreLib localization when the user doesn't have permission to modify the cargo settings.
I added slimefun.cargo.bypass permission as a cargo configurator protection bypass permission. So if somebody has this perm he can bypass the protection.
Related Issues
Resolves #117
Checklist
[x] I have fully tested the proposed changes and promise that they will not break everything into chaos.
[x] I have also tested the proposed changes in combination with base Slimefun and made sure nothing breaks/unexpected happens.
[x] I followed the existing code standards and didn't mess up the formatting.
[ ] I did my best to add documentation to any public classes or methods I added which may not be obvious to maintainers.
[x] I have added Nonnull and Nullable annotations to my methods to indicate their behaviour for null values
Short Description
I just added few lines to the CargoConfigurator class which checks the player building priveleges every time when iteract with the CargoConfigurator tool. I also added a small fix for a problem when the tool is disabled in the slimefun items config the player still can use it.
Additions/Changes/Removals
Added CS-CoreLib checker to make sure the tools is enabled on the server Added ProtectionManager from the SlimeFun library Added CS-CoreLib localization when the user doesn't have permission to modify the cargo settings. I added slimefun.cargo.bypass permission as a cargo configurator protection bypass permission. So if somebody has this perm he can bypass the protection.
Related Issues
Resolves #117
Checklist
Nonnull
andNullable
annotations to my methods to indicate their behaviour for null values