J3fftw1 / LiteXpansion

GNU General Public License v3.0
1 stars 0 forks source link

Fix for cargo configurator protection bypass problem #122

Closed TryHardDo closed 3 years ago

TryHardDo commented 3 years ago

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

J3fftw1 commented 3 years ago

Thanks for the pr <3