Class PaperResourcesManager
java.lang.Object
computer.livingroom.paperesources.PaperResourcesManager
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddResourcePack(String url, int index, boolean rebuild, boolean resendResources) This will cause the plugin to load any changes in the resource file (if any) and save your pack to whatever index you indicate.booleanvoidreloadResources(boolean sendNewResources) Reloads the resource packs from the resource file.booleanremoveResourcePack(String url, boolean rebuild, boolean resendResources) voidsendRequestToPlayer(org.bukkit.entity.Player player) Sends specified player the resource packs generated.
-
Constructor Details
-
PaperResourcesManager
-
-
Method Details
-
addResourcePack
This will cause the plugin to load any changes in the resource file (if any) and save your pack to whatever index you indicate.- Parameters:
url- String of url that points towards the pack fileindex- Priority of the pack or Index within the resource file (index 0 will always load first)
-
removeResourcePack
-
getURLStrings
- Returns:
- Returns the urls from the resource file.
- Throws:
IOException
-
isRequestValid
public boolean isRequestValid()- Returns:
- Whether the current resource request is valid and is not empty.
-
sendRequestToPlayer
public void sendRequestToPlayer(org.bukkit.entity.Player player) Sends specified player the resource packs generated. Request validation is already done.- Parameters:
player- Player to send resource packs to.
-
reloadResources
public void reloadResources(boolean sendNewResources) Reloads the resource packs from the resource file.- Parameters:
sendNewResources- Whether to resend the resource packs to all players or wait (usually until they relog)
-