crwdns38254:0crwdne38254:0

crwdns38255:0:javadoc:crwdne38255:0

crwdns38256:0crwdne38256:0

crwdns38257:0crwdne38257:0

import org.spongepowered.api.asset.Asset;

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

crwdns38258:0crwdne38258:0

import org.spongepowered.api.Sponge;

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

Tip

crwdns38259:0crwdne38259:0

Note

crwdns38260:0:javadoc:crwdne38260:0

crwdns38261:0crwdne38261:0

crwdns38262:0:javadoc:crwdne38262:0

import java.nio.file.Files;

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

Note

crwdns38263:0crwdne38263:0