crwdns32045:0crwdne32045:0

crwdns32046:0:javadoc:crwdne32046:0

crwdns32047:0crwdne32047:0

crwdns32048:0crwdne32048:0

import org.spongepowered.api.asset.Asset;

Asset asset = plugin.getAsset("myfile.txt").get();

crwdns32049:0crwdne32049:0

import org.spongepowered.api.Sponge;

Asset asset = Sponge.getAssetManager().getAsset(plugin, "myfile.txt").get();

Tip

crwdns32050:0crwdne32050:0

Note

crwdns32051:0:javadoc:crwdne32051:0

crwdns32052:0crwdne32052:0

crwdns32053:0:javadoc:crwdne32053:0

import java.nio.file.Files;

if (Files.notExists(configPath)) {
    plugin.getAsset("default.conf").copyToFile(configPath);
}

Note

crwdns32054:0crwdne32054:0