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 PrefixConfig
defaultPrefix
protected static String
FOLDER_NAME
protected @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 PrefixConfig
addPrefix(@NotNull File file)
@NotNull PrefixConfig
getDefaultPrefix()
@Nullable PrefixConfig
getPrefix(String identifier)
@NotNull Map<String,PrefixConfig>
getPrefixes()
protected File
getStorageFolder()
List<PrefixConfig>
getVisiblePrefix(Player player)
void
loadConfiguredPrefixes()
void
loadDefaultPrefix()
int
loadPrefixes()
protected static List<GUIActionConfiguration>
readActions(@NotNull List<String> strings)
protected static ItemStack
readItem(@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)
-
-