Class PrefixManager
- java.lang.Object
-
- cc.carm.plugin.userprefix.manager.PrefixManager
-
public class PrefixManager extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected PrefixConfigdefaultPrefixprotected static StringFOLDER_NAMEprotected @NotNull Map<String,PrefixConfig>prefixes
-
Constructor Summary
Constructors Constructor Description PrefixManager()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static @NotNull PrefixConfigaddPrefix(@NotNull File file)@NotNull PrefixConfiggetDefaultPrefix()@Nullable PrefixConfiggetPrefix(String identifier)@NotNull Map<String,PrefixConfig>getPrefixes()protected FilegetStorageFolder()List<PrefixConfig>getVisiblePrefix(Player player)voidloadConfiguredPrefixes()voidloadDefaultPrefix()intloadPrefixes()protected static List<GUIActionConfiguration>readActions(@NotNull List<String> strings)protected static ItemStackreadItem(@Nullable ConfigurationSection section, @Nullable ItemStack defaultValue)
-
-
-
Field Detail
-
FOLDER_NAME
protected static final String FOLDER_NAME
- See Also:
- Constant Field Values
-
prefixes
@NotNull protected @NotNull Map<String,PrefixConfig> prefixes
-
defaultPrefix
protected PrefixConfig defaultPrefix
-
-
Method Detail
-
loadPrefixes
public int loadPrefixes()
-
loadConfiguredPrefixes
public void loadConfiguredPrefixes()
-
loadDefaultPrefix
public void loadDefaultPrefix()
-
getVisiblePrefix
public List<PrefixConfig> getVisiblePrefix(Player player)
-
getDefaultPrefix
@NotNull public @NotNull PrefixConfig getDefaultPrefix()
-
getPrefixes
@NotNull public @NotNull Map<String,PrefixConfig> getPrefixes()
-
getPrefix
@Nullable public @Nullable PrefixConfig getPrefix(String identifier)
-
getStorageFolder
protected File getStorageFolder()
-
addPrefix
@NotNull public static @NotNull PrefixConfig addPrefix(@NotNull @NotNull File file) throws Exception
- Throws:
Exception
-
readItem
@Contract("_,!null->!null") protected static ItemStack readItem(@Nullable @Nullable ConfigurationSection section, @Nullable @Nullable ItemStack defaultValue) throws Exception- Throws:
Exception
-
readActions
protected static List<GUIActionConfiguration> readActions(@NotNull @NotNull List<String> strings)
-
-