Class SlimefunGuideSettings
java.lang.Object
io.github.thebusybiscuit.slimefun4.core.guide.options.SlimefunGuideSettings
This static utility class offers various methods that provide access to the
Settings menu of our
SlimefunGuide
.
This menu is used to allow a Player
to change things such as the Language
.- Author:
- TheBusyBiscuit
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> void
addOption
(SlimefunGuideOption<T> option) static boolean
hasFireworksEnabled
(org.bukkit.entity.Player p) static boolean
hasLearningAnimationEnabled
(org.bukkit.entity.Player p) This method checks if the givenPlayer
has enabled theLearningAnimationOption
in theirSlimefunGuide
.static void
openSettings
(org.bukkit.entity.Player p, org.bukkit.inventory.ItemStack guide)
-
Method Details
-
addOption
-
openSettings
@ParametersAreNonnullByDefault public static void openSettings(org.bukkit.entity.Player p, org.bukkit.inventory.ItemStack guide) -
hasFireworksEnabled
public static boolean hasFireworksEnabled(@Nonnull org.bukkit.entity.Player p) This method checks if the givenPlayer
has enabled theFireworksOption
in theirSlimefunGuide
. If they enabled this setting, they will see fireworks when they unlock aResearch
.- Parameters:
p
- ThePlayer
- Returns:
- Whether this
Player
wants to see fireworks when unlocking aResearch
-
hasLearningAnimationEnabled
public static boolean hasLearningAnimationEnabled(@Nonnull org.bukkit.entity.Player p) This method checks if the givenPlayer
has enabled theLearningAnimationOption
in theirSlimefunGuide
. If they enabled this setting, they will see messages in chat about the progress of theirResearch
.- Parameters:
p
- ThePlayer
- Returns:
- Whether this
Player
wants to info messages in chat when unlocking aResearch
-