PaperMC / Paper

The most widely used, high performance Minecraft server that aims to fix gameplay and mechanics inconsistencies
https://papermc.io/
Other
9.39k stars 2.2k forks source link

Fix CommandSourceStack#bypassSelectorPermissions #10837

Closed lynxplay closed 1 month ago

lynxplay commented 1 month ago

The previous implementation would throw a command exception if the CommandSourceStack had its bypassSelectorPermissions flag set to true, which is the incorrect behaviour.

Instead, it should only throw an exception if the flag is set to false and all its other checks "fail" too.