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> voidaddOption(SlimefunGuideOption<T> option) static booleanhasFireworksEnabled(org.bukkit.entity.Player p) static booleanhasLearningAnimationEnabled(org.bukkit.entity.Player p) This method checks if the givenPlayerhas enabled theLearningAnimationOptionin theirSlimefunGuide.static voidopenSettings(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 givenPlayerhas enabled theFireworksOptionin theirSlimefunGuide. If they enabled this setting, they will see fireworks when they unlock aResearch.- Parameters:
p- ThePlayer- Returns:
- Whether this
Playerwants to see fireworks when unlocking aResearch
-
hasLearningAnimationEnabled
public static boolean hasLearningAnimationEnabled(@Nonnull org.bukkit.entity.Player p) This method checks if the givenPlayerhas enabled theLearningAnimationOptionin theirSlimefunGuide. If they enabled this setting, they will see messages in chat about the progress of theirResearch.- Parameters:
p- ThePlayer- Returns:
- Whether this
Playerwants to info messages in chat when unlocking aResearch
-