mirror of
https://github.com/StarWishsama/Slimefun4.git
synced 2024-09-19 19:25:48 +00:00
Fixed #3548
This commit is contained in:
parent
edead33c8f
commit
5cfc4f725e
@ -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
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user