1
mirror of https://github.com/StarWishsama/Slimefun4.git synced 2024-09-19 19:25:48 +00:00
This commit is contained in:
TheBusyBiscuit 2022-04-25 18:12:02 +02:00
parent edead33c8f
commit 5cfc4f725e
2 changed files with 9 additions and 1 deletions

View File

@ -46,6 +46,7 @@
* Fixed #3504
* Fixed #3534
* Fixed #3538
* Fixed #3548
## Release Candidate 31 (14 Mar 2022)
https://thebusybiscuit.github.io/builds/TheBusyBiscuit/Slimefun4/stable/#31

View File

@ -311,7 +311,7 @@ public class SurvivalSlimefunGuide implements SlimefunGuideImplementation {
try {
if (isSurvivalMode()) {
displayItem(profile, sfitem, true);
} else {
} else if (pl.hasPermission("slimefun.cheat.items")) {
if (sfitem instanceof MultiBlockMachine) {
Slimefun.getLocalization().sendMessage(pl, "guide.cheat.no-multiblocks");
} else {
@ -323,6 +323,13 @@ public class SurvivalSlimefunGuide implements SlimefunGuideImplementation {
pl.getInventory().addItem(clonedItem);
}
} else {
/*
* Fixes #3548 - If for whatever reason,
* an unpermitted players gets access to this guide,
* this will be our last line of defense to prevent any exploit.
*/
Slimefun.getLocalization().sendMessage(pl, "messages.no-permission", true);
}
} catch (Exception | LinkageError x) {
printErrorMessage(pl, x);